Refactor CSV file scraper.