雅虎!天气rssxml

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了雅虎!天气rssxml相关的知识,希望对你有一定的参考价值。

  1. <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
  2. <channel>
  3.  
  4. <title>Yahoo! Weather - Honeyville, UT</title>
  5. <link>http://us.rd.yahoo.com/dailynews/rss/weather/Honeyville__UT/*http://weather.yahoo.com/forecast/USUT0113_f.html</link>
  6. <description>Yahoo! Weather for Honeyville, UT</description>
  7. <language>en-us</language>
  8. <lastBuildDate>Sun, 09 May 2010 8:51 pm MDT</lastBuildDate>
  9. <ttl>60</ttl>
  10. <yweather:location city="Honeyville" region="UT" country="United States"/>
  11. <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
  12. <yweather:wind chill="58" direction="230" speed="8" />
  13. <yweather:atmosphere humidity="35" visibility="10" pressure="29.71" rising="1" />
  14. <yweather:astronomy sunrise="6:14 am" sunset="8:34 pm"/>
  15. <image>
  16. <title>Yahoo! Weather</title>
  17. <width>142</width>
  18. <height>18</height>
  19. <link>http://weather.yahoo.com</link>
  20. <url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url>
  21. </image>
  22. <item>
  23. <title>Conditions for Honeyville, UT at 8:51 pm MDT</title>
  24. <geo:lat>41.62</geo:lat>
  25. <geo:long>-112.1</geo:long>
  26. <link>http://us.rd.yahoo.com/dailynews/rss/weather/Honeyville__UT/*http://weather.yahoo.com/forecast/USUT0113_f.html</link>
  27. <pubDate>Sun, 09 May 2010 8:51 pm MDT</pubDate>
  28. <yweather:condition text="Cloudy" code="26" temp="58" date="Sun, 09 May 2010 8:51 pm MDT" />
  29. <description><![CDATA[
  30. ><img src="http://l.yimg.com/a/i/us/we/52/26.gif"/><br />
  31. <b>Current Conditions:</b><br />
  32. Cloudy, 58 F<BR />
  33. <BR /><b>Forecast:</b><BR />
  34. Sun - Isolated Thunderstorms. High: 65 Low: 44<br />
  35. Mon - Scattered Thunderstorms. High: 60 Low: 42<br />
  36. <br />
  37. <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Honeyville__UT/*http://weather.yahoo.com/forecast/USUT0113_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
  38. (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
  39. ]]></description>
  40. <yweather:forecast day="Sun" date="9 May 2010" low="44" high="65" text="Isolated Thunderstorms" code="47" />
  41. <yweather:forecast day="Mon" date="10 May 2010" low="42" high="60" text="Scattered Thunderstorms" code="38" />
  42. <guid isPermaLink="false">USUT0113_2010_05_09_20_51_MDT</guid>
  43. </item>
  44. </channel>
  45. </rss><!-- api1.weather.sp2.yahoo.com compressed/chunked Sun May 9 21:04:22 PDT 2010 -->

以上是关于雅虎!天气rssxml的主要内容,如果未能解决你的问题,请参考以下文章

雅虎天气 API 无法搜索变量

php 雅虎目前的天气

xml 雅虎天气条件代码

返回雅虎!摄氏天气 API 数据,使用 YQL

观察者模式

如何在我的 asp.net 网站上显示特定城市的天气温度?