I use the rss/2.0 or simple-rss gems to locally access the feed
url-----http://sports.espn.go.com  /espn/rss/news.The code is like
following:
  ####################
    require 'rubygems'
    require 'simple-rss'
    require 'open-uri'

    rss = SimpleRSS.parse open('http://sports.espn.go.com  /espn/rss/
news')
    puts("---Channel---#{rss.channel.title}")
################


But when i run the code locally,it appear an error:


################
no address associated with hostname
###################


I have tried other rss feed url offered on site
http://sports.espn.go.com/espn/news/story?page=rssinfo,but the same
error still happens.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to