问题
I can't figure out the correct XPath to use in Google Sheets for extracting the 3 (three) "Yield on Cost" values at the top of this page: https://seekingalpha.com/symbol/GE/dividends/yield-on-cost
Or the 5 (five) "Growth" values at the top of this page: https://seekingalpha.com/symbol/GE/dividends/dividend-growth
I have read many informative webpages on the subject of using both IMPORTXML and IMPORTHTML within Google Sheets, and I have had good success in the past -- but I am coming up empty on these two pages. This is likely due to me missing some fundamental problem that others would probably see and understand immediately.
There's not much point in me posting Xpaths I have tried -- as I have literally tried over 100 variations.
I would be very grateful for any guidance offered to help me to achieve my goal.
回答1:
https://seekingalpha.com/ site can't be scrapped because it depends on JavaScript and Google Sheets can't work with JavaScript at all. you can see yourself if you disable JS temporarily:
来源:https://stackoverflow.com/questions/55545076/please-assist-with-xpath-problem-for-google-sheets-importxml-function