Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62945
| References | <CALyJZZXtwD=PKjnnOiAcm3TF6RJZVqjsZCqupooEb8YNBNVoGA@mail.gmail.com> <CANy1k1g6Ws4G2WkPaZDAm14cN9NESUNqhNk4O-jzctxp9TRCJQ@mail.gmail.com> |
|---|---|
| From | Vincent Davis <vincent@vincentdavis.net> |
| Date | 2013-12-31 20:00 -0700 |
| Subject | Re: lookup xpath (other?) to value in html |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4770.1388545269.18130.python-list@python.org> (permalink) |
[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