Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: TP Newsgroups: comp.lang.python Subject: Re: Screen scraper to get all 'a title' elements Date: Wed, 25 Nov 2015 17:15:49 -0800 Lines: 18 Message-ID: References: <23ed6f4b-0ef2-4c9e-ade6-e597e7e03ca2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de V6IuJrStG0jBZNycAXR/9ws/FNLZnhHpVYtbHqJyzP7g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; "subject:' ": 0.07; 'cc:addr:python-list': 0.09; '"%s"': 0.09; 'url:blog': 0.10; 'python': 0.10; 'wed,': 0.15; 'received:io': 0.16; 'received:psf.io': 0.16; 'row': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In- Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'url:wikipedia': 0.29; "i'm": 0.30; 'url:wiki': 0.30; 'subject:all': 0.32; 'open': 0.33; 'received:google.com': 0.35; 'nov': 0.35; 'something': 0.35; 'but': 0.36; 'instead': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'skip:p 20': 0.38; 'received:209.85.220': 0.38; 'data': 0.39; 'url:en': 0.39; 'easy': 0.60; 'your': 0.60; 'experts.': 0.66; 'subject:get': 0.81; 'interesting,': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=NXSd2uXGpUy6vGn+tKqKq4UmbghvvTwk1hEdrzG2lgs=; b=qLUMN7berdQnYjPg13MWH2tTOWjZV58Qvs/DTNRcKXl/QQ9wZ/lrE9dX1ggKbyVHv/ MRjjrzZCf+kjH0ZTmiUGuJ3jfaRSLOpKWYozxnw3b9/JPbVhZVk5S/cr/aM6CDf6+ath 8pdyABZb1DX7ayUQaztNSP9VNl3ok4iJIIoZqWFfrTyaqeQuftfsYwdNtKynpmc5L7Kl tTbLiwvwtrao6X0viberrlni1zeRtq5ehDknjnNbJSGro+TRlsrTFjvtfX05fLcKKxJA KnBF50lpSj4Vy0dXKTtdAlCCTzKdta6zj5/KSFdji9HPCa0gAk9g1tKfg6byCYQ4RnUj r7/g== X-Received: by 10.66.228.225 with SMTP id sl1mr15504571pac.63.1448500588548; Wed, 25 Nov 2015 17:16:28 -0800 (PST) In-Reply-To: <23ed6f4b-0ef2-4c9e-ade6-e597e7e03ca2@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99517 On Wed, Nov 25, 2015 at 12:42 PM, ryguy7272 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 [] wikiURL = "https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names" type PlaceNamesProvider = HtmlProvider let placeNamesWiki = PlaceNamesProvider() for row in placeNamesWiki.Tables.``Short & medium length names``.Rows do printfn "%s" row.Column1