yql

How to use YQL to merge 2 RSS feeds sorted by pubDate?

≯℡__Kan透↙ 提交于 2019-12-21 19:47:17
问题 Seeing that YQL is being promoted as a good way to do things, I was curious as to how to use YQL to fetch and merge 2 different feeds into one (sorted by pubDate). It's pretty trivial to fetch 2 feeds but it turns out that the feeds are just concatenated together and not merged. Here's the sample code. select channel.title,channel.link,channel.item.title,channel.item.link from xml where url in( 'http://code.flickr.com/blog/feed/rss/', 'http://feeds.delicious.com/v2/rss/codepo8?count=15',

How to Access Yahoo Finance YQL query with historical data

安稳与你 提交于 2019-12-17 22:16:40
问题 I'm new to YQL. Perhaps this is very trivial, but I couldn't quite figure this out. I know, for instance, how to query current stock data from Yahoo/YQL using the YQL console: http://developer.yahoo.com/yql/console/ with the query string: select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT") However, what if I want, say, the same data from yesterday, or a week ago? I tried things such as select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT"

How to use YQL to retrieve web results?

 ̄綄美尐妖づ 提交于 2019-12-17 18:11:30
问题 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. 回答1: The only way to

jQuery Ajax request every 30 seconds

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 07:31:32
问题 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

YQL API Request Private Data Authentication Error

六月ゝ 毕业季﹏ 提交于 2019-12-14 03:57:40
问题 I am using YQL to pull some data for my yahoo fantasy football league. I have created the app and it gave me a consumer/secret key but how do I pass this information to the yahoo api to log me in? I know I have to use OAuth but I am not sure how to use the key in tandem with CURL and YQL Here is my PHP Code: <pre> <?php $BASE_URL = "https://query.yahooapis.com/v1/public/yql"; // Form YQL query and build URI to YQL Web service $yql_query = "select * from fantasysports.leagues.standings where

YQL finance gets null in results

試著忘記壹切 提交于 2019-12-14 02:14:53
问题 I'm just using one of the sample datatables in the YQL console. The YQL statement is select * from yahoo.finance.stock where symbol="yhoo" Why am I get null in the results? Link to YQL console with the YQL statement 回答1: It looks like the yahoo.finance.stock YQL data table is no longer working. When run with Diagnostics enabled, several JavaScript errors appear. Because there is no official Yahoo Finance API, this community table is retrieving data by scraping web pages, and is therefore

Pull Html element from cross domain

我的梦境 提交于 2019-12-13 05:07:30
问题 I want to pull the certain div named class="row device-margin-b50" through YQL but its not pulling the exact data if I put xpath="*" , it brings the whole page but I need certain div at my end Whats I'm lacking? <head runat="server"> <script src="jquery-2.1.4.js"></script> </head <script> jQuery.ajax = (function (_ajax) { var protocol = location.protocol, hostname = location.hostname, exRegex = RegExp(protocol + '//' + hostname), YQL = 'http' + (/^https/.test(protocol) ? 's' : '') + '://query

Simple XML Load File not working

你。 提交于 2019-12-13 00:44:51
问题 how come this isn't working: $url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20xpath%3D%22%2F%2Fmeta%22%20and%20url%3D%22http://www.cnn.com%22&format=xml&diagnostics=false"; $xml = (simplexml_load_file($url)) I get multiple errors telling me the HTTP request failed. Ultimately I want to get the results from this file into an array eg Description = CNN.com delivers the latest breaking news etc. Keywords = CNN, CNN news, CNN.com, CNN TV etc. But this initial

Combining two queries in Yahoo YQL

这一生的挚爱 提交于 2019-12-12 09:41:11
问题 I want to get the weather information for a specific location. Right now, I need to calls to get them: The first one translated my current position (lat/lon) to a WOEID, the second call retrieves the Weather information by using that WOEID. Can I combine those 2 queries? The first one is: select * from yahoo.maps.findLocation where q="LAT, LON" and gflags="R" The second one is: select * from weather.bylocation where location= WOEID AND unit = 'c' 回答1: You can use sub-selects to join data

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

那年仲夏 提交于 2019-12-12 08:49:29
问题 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