Python: Get Data From Changing Span Class Using Lxml Xpath
I want to extract 'Return On Assets' from wsj websites. However, my code is not robust enough to work in different conditions. I able to extract data for ticker 'SCGM' using the co
Solution 1:
//td[normalize-space(span) = "Return on Assets"]/span[@class = "data_data"]/span
Post a Comment for "Python: Get Data From Changing Span Class Using Lxml Xpath"