Screen scraper to get all 'a title' elements

TP wingusr at gmail.com
Wed Nov 25 20:15:49 EST 2015


On Wed, Nov 25, 2015 at 12:42 PM, ryguy7272 <ryanshuell at gmail.com> wrote:
> Hello experts.  I'm looking at this url:
> https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names

Wildly offtopic but interesting, easy way to grab/analyze Wikipedia
data using F# instead of Python
http://evelinag.com/blog/2015/11-18-f-tackles-james-bond/

In your particular case something like:

open FSharp.Data
let [<Literal>] wikiURL =
"https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names"
type PlaceNamesProvider = HtmlProvider<wikiURL>

let placeNamesWiki = PlaceNamesProvider()
for row in placeNamesWiki.Tables.``Short & medium length names``.Rows do
  printfn "%s" row.Column1



More information about the Python-list mailing list