帮助创建 YQL 查询以搜索公司 [英] Help creating a YQL Query to search companies

查看:27
本文介绍了帮助创建 YQL 查询以搜索公司的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建一个 YQL 查询来返回雅虎财经的公司?

How can I create a YQL Query that will return me companies from Yahoo Finance?

select * from yahoo.finance.quotes where name like "apple"

不起作用.

推荐答案

由于多种原因,这行不通.请尝试:

That won't work for many reasons. Please try:

select * from html where url="http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=snl1d1t1ohgdr"

要准确获得您想要的内容,您可以在 where 子句中使用 xpath 进一步过滤.

To get exactly what you want, you could further filter with xpath in the where clause.

这篇关于帮助创建 YQL 查询以搜索公司的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆