2010年9月20日 星期一

weather forcast apis

http://www.google.com/ig/api?weather=91748 or
http://weather.yahooapis.com/forecastrss?u=c&w=2487956

2010年2月21日 星期日

Using YQL with JSONP – James Padolsey

Using YQL with JSONP – James Padolsey: "$.YQL = function(query, callback) { if (!query || !callback) { throw new Error('$.YQL(): Parameters may be undefined'); } var encodedQuery = encodeURIComponent(query.toLowerCase()), url = 'http://query.yahooapis.com/v1/public/yql?q=' + encodedQuery + '&format=json&callback=?'; $.getJSON(url, callback); }; // Usage: $.YQL('select * from rss where url='feeds2.feedburner.com/ajaxian' limit 1', function(data) { var post = data.query.results.item; alert(post.title); });"

xpath example

select * from html where url = "http://en.wikipedia.org/wiki/Alaskan_Malamute" and
xpath = "//table[@class='collapsible']/tr[3]/td/p"

2010年2月3日 星期三

yql query data from youtube

select * from json where url="http://gdata.youtube.com/feeds/api/videos?q=surfing&v=2&alt=jsonc"

2010年1月26日 星期二

another rss example to get news about xmpp

select title, link from rss
where url="http://xmpp.org/extensions/rss.xml"

2010年1月20日 星期三

weather forecast for Rowland Hts., CA

select * from weather.forecast where location=91748

rss example

select title, link from rss
where url="http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"

stock quotes example

select symbol, price from csv
where url='http://download.finance.yahoo.com/d/quotes.csv?
s=IBM,YHOO,GOOG,MSFT&f=sl1d1t1c1ohgv&e=.csv' and
columns='symbol,price,date,time,change,col1,high,low,col2'

2010年1月13日 星期三

YQL query

select * from flickr.photos.info where photo_id in (select id from flickr.photos.search where woe_id in (select woeid from geo.places where text="san francisco, ca") and tags = "fog")