notify-tls-client 0.1.2__tar.gz → 0.1.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.
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/PKG-INFO +1 -1
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/client/decorators.py +3 -3
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/notifytlsclient.py +2 -1
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/PKG-INFO +1 -1
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/pyproject.toml +1 -1
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/MANIFEST.in +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/README.md +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/__init__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/__init__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/client/__init__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/proxiesmanager/__init__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/proxiesmanager/proxiesmanager.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/proxiesmanager/proxiesmanagerloader.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/__init__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/__version__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/cffi.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/cookies.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/dependencies/__init__.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/dependencies/tls-client-32.dll +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/dependencies/tls-client-64.dll +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/dependencies/tls-client-arm64.dylib +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/dependencies/tls-client-x86.dylib +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/exceptions.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/response.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/sessions.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/settings.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/structures.py +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/SOURCES.txt +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/dependency_links.txt +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/requires.txt +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/top_level.txt +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/setup.cfg +0 -0
- {notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/setup.py +0 -0
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/client/decorators.py
RENAMED
|
@@ -47,7 +47,7 @@ def handle_exception_requests_decorator(callback):
|
|
|
47
47
|
print(traceback.format_exc())
|
|
48
48
|
self = args[0]
|
|
49
49
|
self.get_tls().close()
|
|
50
|
-
self._create_new_client(self.client_identifier)
|
|
50
|
+
self._create_new_client(self.client_identifier,self.random_tls_extension_order)
|
|
51
51
|
self.change_proxy()
|
|
52
52
|
|
|
53
53
|
return response
|
|
@@ -61,7 +61,7 @@ def handle_forbidden_requests_decorator(callback):
|
|
|
61
61
|
if response.status_code == 403 or response.status_code == 429:
|
|
62
62
|
self = args[0]
|
|
63
63
|
self.get_tls().close()
|
|
64
|
-
self._create_new_client(self.client_identifier)
|
|
64
|
+
self._create_new_client(self.client_identifier,self.random_tls_extension_order)
|
|
65
65
|
|
|
66
66
|
if self.proxies_manager:
|
|
67
67
|
self.change_proxy()
|
|
@@ -80,7 +80,7 @@ def increment_requests_decorator(callback):
|
|
|
80
80
|
|
|
81
81
|
if self.requests_amount >= self.requests_limit_same_proxy:
|
|
82
82
|
self.get_tls().close()
|
|
83
|
-
self._create_new_client(self.client_identifier)
|
|
83
|
+
self._create_new_client(self.client_identifier,self.random_tls_extension_order)
|
|
84
84
|
self.change_proxy()
|
|
85
85
|
|
|
86
86
|
return response
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/notifytlsclient.py
RENAMED
|
@@ -33,8 +33,9 @@ class NotifyTLSClient:
|
|
|
33
33
|
self.client_identifier = client_identifier
|
|
34
34
|
self.proxies_manager = proxies_manager
|
|
35
35
|
self.requests_limit_same_proxy = requests_limit_same_proxy
|
|
36
|
+
self.random_tls_extension_order = random_tls_extension_order
|
|
36
37
|
self.current_proxy = None
|
|
37
|
-
self._create_new_client(self.client_identifier, random_tls_extension_order)
|
|
38
|
+
self._create_new_client(self.client_identifier, self.random_tls_extension_order)
|
|
38
39
|
self.change_proxy()
|
|
39
40
|
|
|
40
41
|
def _create_new_client(self, client_identifier: ClientIdentifiers = 'chrome_133', random_tls_extension_order: bool = False):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/core/client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/__init__.py
RENAMED
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/__version__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/exceptions.py
RENAMED
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/response.py
RENAMED
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/sessions.py
RENAMED
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/settings.py
RENAMED
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client/tls_client/structures.py
RENAMED
|
File without changes
|
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{notify_tls_client-0.1.2 → notify_tls_client-0.1.3}/notify_tls_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|