yql

Yahoo YQL RSS - Bad Request

≡放荡痞女 提交于 2019-11-30 23:44:57
For making cross-domain AJAX requests with jQuery, I am trying to use YQL RSS. select * from rss where url='https://www.top1000funds.com/feed/most-popular-posts/' My code: var feed = "https://www.top1000funds.com/feed/most-popular-posts/"; var yql = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22"+encodeURIComponent(feed)+"%22&format=json&diagnostics=true&callback=&rnd=_"+event.timeStamp; console.log(yql); $.getJSON(yql, function(res) { var html = '<div class="feedListWrap">'; if(res.query && res.query.results && res.query.results.item){ //code goes

Yahoo YQL RSS - Bad Request

落爺英雄遲暮 提交于 2019-11-30 19:26:03
问题 For making cross-domain AJAX requests with jQuery, I am trying to use YQL RSS. select * from rss where url='https://www.top1000funds.com/feed/most-popular-posts/' My code: var feed = "https://www.top1000funds.com/feed/most-popular-posts/"; var yql = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22"+encodeURIComponent(feed)+"%22&format=json&diagnostics=true&callback=&rnd=_"+event.timeStamp; console.log(yql); $.getJSON(yql, function(res) { var html = '

How do I combine multiple rest queries using YQL?

余生颓废 提交于 2019-11-30 18:50:35
问题 For example I would like to combine multiple queries rest queries together. Right now I do the following code with different URLs one at a time. I think it would be faster to ultimately make one request for 10 links in my case. Any help is appreciated. use 'http://javarants.com/yql/javascript.xml'as j; select * from j where code='response.object = y.rest("http://feedproxy.google.com/~r/Techcrunch/~3/P%5FqWQXyAPU/").followRedirects(false).get().headers.location;' 回答1: One possibility would be

Querying html using Yahoo YQL

旧时模样 提交于 2019-11-30 02:48:17
While trying to parse html using Yahoo Query Language and xpath functionality provided by YQL, I ran into problems of not being able to extract “text()” or attribute values. For e.g. perma link select * from html where url="http://stackoverflow.com" and xpath='//div/h3/a' gives a list of anchors as xml <results> <a class="question-hyperlink" href="/questions/661184/filling-the-text-area-with-the-text-when-a-button-is-clicked" title="In ASP.net, I need the code to fill the text area (in the form) when a button is clicked. Can you help me through by showing a simple .aspx code containing the

JSON formatted stock quote API (live or historical)

做~自己de王妃 提交于 2019-11-29 19:14:20
i am building a RESTful web app for myself and i'm interested in getting JSON-formatted stock data for free. I plan to use javascript for the client-side. Is there a free stock API that i can tap into, that does not return XML and does not use C#. EDIT: i found this JSON query...will it do the job? http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22YHOO%22%2C%22AAPL%22%2C%22GOOG%22%2C%22MSFT%22)%0A%09%09&env=http%3A%2F%2Fdatatables.org%2Falltables.env&format=json Sure, if brought back and parsed as JSON with javascript, you would be

Querying html using Yahoo YQL

∥☆過路亽.° 提交于 2019-11-28 23:14:42
问题 While trying to parse html using Yahoo Query Language and xpath functionality provided by YQL, I ran into problems of not being able to extract “text()” or attribute values. For e.g. perma link select * from html where url="http://stackoverflow.com" and xpath='//div/h3/a' gives a list of anchors as xml <results> <a class="question-hyperlink" href="/questions/661184/filling-the-text-area-with-the-text-when-a-button-is-clicked" title="In ASP.net, I need the code to fill the text area (in the

Making Yahoo Weather API request with OAuth 1

半腔热情 提交于 2019-11-28 21:24:21
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.org%2Falltableswithkeys&callback= UPDATE 13 minutes after I originally asked this question API calls

JSON formatted stock quote API (live or historical)

自作多情 提交于 2019-11-28 14:52:13
问题 i am building a RESTful web app for myself and i'm interested in getting JSON-formatted stock data for free. I plan to use javascript for the client-side. Is there a free stock API that i can tap into, that does not return XML and does not use C#. EDIT: i found this JSON query...will it do the job? http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22YHOO%22%2C%22AAPL%22%2C%22GOOG%22%2C%22MSFT%22)%0A%09%09&env=http%3A%2F%2Fdatatables

excel vba http request download data from yahoo finance

旧街凉风 提交于 2019-11-28 11:42:53
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 large. I thought I could simply store the result of these http requests and print it to the debug window

How to use YQL to retrieve web results?

删除回忆录丶 提交于 2019-11-28 06:39:13
I am having difficulty setting up a simple html file using javascript to display the results of YQL Query. I understand how to setup the select statement (example: select title,abstract,url from search.web where query="pizza") in the YQL Console. But I don't know how to display it on the html file? Can somebody help in explaining how to display the results of that statement? Code snippets would be appreciated! BTW, I've read the YQL Docs but they are somewhat complicated. The only way to retrieve YQL results via client-side JavaScript is JSON-P (or by using an additional proxy). Here's a