Tag Archives: scraping

Raspar – Build a html parser in 5 minutes

Creating HTML Parsers has never been this simple. Here is how you can create parsers very quickly with minimal code. Do check out the “rasper” gem on RubyGems. Continue reading

Advertisements
Posted in Ruby | Tagged , | Leave a comment

Hpricot scraping in ruby

Include gems/library required before getting started require ‘hpricot’require ‘net/http’require ‘rio’ # Pass website url to be scrapedurl = “www.funonrails.com”# Define filename to store file locallyfile = “temp.html”# Save page locallyrio(url) < rio (file) # Open page through hpricotdoc = Hpricot(open(file))Apply … Continue reading

Posted in Ruby | Tagged , , | 1 Comment