Created
June 8, 2017 15:52
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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