Recently having issue with google sheets getting info from yahoo finance.
=if(isblank(B4),"",ImportXML("https://finance.yahoo.com/quote/"&B4&"/history?p="&B4, "//tbody/tr[1]/td[6]"))
*Cell B4 is ticker, example: [7113.KL]
Anyone encounter this?
Any solution for this?
Seems like IMPORT
functions doesn't work on the link you provided. It might be that the data is javascript generated and it is a current limitation of IMPORT
functions.
Easiest way to circumvent this is to find another site that its data isn't javascript generated. Such as this one .
=INDEX(IMPORTXML("https://www.investingport.com/quotes/7113.KL/", "//div[@class='col-md-6']/span"),1,1)
Since your B4
contains 7113.KL
and you check the B4
first, then adjusted formula is:
=if(isblank(B4),"", INDEX(IMPORTXML("https://www.investingport.com/quotes/"&B4&"/", "//div[@class='col-md-6']/span"),1,1))
UrlFetchApp
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.