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


Groups > comp.lang.python > #75966

Re: Ground Up Python/Xpath lessons

Newsgroups comp.lang.python
Date 2014-08-09 19:41 -0700
References <c9c7ee19-9808-4087-bf2c-23b47ee2d6fc@googlegroups.com>
Message-ID <53e5af68-7ff2-4712-b24a-a847b385a65b@googlegroups.com> (permalink)
Subject Re: Ground Up Python/Xpath lessons
From mikemixonrei@gmail.com

Show all headers | View raw


On Saturday, August 9, 2014 8:27:15 PM UTC-5, mikemi...@gmail.com wrote:
> I need a tutorial or lesson on Xpath syntax from the ground up.  I am totally confused on how to assemble an Xpath.  All the //a[wizardmojo]::stuffgoeshere is confusing as hell, and all the information I find, only tells you very basic examples, they don't really teach you assuming you know nothing.
> 
> 
> 
> Thanks in advance, Mike

Yes, those examples are good, for about 5 minutes, but then how I do learn to do the more advanced stuff?  Like find all the "a" tags and then extract the "href" out of each one?  Or look in each "tr" and extract all the "hrefs" in "td 1" when "td 4" contains the text "5 star rating"  I haven't found anything that teaches you to string together complex xpaths, just simple ones like //form[1]/input

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


Thread

Ground Up Python/Xpath lessons mikemixonrei@gmail.com - 2014-08-09 18:27 -0700
  Re: Ground Up Python/Xpath lessons John Gordon <gordon@panix.com> - 2014-08-10 01:55 +0000
  Re: Ground Up Python/Xpath lessons mikemixonrei@gmail.com - 2014-08-09 19:41 -0700
  Re: Ground Up Python/Xpath lessons dieter <dieter@handshake.de> - 2014-08-10 07:34 +0200

csiph-web