yql

Getting data from Yahoo Finance

孤街浪徒 提交于 2019-11-28 02:52:49
I read about the YQL, but I didn't understand how can I get some simple data (like company ticker, market cap, stock price, etc.), for ALL COMPANIES? And an additional question, how can I get all Yahoo Finance tables and theirs fields that can be queried by YQL? To your first question, you can't really do any query through YQL to get data for all companies. It's more oriented towards obtaining data for a smaller query. (I.e., it's not going to give you a full data dump of the whole Yahoo! Finance database.) To your second question, here's how you can get started exploring the Yahoo! Finance

Making Yahoo Weather API request with OAuth 1

假装没事ソ 提交于 2019-11-27 13:49:12
问题 I ran into a problem with Yahoo Weather API because it wasn't giving me any data. After visiting YDN website I've found out that all requests should be updated to OAuth 1 starting from March 15th (but I got working it just today!). It's also said to include Yahoo App key and secret. What the request url should look like now, when I must use my app key and secret? Before, I got such request string: https://query.yahooapis.com/v1/public/yql?q=SOME_QUERY&format=json&env=store%3A%2F%2Fdatatables

excel vba http request download data from yahoo finance

♀尐吖头ヾ 提交于 2019-11-27 06:31:47
问题 I am in the process of making a program I wrote using excel vba faster. The program downloads stock market data from the asx. I want to get data from 2 urls: MY CODE url2 = "http://ichart.finance.yahoo.com/table.txt?s=bhp.ax" Set XMLHTTP = CreateObject("WinHttp.WinHttpRequest.5.1") XMLHTTP.Open "GET", url2, False XMLHTTP.send result = XMLHTTP.responseText ActiveCell.Value = result Set XMLHTTP = Nothing URL 1. http://ichart.finance.yahoo.com/table.txt?s=bhp.ax MY PROBLEM. This file is very

Getting data from Yahoo Finance

一世执手 提交于 2019-11-27 05:00:25
问题 I read about the YQL, but I didn't understand how can I get some simple data (like company ticker, market cap, stock price, etc.), for ALL COMPANIES? And an additional question, how can I get all Yahoo Finance tables and theirs fields that can be queried by YQL? 回答1: To your first question, you can't really do any query through YQL to get data for all companies. It's more oriented towards obtaining data for a smaller query. (I.e., it's not going to give you a full data dump of the whole Yahoo

jQuery Ajax request every 30 seconds

泄露秘密 提交于 2019-11-27 04:39:52
I have this piece of code, but the values may change while someone is on my site. I would need to update the #finance div every 30 seconds or so. Can this be done? $(function() { $.getJSON( "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22%5EFTSE%22)%0A%09%09&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=?", function(json){ $('#finance').text(json.query.results.quote.Change); // Patching payload into page element ID = "dog" }); }); Alex You can put your code in a separate function like this: function

YQL: html table is no longer supported

自闭症网瘾萝莉.ら 提交于 2019-11-26 22:19:18
I use YQL to get some html-pages for reading information out of it. Since today I get the return message "html table is no longer supported. See https://policies.yahoo.com/us/en/yahoo/terms/product-atos/yql/index.htm for YQL Terms of Use" Example in the console: https://developer.yahoo.com/yql/console/#h=select+ *+from+html+where+url%3D%22http%3A%2F%2Fwww.google.de%22 Did Yahoo stop this service? Does anybody know a kind of announcement from Yahoo? I am wondering whether this is simply a bug or whether they really stopped this service... All documentation is still there (html scraping): https:

Array unique values

走远了吗. 提交于 2019-11-26 22:02:18
问题 While dealing with JSON returned from YQL, I found myself looking for a way extract all unique values from an array. function uniqueArrayValues(o){ var items = o.query.results.row, output = []; function check(val){ for(var c=0; c<output.length; c++){ if(output[c] === val){ return false; } } return true; } for(var i=1; i<items.length; i++){ if(check(items[i].team)){ output.push(items[i].team); } } return output; } The code looks a bit too 'busy' and i was wondering if there is a more elegant

YQL: html table is no longer supported

纵然是瞬间 提交于 2019-11-26 08:16:41
问题 I use YQL to get some html-pages for reading information out of it. Since today I get the return message \"html table is no longer supported. See https://policies.yahoo.com/us/en/yahoo/terms/product-atos/yql/index.htm for YQL Terms of Use\" Example in the console: https://developer.yahoo.com/yql/console/#h=select+*+from+html+where+url%3D%22http%3A%2F%2Fwww.google.de%22 Did Yahoo stop this service? Does anybody know a kind of announcement from Yahoo? I am wondering whether this is simply a bug