Please Assist with XPath Problem for Google Sheets ImportXML Function

China☆狼群 提交于 2020-01-30 09:21:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!