Ruby-ified the code. Also refactored the crap out of the HTML parsing, since there's unfortunately no better option.
Added instructions on how to run things