hyper-sdk 2.5.0__tar.gz → 2.12.1__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.5.0 → hyper_sdk-2.12.1}/LICENSE +21 -21
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/PKG-INFO +40 -3
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/README.md +366 -330
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/__init__.py +1 -0
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/akamai/__init__.py +4 -4
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/akamai/pixel.py +83 -83
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/akamai/script_path.py +28 -28
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/akamai/sec_cpt.py +129 -129
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/akamai/stop_signal.py +52 -52
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/akamai_input.py +35 -38
- {hyper_sdk-2.5.0/hyper_sdk/kasada → hyper_sdk-2.12.1/hyper_sdk/datadome}/__init__.py +1 -1
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/datadome/parse.py +84 -83
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/datadome_input.py +89 -88
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/incapsula/__init__.py +2 -2
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/incapsula/dynamic.py +47 -47
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/incapsula/utmvc.py +42 -42
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/incapsula_input.py +18 -18
- {hyper_sdk-2.5.0/hyper_sdk/datadome → hyper_sdk-2.12.1/hyper_sdk/kasada}/__init__.py +1 -1
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/kasada/parse.py +27 -27
- hyper_sdk-2.12.1/hyper_sdk/kasada_input.py +67 -0
- hyper_sdk-2.12.1/hyper_sdk/session.py +476 -0
- hyper_sdk-2.12.1/hyper_sdk/session_async.py +492 -0
- hyper_sdk-2.12.1/hyper_sdk/shared.py +78 -0
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk/trustdecision_input.py +44 -44
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk.egg-info/PKG-INFO +40 -3
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk.egg-info/SOURCES.txt +2 -0
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk.egg-info/requires.txt +1 -1
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/pyproject.toml +12 -5
- hyper_sdk-2.5.0/hyper_sdk/kasada_input.py +0 -40
- hyper_sdk-2.5.0/hyper_sdk/session.py +0 -415
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-2.5.0 → hyper_sdk-2.12.1}/setup.cfg +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Hyper Solutions
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Hyper Solutions
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hyper_sdk
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.12.1
|
|
4
4
|
Summary: Hyper Solutions Python SDK
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -28,15 +28,16 @@ Project-URL: homepage, https://github.com/Hyper-Solutions/hyper-sdk-py
|
|
|
28
28
|
Classifier: Intended Audience :: Developers
|
|
29
29
|
Classifier: License :: OSI Approved :: MIT License
|
|
30
30
|
Classifier: Programming Language :: Python :: 3
|
|
31
|
-
|
|
31
|
+
Classifier: Framework :: AsyncIO
|
|
32
|
+
Requires-Python: >=3.7
|
|
32
33
|
Description-Content-Type: text/markdown
|
|
33
34
|
License-File: LICENSE
|
|
35
|
+
Requires-Dist: httpx[http2]>=0.24.0
|
|
34
36
|
Requires-Dist: certifi>=2024.2.2
|
|
35
37
|
Requires-Dist: charset-normalizer>=3.3.2
|
|
36
38
|
Requires-Dist: idna>=3.6
|
|
37
39
|
Requires-Dist: jsonpickle>=3.0.3
|
|
38
40
|
Requires-Dist: PyJWT>=2.8.0
|
|
39
|
-
Requires-Dist: requests>=2.31.0
|
|
40
41
|
Requires-Dist: urllib3>=2.2.1
|
|
41
42
|
Dynamic: license-file
|
|
42
43
|
|
|
@@ -53,6 +54,17 @@ A powerful **Python SDK** for bypassing modern bot protection systems including
|
|
|
53
54
|
|
|
54
55
|
Perfect for **web scraping**, **automation**, and **data collection** from protected websites.
|
|
55
56
|
|
|
57
|
+
## 🔑 Getting API Access
|
|
58
|
+
|
|
59
|
+
Before using this SDK, you'll need an API key from Hyper Solutions:
|
|
60
|
+
|
|
61
|
+
1. **Visit [hypersolutions.co](https://hypersolutions.co/?utm_source=github&utm_medium=sdk_readme&utm_campaign=python_sdk_api_access)** to create your account
|
|
62
|
+
2. **Choose your plan**:
|
|
63
|
+
- 💳 **Pay-as-you-go**: Perfect for testing and small-scale usage
|
|
64
|
+
- 📊 **Subscription plans**: Cost-effective for high-volume applications
|
|
65
|
+
3. **Get your API key** from the dashboard
|
|
66
|
+
4. **Start bypassing bot protection** with this SDK!
|
|
67
|
+
|
|
56
68
|
## 🚀 Quick Start
|
|
57
69
|
|
|
58
70
|
```python
|
|
@@ -268,6 +280,31 @@ pow_payload = session.generate_kasada_pow(KasadaPowInput(
|
|
|
268
280
|
))
|
|
269
281
|
```
|
|
270
282
|
|
|
283
|
+
## 🤖 Vercel BotID
|
|
284
|
+
|
|
285
|
+
Bypass **Vercel BotID** protection by generating the required `x-is-human` header.
|
|
286
|
+
|
|
287
|
+
### Generating the x-is-human Header
|
|
288
|
+
|
|
289
|
+
Create the **x-is-human header** for Vercel BotID bypass:
|
|
290
|
+
|
|
291
|
+
```python
|
|
292
|
+
from hyper_sdk import BotIDHeaderInput
|
|
293
|
+
|
|
294
|
+
header = session.generate_botid_header(BotIDHeaderInput(
|
|
295
|
+
script=script_body, # The c.js script content
|
|
296
|
+
user_agent="your-user-agent",
|
|
297
|
+
ip="your-proxy-ip",
|
|
298
|
+
accept_language="en-US,en;q=0.9",
|
|
299
|
+
))
|
|
300
|
+
|
|
301
|
+
# Use the header in your requests
|
|
302
|
+
headers = {
|
|
303
|
+
"x-is-human": header,
|
|
304
|
+
# ... other headers
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
271
308
|
### Script Path Extraction
|
|
272
309
|
|
|
273
310
|
Extract **Kasada script paths** from blocked pages (HTTP 429):
|