I am trying to get the html content of a div using the div's XPath. Is there a way to grab this text and store it in a string using Python? The XPath of the div is html/body/div[2]/div[3]/ul/li[3]/a
Asked
Active
Viewed 90 times
0

66Mhz
- 225
- 2
- 4
- 12
-
1No, http://stackoverflow.com/questions/11465555/can-we-use-xpath-with-beautifulsoup – Artjom B. Aug 16 '14 at 12:22
-
possible duplicate of [BeautifulSoup innerhtml?](http://stackoverflow.com/questions/8112922/beautifulsoup-innerhtml) – Richard Aug 16 '14 at 14:35
-
Show the input you have: either link to the web-site, or the relevant html code. Also, provide the desired output. Thanks. – alecxe Aug 21 '14 at 04:23