<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>天氣 on Lin's Blog</title><link>http://coder.tw/tags/%E5%A4%A9%E6%B0%A3/</link><description>Recent content in 天氣 on Lin's Blog</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Fri, 04 Feb 2011 00:48:56 +0000</lastBuildDate><atom:link href="http://coder.tw/tags/%E5%A4%A9%E6%B0%A3/index.xml" rel="self" type="application/rss+xml"/><item><title>Google Weather API - 幫助你取得一整週的天氣狀況</title><link>http://coder.tw/posts/google-weather-api-weekly-forecast-2/</link><pubDate>Fri, 04 Feb 2011 00:48:56 +0000</pubDate><guid>http://coder.tw/posts/google-weather-api-weekly-forecast-2/</guid><description>&lt;p style="text-align: center;"&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/02/2011-02-04_004255.jpg"&gt;&lt;img class="size-large wp-image-4648 aligncenter" title="2011-02-04_004255" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/02/2011-02-04_004255-520x416.jpg" alt="" width="520" height="416" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;strong&gt;Google Weather API&lt;/strong&gt;是我今天發現的東西，因為想要幫最近開發的Plurk-bot加上新的查天氣功能，所以就上網找了一下獲得天氣狀況的方法，原本預計的獲取方式是去讀取中央氣象局的網頁，然後分析上面的資料，可是後來我發現Google和Yahoo都有提供查天氣的API，其中我比較喜歡使用Google Weather API，因為他的回傳值是xml格式比較好解析，不過Yahoo傳一個html回來... 而且Google Weather API還支援直接指定城市名的功能，例如我要查台北市，我就在API上直接傳台北市過去就可以，可是Yahoo的天氣API卻不是這麼簡單，而是要你輸入一個城市的代碼，等於我要使用Yahoo的API時我還要先知道要查詢的城市的代碼
&lt;h2&gt;</description></item></channel></rss>