Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75961 > unrolled thread
| Started by | mikemixonrei@gmail.com |
|---|---|
| First post | 2014-08-09 18:27 -0700 |
| Last post | 2014-08-10 07:34 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | mikemixonrei@gmail.com |
|---|---|
| Date | 2014-08-09 18:27 -0700 |
| Subject | Ground Up Python/Xpath lessons |
| Message-ID | <c9c7ee19-9808-4087-bf2c-23b47ee2d6fc@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2014-08-10 01:55 +0000 |
| Message-ID | <ls6jec$feg$1@reader1.panix.com> |
| In reply to | #75961 |
In <c9c7ee19-9808-4087-bf2c-23b47ee2d6fc@googlegroups.com> mikemixonrei@gmail.com writes: > 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, I'm confused -- don't you *want* very basic examples? > they don't really teach you assuming you know nothing. Try http://www.w3schools.com/xpath/xpath_intro.asp -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
[toc] | [prev] | [next] | [standalone]
| From | mikemixonrei@gmail.com |
|---|---|
| Date | 2014-08-09 19:41 -0700 |
| Message-ID | <53e5af68-7ff2-4712-b24a-a847b385a65b@googlegroups.com> |
| In reply to | #75961 |
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
[toc] | [prev] | [next] | [standalone]
| From | dieter <dieter@handshake.de> |
|---|---|
| Date | 2014-08-10 07:34 +0200 |
| Message-ID | <mailman.12806.1407648900.18130.python-list@python.org> |
| In reply to | #75961 |
mikemixonrei@gmail.com writes: > 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 "XPath" is a public standard. You can find its specification at "http://www.w3.org/TR/xpath/". In my view, it is very well written; you find there all relevant details. Of course, it is not a tutorial: the information is very concise and assumes, that the reader copes well with abstract descriptions.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web