A template based parser for scraping HTML code written in Ruby