daociyiyou
2009-Mar-17 07:54 UTC
about rss read error---no address associated with hostname
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sumanth Krishna
2009-Mar-17 07:57 UTC
Re: about rss read error---no address associated with hostname
Hi, Refer to this post! http://sumanthtechsavvy.blogspot.com/2008/08/ror-course-rss-makerparser.html and you can download the pdf for reference :) On Tue, Mar 17, 2009 at 9:54 AM, daociyiyou <cheyu22-/E1597aS9LRv1O+Z8WTAqQ@public.gmane.org> wrote:> > 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. > > >-- -- Thanks & Regards, Sumanth Krishna. A +358 40 3276564 Blogs: TwinclingCommunity: http://sumanthtechsavvy.blogspot.com/ http://www.twincling.org/node/227 http://yourway2health.blogspot.com/ http://www.osef.twincling.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
daociyiyou
2009-Mar-17 08:27 UTC
Re: about rss read error---no address associated with hostname
thank you! Perhaps i should require all the rss related library.But is it because i run the app locally instead of on the server? On 3月17日, 下午3时57分, Sumanth Krishna <tosumanthkris...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, Refer to this post!http://sumanthtechsavvy.blogspot.com/2008/08/ror-course-rss-makerpars... > and you can download the pdf for reference :) > > > > On Tue, Mar 17, 2009 at 9:54 AM, daociyiyou <chey...-/E1597aS9LRv1O+Z8WTAqQ@public.gmane.org> wrote: > > > 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,butthe same > > error still happens. > > -- > -- > Thanks & Regards, > Sumanth Krishna. A > +358 40 3276564 > > Blogs: > TwinclingCommunity: > > http://sumanthtechsavvy.blogspot.com/ > http://www.twincling.org/node/227 > > http://yourway2health.blogspot.com/ > http://www.osef.twincling.org--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
daociyiyou
2009-Mar-17 15:17 UTC
Re: about rss read error---no address associated with hostname
I still get the following error: ############ SocketError in My rssController#index getaddrinfo: no address associated with hostname. ############### I have shut down the fire wall when running the app locally. can you help me? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---