O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
Answered by Edd Dumbill : Feb 04 2010 10:03 AM
It's a simple procedure to programmatically fetch a web page from another site. Here's an example of this:
def fetch_url(url)
r = Net::HTTP.get_response( URI.parse( url ) )
if r.is_... full answer >