Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62945
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <vincent@vincentdavis.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'example:': 0.03; 'output': 0.05; 'python)': 0.05; '(using': 0.07; 'lookup': 0.09; 'pages.': 0.09; 'url:software': 0.09; '(may': 0.16; '255': 0.16; 'one)': 0.16; 'opposite': 0.16; 'skip:/ 60': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'trying': 0.19; 'examples': 0.20; '(the': 0.22; 'example': 0.22; 'email addr:gmail.com>': 0.22; 'to:name :python-list@python.org': 0.22; '31,': 0.24; '>': 0.26; 'header :In-Reply-To:1': 0.27; 'correct': 0.29; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'gives': 0.31; 'subject:other': 0.31; 'subject: (': 0.35; 'received:209.85': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'received:209': 0.37; 'jason': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'show': 0.63; 'refer': 0.63; 'more': 0.64; 'land': 0.65; 'sample': 0.67; 'to,': 0.72; 'found?': 0.84; '2013': 0.98 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=mzFGTocI/C/n7YqKeNEILcP3YQOC8+I6QpaW/QqiEzA=; b=fqkotGDSn4qOkCjralskmTU9DXAsnGTIjwqc8n6bBUfkqPW4FMk+7+Ncvp5K7jQLUk LnkbJxxsfWs/RzLTDLD5UNBfn7TBxKPQwQbp83gZ7gSSJyHWv0dvz44DEarNGcDYw/mk 3hm+WnXPYe8WUQ7qOll8+ohyW8RgMbCkzjySzYaZfREXZD4E9BL72mCrAtfSmEnxy5aI SVE6ffpymoW5dB7AkK3w3fUCZTGd456xnt/Lsu037rq466f5ESoMdnkEaIVNDjapZO78 Y6SQlgtOQc5X9/6fVwLX2UzZg41HCgp39ymY/4R872+zdNY4/va/UwveJJsD+kn8uWUf tpPQ== |
| X-Gm-Message-State | ALoCoQkXdsq/PuDYVf2BovB2Dz5GIrPrOOXPmwL23j1FRo8yPClpKNZJeeMbsAJawop7EP8LcTwG |
| X-Received | by 10.60.52.177 with SMTP id u17mr50805909oeo.24.1388545258641; Tue, 31 Dec 2013 19:00:58 -0800 (PST) |
| MIME-Version | 1.0 |
| In-Reply-To | <CANy1k1g6Ws4G2WkPaZDAm14cN9NESUNqhNk4O-jzctxp9TRCJQ@mail.gmail.com> |
| References | <CALyJZZXtwD=PKjnnOiAcm3TF6RJZVqjsZCqupooEb8YNBNVoGA@mail.gmail.com> <CANy1k1g6Ws4G2WkPaZDAm14cN9NESUNqhNk4O-jzctxp9TRCJQ@mail.gmail.com> |
| From | Vincent Davis <vincent@vincentdavis.net> |
| Date | Tue, 31 Dec 2013 20:00:38 -0700 |
| Subject | Re: lookup xpath (other?) to value in html |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=001a1133056ae5718d04eedfe23a |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4770.1388545269.18130.python-list@python.org> (permalink) |
| Lines | 113 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1388545269 news.xs4all.nl 2956 [2001:888:2000:d::a6]:49912 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62945 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
> > I'm not sure what you are looking for. Do you have a sample web page, > and can you show us the output you'd like to see from that webpage? > Have you looked at http://www.crummy.com/software/BeautifulSoup/? For example this URL; http://jeffco.us/ats/displaygeneral.do?sch=001690 The the land sqft is 11082. Google Chrome gives me the xpath to that data as; //*[@id="content"]/p[1]/table[4]/tbody/tr[2]/td[8] What I would like to do (using python) is given 11082 at what xpath can that be found? (may be more that one) The examples I can find using google refer to, given xpath what is the value (the opposite of what I want) Vincent Davis On Tue, Dec 31, 2013 at 6:45 PM, Jason Friedman <jsf80238@gmail.com> wrote: > > I have a about 255 data fields that I am trying to verify on thousands of > > webpages. > > For example: > > value: 255,000 > > sqft: 1800 > > .... > > Since I have the correct answer for several pages I would like to lookup > get > > the location (xpath?) of the data/field value in the page so that I can > > check other pages. > > I'm not sure what you are looking for. Do you have a sample web page, > and can you show us the output you'd like to see from that webpage? > Have you looked at http://www.crummy.com/software/BeautifulSoup/? >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: lookup xpath (other?) to value in html Vincent Davis <vincent@vincentdavis.net> - 2013-12-31 20:00 -0700
csiph-web