refactor to make Scraper a class