josh ruby

Hpricot scraping in ruby – Josh Software

Hpricot scraping in ruby – Josh Software Include gems/library required before getting started require ‘hpricot’ require ‘net/http’ require ‘rio’ # Pass website url to be scraped url = “www.funonrails.com” # Define filename to store file locally file = “temp.html” # Save page locally rio(url) < rio (file) # Open page through hpricot doc = Hpricot(open(file)) …

Hpricot scraping in ruby – Josh Software Read More »