- zillow proxy support

This commit is contained in:
Zachary Hampton
2023-09-28 18:40:16 -07:00
parent 59317fd6fc
commit 3b7c17b7b5
3 changed files with 12 additions and 5 deletions

View File

@@ -20,11 +20,12 @@ from datetime import datetime, timedelta
class ZillowScraper(Scraper):
def __init__(self, scraper_input):
super().__init__(scraper_input)
self.session = tls_client.Session(
session = tls_client.Session(
client_identifier="chrome112", random_tls_extension_order=True
)
super().__init__(scraper_input, session)
self.session.headers.update({
'authority': 'www.zillow.com',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',