Part of the EllisLab Network
   
 
i need some help guys
Posted: 19 March 2007 10:20 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  166
Joined  11-06-2006

Anyone good at extracting RSS feeds?

I have a weather RSS feed but has many elements…. here is the feed .. FEED LINK

All I want to do is get the numeric representation of the current temperature?

Anyone up for the challenge?

 Signature 

“We have just gotten a wake-up call from the Nintendo Generation.” - cerealkiller; Hackers (1995)

Profile
 
 
Posted: 19 March 2007 11:44 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  13
Joined  09-04-2006

I can’t see any way to accomplish that with this feed—there’s nothing there to say ‘this is a temperature’:

<item>
      <
guid isPermaLink="false">0.8899863764885236</guid>
      <
pubDate>Mon, 19 Mar 2007 16:36:39 GMT</pubDate>
      <
title><![CDATA[Current Weather Conditions In Huntsville, Canada]]></title>
      <
link><![CDATA[http://www.weather.com/weather/local/CAXX0648?cm_pla=city_page&cm_ite=cc&site=city_page&cm_ven=LWO&cm_cat=rss&par=LWO_rss]]></link>
      
<description><![CDATA[<img src="http://image.weather.com/web/common/wxicons/31/14.gif?12122006" alt="" />Light Snow, and 28 &deg; F. For more details?]]></description>
    </
item>

Am I looking at the right feed?

EDIT:  RSS feeds won’t offer you what you need; you’ll want an XML feed.  Weather.com offer one, but I stopped signing up when they tried to subscribe me to umpteen newsletters wink so I’m not sure whether it’s what you need… LINK

 Signature 

Rob Wilmshurst

Too lazy for procrastination…

Profile
 
 
Posted: 19 March 2007 11:51 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  166
Joined  11-06-2006

yeah; thats the right feed.  I figured it wouldn’t be usuable. Thank you.

 Signature 

“We have just gotten a wake-up call from the Nintendo Generation.” - cerealkiller; Hackers (1995)

Profile
 
 
Posted: 19 March 2007 11:53 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  102
Joined  04-19-2006

try using
yahoo weather
http://developer.yahoo.com/weather/
or
http://www.nws.noaa.gov/forecasts/xml/

 Signature 

Palm Beach Printing

Profile
 
 
Posted: 19 March 2007 12:08 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  166
Joined  11-06-2006

I also found this which gives a VERY NICE xml response from weather.com

http://xoap.weather.com/weather/local/CAXX0648?cc=*

the only problem is, i dont know if it’s legal to use or not.  Can someone that is good with licenses check out the following page and let me know if the script is okay to use? Legal Notice #1

 Signature 

“We have just gotten a wake-up call from the Nintendo Generation.” - cerealkiller; Hackers (1995)

Profile
 
 
Posted: 19 March 2007 12:12 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  102
Joined  04-19-2006

I’ve used this in the past what do you plan on doing with it.

 Signature 

Palm Beach Printing

Profile
 
 
Posted: 19 March 2007 12:13 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  166
Joined  11-06-2006

display the current temp (just the temp example: 19F) thats it

 Signature 

“We have just gotten a wake-up call from the Nintendo Generation.” - cerealkiller; Hackers (1995)

Profile
 
 
Posted: 19 March 2007 12:17 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  102
Joined  04-19-2006

If it’s for a small site with not much traffic no problem.

Just a hint query the feed and cache the results so don’t get to many hits on their system. I know they have a limit. I just cant recall what it is.

 Signature 

Palm Beach Printing

Profile
 
 
Posted: 08 July 2007 08:35 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  181
Joined  02-25-2007

Any solution for this? I can’t seem to get it working with Weather.com…

Profile
 
 
Posted: 08 July 2007 11:41 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  166
Joined  11-06-2006

Yes; I got it working.. I will post the code here so stay tuned.. i am heading to bed, will do it in the morning.

Kev

 Signature 

“We have just gotten a wake-up call from the Nintendo Generation.” - cerealkiller; Hackers (1995)

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66413 Total Logged-in Users: 30
Total Topics: 84753 Total Anonymous Users: 1
Total Replies: 454822 Total Guests: 238
Total Posts: 539575    
Members ( View Memberlist )
Newest Members:  byrooNirCalexmuellerkizerdrixcaptainredmuffquinodligtharttechsivamDjordjesammozza