Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99517

Re: Screen scraper to get all 'a title' elements

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From TP <wingusr@gmail.com>
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 <mailman.108.1448500596.20593.python-list@python.org> (permalink)
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 <wingusr@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:99517

Show key headers only | View raw


On Wed, Nov 25, 2015 at 12:42 PM, ryguy7272 <ryanshuell@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Screen scraper to get all 'a title' elements ryguy7272 <ryanshuell@gmail.com> - 2015-11-25 12:42 -0800
  Re: Screen scraper to get all 'a title' elements MRAB <python@mrabarnett.plus.com> - 2015-11-25 20:55 +0000
    Re: Screen scraper to get all 'a title' elements Grobu <snailcoder@retrosite.invalid> - 2015-11-25 23:30 +0100
      Re: Screen scraper to get all 'a title' elements ryguy7272 <ryanshuell@gmail.com> - 2015-11-25 14:48 -0800
        Re: Screen scraper to get all 'a title' elements Chris Angelico <rosuav@gmail.com> - 2015-11-26 10:06 +1100
          Re: Screen scraper to get all 'a title' elements Grobu <snailcoder@retrosite.invalid> - 2015-11-26 00:44 +0100
            Re: Screen scraper to get all 'a title' elements Marko Rauhamaa <marko@pacujo.net> - 2015-11-26 01:53 +0200
              Re: Screen scraper to get all 'a title' elements Chris Angelico <rosuav@gmail.com> - 2015-11-26 10:59 +1100
            Re: Screen scraper to get all 'a title' elements Chris Angelico <rosuav@gmail.com> - 2015-11-26 10:54 +1100
            Re: Screen scraper to get all 'a title' elements Grobu <snailcoder@retrosite.invalid> - 2015-11-26 02:05 +0100
        Re: Screen scraper to get all 'a title' elements Grobu <snailcoder@retrosite.invalid> - 2015-11-26 00:33 +0100
          Re: Screen scraper to get all 'a title' elements ryguy7272 <ryanshuell@gmail.com> - 2015-11-25 15:37 -0800
            Re: Screen scraper to get all 'a title' elements Chris Angelico <rosuav@gmail.com> - 2015-11-26 10:42 +1100
  Re: Screen scraper to get all 'a title' elements ryguy7272 <ryanshuell@gmail.com> - 2015-11-25 14:04 -0800
    Re: Screen scraper to get all 'a title' elements Chris Angelico <rosuav@gmail.com> - 2015-11-26 09:10 +1100
  Re: Screen scraper to get all 'a title' elements TP <wingusr@gmail.com> - 2015-11-25 17:15 -0800
  Re: Screen scraper to get all 'a title' elements Denis McMahon <denismfmcmahon@gmail.com> - 2015-11-26 14:49 +0000

csiph-web