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
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
On Apr 14, 4:04 am, “wintermute” [email protected] 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 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
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.
On Apr 16, 2:32 am, “[email protected]”
[email protected] 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.
That is great stuff thank you both!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs