testing price tracking/composite key changes

This commit is contained in:
tpv committed 2026-07-06 09:46:07 -07:00
1 parent 0be6fa5d13
commit 136a67c16f
3 files changed
+88 -11

No files matched your search

+4
View File
@@ -63,6 +63,7 @@ async def get_base_session(
Yields:
The configured aiohttp session.
"""
headers = headers if headers else {}
headers.setdefault("User-Agent", UA.random)
session = aiohttp.ClientSession(
@@ -95,6 +96,7 @@ async def get_tls_session(
Yields:
The configured curl_cffi session.
"""
headers = headers if headers else {}
headers.setdefault("User-Agent", UA.chrome)
async with AsyncSession(
@@ -115,6 +117,7 @@ def build_session_details(
session: Session whose headers are updated in place.
headers: Headers to merge; User-Agent is defaulted if absent.
"""
headers = headers or {}
headers.setdefault("User-Agent", UA.random)
session.headers.update(headers)
@@ -174,6 +177,7 @@ async def send_request(
json.JSONDecodeError: When parsing fails and reraise_json_error is
True.
"""
verify = True
if development_proxy:
proxy = development_proxy