Hi guys, I am fairly new to Rails so apologies if this is trivial. I was wondering what is the best way to extract a source from a web page? Thanks for any help, W --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
gene.tani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Apr-14 15:22 UTC
Re: Extracting web page source
On Apr 14, 4:04 am, "wintermute" <mike.granow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi guys, > > I am fairly new to Rails so apologies if this is trivial. I was > wondering what is the best way to extract a source from a web page? > Thanks for any help, > > Wyou can use curl or wget to get HTML source and static files (CSS, .JS, images) from a web server (or ruby libs like net::HTTP or open-uri) , or you can just Control-U in IE or Firefox or Command-U in safari to see the source --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
christophermatthieu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Apr-16 01:32 UTC
Re: Extracting web page source
Check out Rubyology''s Screencast #6 Whois. Here they walk you through fetching a web page and parsing through the source code for values and then returning results based on a condition. http://rubyology.com/podcasts/show/10 On Apr 14, 4:04 am, "wintermute" <mike.granow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi guys, > > I am fairly new to Rails so apologies if this is trivial. I was > wondering what is the best way to extract a source from a web page? > Thanks for any help, > > W--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 16, 2:32 am, "christophermatth...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <christophermatth...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Check out Rubyology''s Screencast #6 Whois. Here they walk you through > fetching a web page and parsing through the source code for values and > then returning results based on a condition. > > http://rubyology.com/podcasts/show/10That is great stuff thank you both! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---