yql

Using YQL multi-query & XPath to parse HTML, how to escape nested quotes?

跟風遠走 提交于 2019-12-04 13:21:50
问题 The title is more complicated than it has to be, here's the problem query. SELECT * FROM query.multi WHERE queries=" SELECT * FROM html WHERE url='http://www.stumbleupon.com/url/http://www.guildwars2.com' AND xpath='//li[@class=\"listLi\"]/div[@class=\"views\"]/a/span'; SELECT * FROM xml WHERE url='http://services.digg.com/1.0/endpoint?method=story.getAll&link=http://www.guildwars2.com'; SELECT * FROM json WHERE url='http://api.tweetmeme.com/url_info.json?url=http://www.guildwars2.com';

Get Financial Option Data with YQL

两盒软妹~` 提交于 2019-12-04 12:01:27
问题 I am using YQL to retrieve Financial Option data. Something like: select * from yahoo.finance.options where symbol="AAPL" and expiration="2011-07" However, the above query returns an optionsChain of data. Is there a way to retrieve just the record for a specific option symbol, e.g. symbol=AAPL110716C00155000 ? Thanks for your time. 回答1: You can apply a "local filter", for your desired symbol, on the result set brought back from yahoo.finance.options in addition to the "remote filters" (

Is YQL / datatables.org down as of May 17-18, 2017?

房东的猫 提交于 2019-12-04 06:08:59
During the past 1-2 days, the http query that I used to download historical stock prices from Yahoo Finance has not been working. The link I have been using is the first one below but I have also tried out the other three (since I saw other people using them): http://real-chart.finance.yahoo.com/table.csv?s=TRQ&d=6&e=3&f=2016&g=d&a=5&b=25&c=2016&ignore=.csv https://real-chart.finance.yahoo.com/table.csv?s=TRQ&d=6&e=3&f=2016&g=d&a=5&b=25&c=2016&ignore=.csv http://ichart.finance.yahoo.com/table.csv?s=TRQ&d=6&e=3&f=2016&g=d&a=5&b=25&c=2016&ignore=.csv https://ichart.finance.yahoo.com/table.csv?s

Yahoo Finance API

こ雲淡風輕ζ 提交于 2019-12-04 04:40:32
问题 How to fetch the complete list of Yahoo Finance Stock symbol using YQL ??? not trying to fetch a single stock quote. I am trying to find the whole complete list of available stock symbol. E.g. all Stock Symbol from NYSE, NASDAQ. 回答1: Yahoo Finance may not help you much in this. You can get all the stock symbol from the exchange and later use the standard stock symbol in Yahoo Finance API or any other finance API to get the required details. You can use the following link to download the list

How to get ajax response from other domain?

风流意气都作罢 提交于 2019-12-03 21:27:58
Except YQL ,Is there any way to get ajax's response and data from other domain without modifying server side's code? YQL has limit (1000 calls per hour) for free user , but most of people said it's actually less. If what you mean by "without modifying server side's code" is not modifying the server of the data source, then you can have your own proxy server (basically making your own YQL server) to read the remote data. This is possible because the server-side is not bound to the Same-Origin Policy. So you can AJAX your server, then let your server read the remote server using some form of

Return Yahoo! weather API data in Celsius, using YQL

帅比萌擦擦* 提交于 2019-12-03 10:58:28
I'm trying to get Yahoo! weather API with temperatures in Celsius. I've added &u=c in the request, but it's still returning data in Fahrenheit. This is the URL I'm using: http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location=%22LEXX0003%22&format=json&u=c And the response: {"query":{"count":1,"created":"2014-01-13T13:06:43Z","lang":"en-US","results":{"channel":{"item":{"title":"Conditions for Beirut, LE at 1:59 pm EET","lat":"33.82","long":"35.48","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast

Any .NET examples for Yahoo Query Language (YQL)?

我的未来我决定 提交于 2019-12-03 09:16:31
问题 I'd like to make some simple calls to Yahoo Query Language (YQL). Has anyone implemented this in .NET? Here is the query I'd like to make from .NET: select MarketCapitalization from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT","unknown") Update Everything is working 100%, thanks @fernaramburu. 回答1: Yes. There two good examples that are actually working because I just tested some hours ago... http://jarloo.com/get-yahoo-finance-api-data-via-yql/ and http://jarloo.com/code

Using YQL multi-query & XPath to parse HTML, how to escape nested quotes?

好久不见. 提交于 2019-12-03 08:27:44
The title is more complicated than it has to be, here's the problem query. SELECT * FROM query.multi WHERE queries=" SELECT * FROM html WHERE url='http://www.stumbleupon.com/url/http://www.guildwars2.com' AND xpath='//li[@class=\"listLi\"]/div[@class=\"views\"]/a/span'; SELECT * FROM xml WHERE url='http://services.digg.com/1.0/endpoint?method=story.getAll&link=http://www.guildwars2.com'; SELECT * FROM json WHERE url='http://api.tweetmeme.com/url_info.json?url=http://www.guildwars2.com'; SELECT * FROM xml WHERE url='http://api.facebook.com/restserver.php?method=links.getStats&urls=http://www

YQL Problem - “The current table has been blocked”

ⅰ亾dé卋堺 提交于 2019-12-03 08:25:35
I'm new to YQL and am having some problems retrieving data. The query I'm trying to execute is: select * from yahoo.finance.historicaldata where symbol = "TW.L" and startDate = "01/01/2011" and endDate = "22/01/2011" I did manage to retrieve some information using a query like this through the YQL Console without a problem. Now whenever I try I get some XML back which includes the message: The current table 'yahoo.finance.historicaldata' has been blocked. It exceeded the allotted quotas of either time or instructions I assume this is some sort of rate limit, but I'm pretty sure I'm nowhere

Get Financial Option Data with YQL

自作多情 提交于 2019-12-03 07:48:53
I am using YQL to retrieve Financial Option data. Something like: select * from yahoo.finance.options where symbol="AAPL" and expiration="2011-07" However, the above query returns an optionsChain of data. Is there a way to retrieve just the record for a specific option symbol, e.g. symbol=AAPL110716C00155000 ? Thanks for your time. You can apply a "local filter", for your desired symbol, on the result set brought back from yahoo.finance.options in addition to the "remote filters" ( symbol and expiration ). select option from yahoo.finance.options where symbol = "AAPL" and expiration = "2011-07