refactor: move proxy to session

This commit is contained in:
Cullen Watson
2023-09-19 15:48:46 -05:00
parent 5f31beda46
commit 1f0feb836d
4 changed files with 10 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ class Scraper:
self.location = scraper_input.location
self.listing_type = scraper_input.listing_type
self.session = requests.Session()
self.session = requests.Session(proxies=scraper_input.proxy)
self.listing_type = scraper_input.listing_type
self.site_name = scraper_input.site_name