Ruby scraping and R data analysis