eaf-base-api 3.3.4__tar.gz → 3.3.5__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-3.3.4 → eaf_base_api-3.3.5}/PKG-INFO +1 -1
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/base.py +5 -4
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/config.py +2 -1
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/pyproject.toml +1 -1
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/LICENSE +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/README.md +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/__init__.py +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/__init__.py +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/errors.py +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/logger.py +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/progress_bars.py +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/static_functions.py +0 -0
- {eaf_base_api-3.3.4 → eaf_base_api-3.3.5}/base_api/modules/type_hints.py +0 -0
|
@@ -488,9 +488,9 @@ class BaseCore:
|
|
|
488
488
|
if self.configuration.dns_over_https:
|
|
489
489
|
curl_options[CurlOpt.DOH_URL] = str(self.configuration.dns_over_https).encode("utf-8")
|
|
490
490
|
|
|
491
|
-
|
|
492
|
-
if self.configuration.
|
|
493
|
-
|
|
491
|
+
proxy = None
|
|
492
|
+
if self.configuration.proxy:
|
|
493
|
+
proxy = self.configuration.proxy
|
|
494
494
|
|
|
495
495
|
if self.configuration.max_bandwidth_mb is not None and self.configuration.max_bandwidth_mb > 0:
|
|
496
496
|
global_limit_bytes = int(self.configuration.max_bandwidth_mb * 1024 * 1024)
|
|
@@ -511,7 +511,8 @@ class BaseCore:
|
|
|
511
511
|
p_auth = (u, p)
|
|
512
512
|
|
|
513
513
|
self.session = cast(Any, AsyncSession)(
|
|
514
|
-
|
|
514
|
+
interface=self.configuration.interface,
|
|
515
|
+
proxy=proxy,
|
|
515
516
|
timeout=self.configuration.timeout,
|
|
516
517
|
verify=verify,
|
|
517
518
|
impersonate=impersonation,
|
|
@@ -18,7 +18,7 @@ class RuntimeConfig:
|
|
|
18
18
|
self.request_delay: int = 0
|
|
19
19
|
self.timeout: int = 20
|
|
20
20
|
self.max_bandwidth_mb: float| None = None # Set speed limit in megabytes per second e.g, 2.0, 3.5 etc...
|
|
21
|
-
self.
|
|
21
|
+
self.proxy = None
|
|
22
22
|
self.http_version: str = "v2" # "v3 = HTTP/3.0, v2 = HTTP/2.0, v1 = HTTP/1.1
|
|
23
23
|
self.dns_over_https: str | None = None
|
|
24
24
|
self.impersonation: str = "chrome"
|
|
@@ -31,6 +31,7 @@ class RuntimeConfig:
|
|
|
31
31
|
self.max_workers_download: int = 20
|
|
32
32
|
self.videos_concurrency: int = 5
|
|
33
33
|
self.pages_concurrency: int = 2
|
|
34
|
+
self.interface: str | None = None # IP Address of the network interface you want to bind to
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
@dataclass
|
|
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
|