Snippets tagged web
Parallel Sitemap Test Runner
A sitemap-based url tester that runs in parallel.
35 people like this
Posted: 1 years ago by Ryan RileyYahoo Historical Quote Implementation
F# module to return historical EOD: open | high |low | close | volume quotes from Yahoo. Single day requests only. DataContract provided on the result record for easy serialization.
10 people like this
Posted: 1 years ago by akaPhenomWeb Crawler
This snippet features an F# Web crawler that i'm already using in 2 applications (slightly modified). It's based on a scalable network of communicating agents that follow URLs extracted from HTML pages until reaching the specified limit.
20 people like this
Posted: 1 years ago by Taha HachanaAsynchronous Controller Helper
The snippet declares a helper for creating asynchronous controllers for ASP.NET MVC 3. It declares a new base class for asynchronous actions that exposes a computation builder for writing actions using F# asynchronous workflows.
7 people like this
Posted: 1 years ago by Tomas PetricekWebSharper Hello World
This sample implements "Hello, world!" as a WebSharper application. It demonstrates how to compose HTML/XML using combinators, how to dynamically create a button with a handler and how to update an existing DOM element.
2 people like this
Posted: 12 months ago by Tomas PetricekAsynchronous Workflow Controller
The snippet overrides default AsyncControllerActionInvoker so F# async workflows can be used for ASP.NET MVC 3. It declares a new base class for asynchronous controller. Controller method has to have return type Async<ActionResult>.
3 people like this
Posted: 11 months ago by Dmitry Morozov
Web Crawler extensions
The snippet extends a web crawler from snippet http://fssnip.net/3K. It synchronizes all printing using an additional agent (so printed text does not interleave) and the crawling function returns an asynchronous workflow that returns when crawling completes.
6 people like this
Posted: 10 months ago by Tomas PetricekComposable WCF Web API using Async
A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async<HttpResponseMessage> signature. Pushing the app calls in the MessageHandler intercepts all requests and allows you to take control at the earliest point possible before operation selection occurs. Extending this slightly to call the innerChannel's SendAsync would allow you to create a middleware layer that would work both with this and other, normal Web API services.
39 people like this
Posted: 1 years ago by Ryan RileySend HTTP POST request
The snippet shows how to send HTTP POST request to a web page and download the generated HTML result. The POST data is encoded as a byte array and written to the request stream of HttpWebRequest.
2 people like this
Posted: 3 months ago by Tomas PetricekStackoverflow API script
A script that consumes the Stackoverflow API in a dynamic fashion
5 people like this
Posted: 3 months ago by Mauricio SchefferSpeech Stackoverflow article automatically
This snippet automatically speeches text of question,answers and comments in a Stackoverflow article. It requires HtmlAgilityPack(available from Nuget package manager).(Attention: You need reset F# interactive to stop the speech)
5 people like this
Posted: 7 days ago by nagat01