Using Xpath to parse a Yahoo Finance page

Jason Hsu jhsu802701 at gmail.com
Mon Dec 3 04:32:03 CET 2012


On Sunday, December 2, 2012 8:25:45 PM UTC-6, MRAB wrote:
> 
> list_row2 = doc2.xpath(u'.//td[strong[contains(text(),"Total 
> 
> Assets")]]/following-sibling::td/strong/text()')
> 
Thanks, MRAB.  Your suggestion works!



More information about the Python-list mailing list