mirror of
https://github.com/Bunsly/HomeHarvest.git
synced 2026-03-04 19:44:29 -08:00
refactor: remove cls method
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user