Skip to content

Instantly share code, notes, and snippets.

@JoseGonzalez321
Created June 8, 2017 15:52
Show Gist options
  • Save JoseGonzalez321/257bc566dadc32180c12bb2e1046102f to your computer and use it in GitHub Desktop.
Save JoseGonzalez321/257bc566dadc32180c12bb2e1046102f to your computer and use it in GitHub Desktop.
Html Provider example. Gets some data from URI and stores in a variable
// You need Fsharp providers. More info at: http://fsharp.github.io/FSharp.Data/
#r @"..\Packages\FSharp.Data\lib\net40\FSharp.Data.dll"
open FSharp.Data
[<Literal>]
let uri = @"https://en.wikipedia.org/wiki/Doctor_Who"
type DoctorWhoData = HtmlProvider<uri>
let data() =
let data = DoctorWhoData.GetSample()
data.Tables.``Changes of appearance``.Rows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment