Using Xpath to parse a Yahoo Finance page

Jason Hsu jhsu802701 at gmail.com
Sun Dec 2 22:32:03 EST 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