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