Refactored web scraper into a class.