I need to get content for this XPath:
/html/body/div/table[2]/tbody/tr/td[2]
It’s copied from FireBug. How can I do this? I have a very large HTML document, so I don’t want (and don’t know how:) ) to grep it. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
lxml can handle html (and provides pretty good xpath support):
Just make sure that you use it’s html parser.