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
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.
That is great stuff thank you both!