Translate Ruby Sagarin scraper to R

Thank you again for the help!