eaf-base-api 2.4.2__tar.gz → 2.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eaf_base_api-2.4.2/eaf_base_api.egg-info → eaf_base_api-2.4.3}/PKG-INFO +1 -1
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/base_api/base.py +6 -1
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3/eaf_base_api.egg-info}/PKG-INFO +1 -1
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/pyproject.toml +1 -1
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/LICENSE +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/MANIFEST.in +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/README.md +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/base_api/__init__.py +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/base_api/modules/__init__.py +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/base_api/modules/config.py +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/base_api/modules/errors.py +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/base_api/modules/progress_bars.py +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/eaf_base_api.egg-info/SOURCES.txt +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/eaf_base_api.egg-info/dependency_links.txt +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/eaf_base_api.egg-info/requires.txt +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/eaf_base_api.egg-info/top_level.txt +0 -0
- {eaf_base_api-2.4.2 → eaf_base_api-2.4.3}/setup.cfg +0 -0
|
@@ -477,6 +477,8 @@ class BaseCore:
|
|
|
477
477
|
bypass_kill_switch: bool = False, # prevents infinite loop
|
|
478
478
|
data: dict = None,
|
|
479
479
|
method: str = "GET",
|
|
480
|
+
headers: dict = None,
|
|
481
|
+
json: dict = None,
|
|
480
482
|
) -> Union[bytes, str, httpx.Response, None]:
|
|
481
483
|
"""
|
|
482
484
|
Fetches content in UTF-8 Text, Bytes, or as a stream using multiple request attempts,
|
|
@@ -504,8 +506,11 @@ class BaseCore:
|
|
|
504
506
|
self.check_kill_switch()
|
|
505
507
|
|
|
506
508
|
# Perform the request with stream handling
|
|
509
|
+
if headers is None:
|
|
510
|
+
headers = self.session.headers.copy()
|
|
511
|
+
|
|
507
512
|
response = self.session.request(method=method, url=url, timeout=timeout, cookies=cookies,
|
|
508
|
-
follow_redirects=allow_redirects, data=data)
|
|
513
|
+
follow_redirects=allow_redirects, data=data, headers=headers, json=json)
|
|
509
514
|
self.total_requests += 1
|
|
510
515
|
|
|
511
516
|
# NEW: bot/challenge detection
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|