简体   繁体   English

无法通过 IMPORTXML 从 Google 表格中的 NSE 网站获取数据

[英]Unable to fetch data through IMPORTXML from NSE website in Google sheets

I am trying to fetch current/ latest price from a dynamic content from National Stock Exchange (India) website in a cell in google sheets.我试图从国家证券交易所(印度)网站在谷歌表格单元格中的动态内容中获取当前/最新价格。 The formula is:公式为:

=importxml(" https://www.nseindia.com/live_market/dynaContent/live_watch/get_quote/GetQuoteFO.jsp?underlying=NIFTY&instrument=OPTIDX&strike=11400.00&type=CE&expiry=27SEP2018 "),"//ul[@class='stock']/li[@class='active']/span[@id='lastPrice']") =importxml(" https://www.nseindia.com/live_market/dynaContent/live_watch/get_quote/GetQuoteFO.jsp?underlying=NIFTY&instrument=OPTIDX&strike=11400.00&type=CE&expiry=27SEP2018"),"//ul[@class= ' stock']/li[@class='active']/span[@id='lastPrice']")

Not getting the correct value.没有得到正确的值。 Can someone help please?有人可以帮忙吗?

而是使用 =GOOGLEFINANCE("NSE:INFY", "all", DATE(2021,5,21), DATE(2021,6,24), "DAILY")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM