yql

Return Yahoo! weather API data in Celsius, using YQL

て烟熏妆下的殇ゞ 提交于 2019-12-12 07:46:12
问题 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

YQL request returning Connection refused

痞子三分冷 提交于 2019-12-12 03:32:21
问题 The following PHP code (on Laravel) has been working for months until today, where I am now receiving a 502 error indicating connection refused: $url = "https://query.yahooapis.com/v1/public/yql?q=select+%2A+from+yahoo.finance.quotes+where+symbol+in+%28%27YHOO%27%29&format=json&env=%20store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="; $data = file_get_contents($url); dd($data); When I login to the Yahoo Developer Console to test, I'm able to query the public datatables just fine.

jQuery with YQL RSS Feeds randomly returning null

跟風遠走 提交于 2019-12-12 02:49:21
问题 I'm using FeedEk plugin for jQuery which uses the YQL API, to try and display three RSS feeds. Most of the time things are ok but every once in a while I will get a results: null from one of the three feeds, but usually the second and third ones to be called, very rarely the first. I have checked the feeds themselves and they are not showing any issues, I have also tested it on the Yahoo Console and it doesn't show an issue. It's not a call limit issue as I'm barely hitting 300 calls a day

YQL table for Apache access logs

一世执手 提交于 2019-12-11 15:18:29
问题 YQL SHOW TABLES has CSV and HTML. What about a table for Apache access logs? 回答1: There is now a regex table http://developer.yahoo.com/yql/console/?q=select%20*%20from%20regex%20where%20expression%20%3D%20%22(.*)%22%20and%20text%3D%22test%22&env=http%3A%2F%2Fdatatables.org%2Falltables.env If you have a regex for your log format, you can use that table to parse it. 回答2: Apache logs actually have a customizable format so I'm assuming that you mean the common log format or one of th defaults.

YQL column projection using XPATH

浪尽此生 提交于 2019-12-11 14:14:40
问题 This query: SELECT * FROM html WHERE url='http://wwww.example.com' AND xpath='//tr[@height="20"]' returns XML: <results> <tr height="20"> <td height="20" width="425"> <p>Institution 0</p> </td> <td width="134"> <p>Minneapolis</p> </td> <td width="64"> <p>MN</p> </td> </tr> ... </results> Questions: Is there a way to use XPATH to create individual columns? Is there a way to create column aliases? Example (invalid syntax): SELECT td[position()=1]/p/. AS name, td[position()=2]/p/. AS city, td

How far back in time can I query historical quotes from Yahoo Finance YQL?

你说的曾经没有我的故事 提交于 2019-12-11 13:48:11
问题 I'm building a small proof-of-concept app that requires historical stock quotes. The UI in my app allows users to select a date range, and I've been using the YQL console to generate the REST calls to request the historical quote data. YQL calls like this: select * from yahoo.finance.historicaldata where symbol = "JNJ" and startDate = "2015-01-01" and endDate = "2015-12-11" work fine, but if I go too far back into time like this: select * from yahoo.finance.historicaldata where symbol = "JNJ"

HTTP-Based Public Key Pinning is deprecated warning when using Yahoo Weather API

痴心易碎 提交于 2019-12-11 10:16:37
问题 I'm trying to implement the basic Yahoo weather API JS example from https://developer.yahoo.com/weather/#js In chrome version 70, I'm getting the following warning: HTTP-Based Public Key Pinning is deprecated. Chrome 69 and later will ignore HPKP response headers. (Host: query.yahooapis.com) Is there another way I need to consume the API to avoid this warning? I've also tried like this but I got the same warning fetch("https://query.yahooapis.com/v1/public/yql?q=select wind from weather

Yahoo yql rate limit

被刻印的时光 ゝ 提交于 2019-12-11 09:06:50
问题 I have been reading alot about YQL and the Rate Limits however Im a little stuck on. These are the figures I have found Per application limit (identified by your Access Key): 100,000 calls per day. Per IP limits: /v1/public/ : 1,000 calls per hour; /v1/yql/ : 10,000 calls per hour. My question is how will yahoo track the application and its limit ? Also if I want to use the YQL as my data source do I need to register my application or can I use curl to run the queries without any problems ?

Is the YQL console page down for everyone (again)?

匆匆过客 提交于 2019-12-11 07:33:57
问题 Is anyone able to browse to the YQL console at https://developer.yahoo.com/yql/console today? It worked yesterday but now I only get a page that says "The requested page was not found" like this screenshot My existing scripts continue to work, and the sample console works at the main YQL page. The same "page was not found" error also appears for anything in the ../yql/... directory like the FAQ or tutorial. Also - before anyone suggests this is off topic, please note that I am posting this

Different results for the same query from yahoo.finance.quotes. (YQL)

寵の児 提交于 2019-12-10 22:52:22
问题 I'm using YQL to retrieve some financial data. And I have noticed that lately I'm getting different results for the same query from yahoo.finance.quotes. For example: Query for oil price done 5 times. "LastTradeWithTime": "9:09pm - <b>38.29</b>", "LastTradeWithTime": "1:33am - <b>38.66</b>", "LastTradeWithTime": "2:32am - <b>38.72</b>", "LastTradeWithTime": "2:32am - <b>38.72</b>", "LastTradeWithTime": "9:09pm - <b>38.29</b>", (But when you test the same query from the YQL console all results