hyper-sdk 2.12.2__tar.gz → 2.12.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.
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/PKG-INFO +3 -3
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/README.md +2 -2
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/akamai/script_path.py +1 -1
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/kasada/parse.py +2 -2
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk.egg-info/PKG-INFO +3 -3
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/pyproject.toml +1 -1
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/LICENSE +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/__init__.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/akamai/__init__.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/akamai/pixel.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/akamai/sec_cpt.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/akamai/stop_signal.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/akamai_input.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/datadome/__init__.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/datadome/parse.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/datadome_input.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/incapsula/__init__.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/incapsula/dynamic.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/incapsula/utmvc.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/incapsula_input.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/kasada/__init__.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/kasada_input.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/session.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/session_async.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/shared.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk/trustdecision_input.py +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk.egg-info/SOURCES.txt +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk.egg-info/requires.txt +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-2.12.2 → hyper_sdk-2.12.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyper_sdk
|
|
3
|
-
Version: 2.12.
|
|
3
|
+
Version: 2.12.3
|
|
4
4
|
Summary: Hyper Solutions Python SDK
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -310,9 +310,9 @@ headers = {
|
|
|
310
310
|
Extract **Kasada script paths** from blocked pages (HTTP 429):
|
|
311
311
|
|
|
312
312
|
```python
|
|
313
|
-
from hyper_sdk.kasada import
|
|
313
|
+
from hyper_sdk.kasada import parse_kasada_script_path
|
|
314
314
|
|
|
315
|
-
script_path =
|
|
315
|
+
script_path = parse_kasada_script_path(blocked_page_html)
|
|
316
316
|
# Returns: /ips.js?timestamp=...
|
|
317
317
|
```
|
|
318
318
|
|
|
@@ -267,9 +267,9 @@ headers = {
|
|
|
267
267
|
Extract **Kasada script paths** from blocked pages (HTTP 429):
|
|
268
268
|
|
|
269
269
|
```python
|
|
270
|
-
from hyper_sdk.kasada import
|
|
270
|
+
from hyper_sdk.kasada import parse_kasada_script_path
|
|
271
271
|
|
|
272
|
-
script_path =
|
|
272
|
+
script_path = parse_kasada_script_path(blocked_page_html)
|
|
273
273
|
# Returns: /ips.js?timestamp=...
|
|
274
274
|
```
|
|
275
275
|
|
|
@@ -5,7 +5,7 @@ script_path_expr = re.compile(r'<script type="text/javascript"\s+(?:nonce=".*?")
|
|
|
5
5
|
re.IGNORECASE)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
def
|
|
8
|
+
def parse_akamai_script_path(src: str) -> str:
|
|
9
9
|
"""
|
|
10
10
|
Gets the Akamai Bot Manager web SDK path from the given HTML code src.
|
|
11
11
|
|
|
@@ -4,9 +4,9 @@ import re
|
|
|
4
4
|
script_path_expr = re.compile(r'<script\s+src="([^"]+)"')
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
def
|
|
7
|
+
def parse_kasada_script_path(src: str) -> str:
|
|
8
8
|
"""
|
|
9
|
-
Gets the
|
|
9
|
+
Gets the Kasada script path from the given HTML code src.
|
|
10
10
|
|
|
11
11
|
This function searches the provided HTML source code for the path of a JavaScript script tag that matches the
|
|
12
12
|
specified regular expression pattern.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyper_sdk
|
|
3
|
-
Version: 2.12.
|
|
3
|
+
Version: 2.12.3
|
|
4
4
|
Summary: Hyper Solutions Python SDK
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -310,9 +310,9 @@ headers = {
|
|
|
310
310
|
Extract **Kasada script paths** from blocked pages (HTTP 429):
|
|
311
311
|
|
|
312
312
|
```python
|
|
313
|
-
from hyper_sdk.kasada import
|
|
313
|
+
from hyper_sdk.kasada import parse_kasada_script_path
|
|
314
314
|
|
|
315
|
-
script_path =
|
|
315
|
+
script_path = parse_kasada_script_path(blocked_page_html)
|
|
316
316
|
# Returns: /ips.js?timestamp=...
|
|
317
317
|
```
|
|
318
318
|
|
|
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
|
|
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
|