Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Xpath for HTML processing

Reply
Thread Tools

Xpath for HTML processing

 
 
Astley Le Jasper
Guest
Posts: n/a
 
      09-04-2008
Can anyone suggest something inthat can process an XPath like the
following:

"/html/body/table[2]/tbody/tr/td[5]/table/tbody/tr[3]/td/table[3]/
tbody/tr[5]/td"

Cheers

 
Reply With Quote
 
 
 
 
Stefan Behnel
Guest
Posts: n/a
 
      09-04-2008
Astley Le Jasper wrote:
> Can anyone suggest something inthat can process an XPath like the
> following:
>
> "/html/body/table[2]/tbody/tr/td[5]/table/tbody/tr[3]/td/table[3]/
> tbody/tr[5]/td"


[skipping the obvious joke answer to your question]

In case you're asking for a tool that can process HTML using XPath, try lxml.html.

http://codespeak.net/lxml

Stefan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Memory leak" in javax.xml.xpath.XPath Marvin_123456 Java 4 07-29-2005 03:49 PM
Question: processing HTML, re-write default processing action of many tags Hubert Hung-Hsien Chang Python 2 09-17-2004 03:10 PM
Are there any XPath parsers that generate XPath trees? goog XML 0 01-14-2004 01:47 PM
XPath that does not include other XPath Anna XML 0 07-31-2003 07:55 AM
Problem selecting a node with XPATH if attribute value contains backslashes - how to force XPATH string to be treated as literal? Alastair Cameron XML 1 07-08-2003 07:24 PM



Advertisments