YQL finance gets null in results

試著忘記壹切 提交于 2019-12-14 02:14:53

问题


I'm just using one of the sample datatables in the YQL console. The YQL statement is select * from yahoo.finance.stock where symbol="yhoo"

Why am I get null in the results?

Link to YQL console with the YQL statement


回答1:


It looks like the yahoo.finance.stock YQL data table is no longer working. When run with Diagnostics enabled, several JavaScript errors appear. Because there is no official Yahoo Finance API, this community table is retrieving data by scraping web pages, and is therefore susceptible to page changes causing breakage like this.

The table yahoo.finance.stocks does seem to work, but I'm not sure if the data returned is what you're looking for.

Example query:

select * from yahoo.finance.stocks where symbol="yhoo"




回答2:


I had better luck with yahoo.finance.stock (singular, no "s"). The data seems to be better maintained.



来源:https://stackoverflow.com/questions/12717043/yql-finance-gets-null-in-results

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