Refactored scraper into a class