refactor: remove cls method

This commit is contained in:
Cullen Watson
2023-09-17 16:14:09 -05:00
parent a433e46258
commit b76c659f94
2 changed files with 9 additions and 13 deletions

View File

@@ -11,12 +11,9 @@ class ScraperInput:
class Scraper:
listing_type = ListingType.FOR_SALE
def __init__(self, scraper_input: ScraperInput):
self.location = scraper_input.location
self.session = requests.Session()
Scraper.listing_type = scraper_input.listing_type
if scraper_input.proxy_url:
self.session.proxies = {