parse-everything 1.1.0__tar.gz → 1.1.2__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.
- {parse_everything-1.1.0 → parse_everything-1.1.2}/PKG-INFO +6 -4
- {parse_everything-1.1.0 → parse_everything-1.1.2}/README.md +102 -102
- {parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything/__init__.py +1 -1
- {parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything/client.py +175 -173
- {parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything.egg-info/PKG-INFO +6 -4
- {parse_everything-1.1.0 → parse_everything-1.1.2}/setup.py +4 -2
- {parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything.egg-info/SOURCES.txt +0 -0
- {parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything.egg-info/dependency_links.txt +0 -0
- {parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything.egg-info/top_level.txt +0 -0
- {parse_everything-1.1.0 → parse_everything-1.1.2}/pyproject.toml +0 -0
- {parse_everything-1.1.0 → parse_everything-1.1.2}/setup.cfg +0 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: parse-everything
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: Official Python SDK for Parse Everything — Bypass Cloudflare Turnstile, Akamai & DataDome with TLS JA3/JA4 impersonation, GET/POST forwarding & 0-credit failure guarantee.
|
|
5
5
|
Home-page: https://parse-everything.com
|
|
6
6
|
Author: Parse Everything
|
|
7
7
|
Author-email: support@rawmind.app
|
|
8
8
|
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://parse-everything.com
|
|
9
10
|
Project-URL: Documentation, https://parse-everything.com/docs.php
|
|
10
|
-
Project-URL: Source Code, https://github.com/
|
|
11
|
+
Project-URL: Source Code, https://github.com/zenkdom/parse-everything
|
|
12
|
+
Project-URL: Bug Tracker, https://github.com/zenkdom/parse-everything/issues
|
|
11
13
|
Keywords: cloudflare-bypass,turnstile-solver,akamai-bypass,datadome,web-scraping-api,ja3-spoofing,ja4-fingerprinting,anti-bot,flaresolverr-alternative,zenrows-alternative,scrapingbee-alternative,crawler,web-extraction
|
|
12
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
15
|
Classifier: Intended Audience :: Developers
|
|
@@ -73,8 +75,8 @@ from parse_everything import ParseEverything
|
|
|
73
75
|
client = ParseEverything(api_key="pe_live_YOUR_API_KEY")
|
|
74
76
|
|
|
75
77
|
result = client.scrape(
|
|
76
|
-
target_url="https://
|
|
77
|
-
|
|
78
|
+
target_url="https://parse-everything.com/demo/cloudflare",
|
|
79
|
+
auto_detect=True,
|
|
78
80
|
render_js=False # Handled via ultra-fast TLS impersonation in ~300ms
|
|
79
81
|
)
|
|
80
82
|
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
# Parse Everything — Python SDK
|
|
2
|
-
|
|
3
|
-
[](https://pypi.org/project/parse-everything/)
|
|
4
|
-
[](https://parse-everything.com)
|
|
5
|
-
[](https://pypi.org/project/parse-everything/)
|
|
6
|
-
|
|
7
|
-
Official lightweight Python client for [Parse Everything](https://parse-everything.com) — Enterprise Web Scraping & Anti-Bot Bypass API.
|
|
8
|
-
|
|
9
|
-
Effortlessly bypass **Cloudflare Turnstile**, **Cloudflare WAF (403 Forbidden)**, **Akamai Bot Manager**, **DataDome**, and **DDoS-Guard** with authentic TLS JA3/JA4 fingerprint impersonation.
|
|
10
|
-
|
|
11
|
-
> 🛡️ **Zero Risk Policy:** Failed, blocked, or unreachable requests cost **0 credits**. You only pay for successful extractions (HTTP 200–399).
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 🚀 Quick Install
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
pip install parse-everything
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
*(Zero heavy browser or binary dependencies required. Uses built-in standard library).*
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## 🔑 Get Your API Key
|
|
26
|
-
|
|
27
|
-
Sign up at [parse-everything.com](https://parse-everything.com) to receive **1,000 free API credits** instantly.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 💡 Usage Examples
|
|
32
|
-
|
|
33
|
-
### 1. Simple Scrape (Bypass Cloudflare Turnstile & WAF)
|
|
34
|
-
```python
|
|
35
|
-
from parse_everything import ParseEverything
|
|
36
|
-
|
|
37
|
-
client = ParseEverything(api_key="pe_live_YOUR_API_KEY")
|
|
38
|
-
|
|
39
|
-
result = client.scrape(
|
|
40
|
-
target_url="https://
|
|
41
|
-
|
|
42
|
-
render_js=False # Handled via ultra-fast TLS impersonation in ~300ms
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
print("HTTP Status:", result["data"]["http_status"])
|
|
46
|
-
print("Page Title:", result["data"]["page_title"])
|
|
47
|
-
print("Protection Bypassed:", result["data"]["protection_bypassed"])
|
|
48
|
-
print("HTML:", result["data"]["full_html"][:200])
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### 2. Extract Structured Data with CSS Selectors (LLM / RAG Ready)
|
|
52
|
-
```python
|
|
53
|
-
result = client.scrape(
|
|
54
|
-
target_url="https://example.com/products",
|
|
55
|
-
selectors={
|
|
56
|
-
"titles": "h2.product-title",
|
|
57
|
-
"prices": ".price",
|
|
58
|
-
"links": "a.buy-btn"
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
print(result["data"]["selectors_data"])
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### 3. Extract Clean Text Only (Save 85% LLM Tokens)
|
|
66
|
-
```python
|
|
67
|
-
result = client.scrape(
|
|
68
|
-
target_url="https://news-site.com/article",
|
|
69
|
-
extract_text=True
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
print(result["data"]["clean_text"])
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### 4. POST / PUT Request Forwarding (Scrape Internal APIs & Forms)
|
|
76
|
-
```python
|
|
77
|
-
# Easily scrape protected POST APIs or submit search forms:
|
|
78
|
-
result = client.post(
|
|
79
|
-
url="https://target-store.com/api/v1/search",
|
|
80
|
-
json_body={"category": "electronics", "in_stock": True},
|
|
81
|
-
country_code="US"
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
print("HTTP Status:", result["data"]["http_status"])
|
|
85
|
-
print("Payload:", result["data"]["full_html"])
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### 5. Asynchronous Batch Scraping (Up to 100 URLs)
|
|
89
|
-
```python
|
|
90
|
-
batch_job = client.batch(
|
|
91
|
-
target_urls=[
|
|
92
|
-
"https://example.com/page1",
|
|
93
|
-
"https://example.com/page2",
|
|
94
|
-
"https://example.com/page3"
|
|
95
|
-
]
|
|
96
|
-
)
|
|
97
|
-
print("Batch ID:", batch_job["batch_id"])
|
|
98
|
-
|
|
99
|
-
# Poll progress
|
|
100
|
-
status = client.get_batch(batch_job["batch_id"])
|
|
101
|
-
print(f"Status: {status['job_status']} ({status['completed_urls']}/{status['total_urls']})")
|
|
102
|
-
```
|
|
1
|
+
# Parse Everything — Python SDK
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/parse-everything/)
|
|
4
|
+
[](https://parse-everything.com)
|
|
5
|
+
[](https://pypi.org/project/parse-everything/)
|
|
6
|
+
|
|
7
|
+
Official lightweight Python client for [Parse Everything](https://parse-everything.com) — Enterprise Web Scraping & Anti-Bot Bypass API.
|
|
8
|
+
|
|
9
|
+
Effortlessly bypass **Cloudflare Turnstile**, **Cloudflare WAF (403 Forbidden)**, **Akamai Bot Manager**, **DataDome**, and **DDoS-Guard** with authentic TLS JA3/JA4 fingerprint impersonation.
|
|
10
|
+
|
|
11
|
+
> 🛡️ **Zero Risk Policy:** Failed, blocked, or unreachable requests cost **0 credits**. You only pay for successful extractions (HTTP 200–399).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 🚀 Quick Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install parse-everything
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
*(Zero heavy browser or binary dependencies required. Uses built-in standard library).*
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 🔑 Get Your API Key
|
|
26
|
+
|
|
27
|
+
Sign up at [parse-everything.com](https://parse-everything.com) to receive **1,000 free API credits** instantly.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 💡 Usage Examples
|
|
32
|
+
|
|
33
|
+
### 1. Simple Scrape (Bypass Cloudflare Turnstile & WAF)
|
|
34
|
+
```python
|
|
35
|
+
from parse_everything import ParseEverything
|
|
36
|
+
|
|
37
|
+
client = ParseEverything(api_key="pe_live_YOUR_API_KEY")
|
|
38
|
+
|
|
39
|
+
result = client.scrape(
|
|
40
|
+
target_url="https://parse-everything.com/demo/cloudflare",
|
|
41
|
+
auto_detect=True,
|
|
42
|
+
render_js=False # Handled via ultra-fast TLS impersonation in ~300ms
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
print("HTTP Status:", result["data"]["http_status"])
|
|
46
|
+
print("Page Title:", result["data"]["page_title"])
|
|
47
|
+
print("Protection Bypassed:", result["data"]["protection_bypassed"])
|
|
48
|
+
print("HTML:", result["data"]["full_html"][:200])
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 2. Extract Structured Data with CSS Selectors (LLM / RAG Ready)
|
|
52
|
+
```python
|
|
53
|
+
result = client.scrape(
|
|
54
|
+
target_url="https://example.com/products",
|
|
55
|
+
selectors={
|
|
56
|
+
"titles": "h2.product-title",
|
|
57
|
+
"prices": ".price",
|
|
58
|
+
"links": "a.buy-btn"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
print(result["data"]["selectors_data"])
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 3. Extract Clean Text Only (Save 85% LLM Tokens)
|
|
66
|
+
```python
|
|
67
|
+
result = client.scrape(
|
|
68
|
+
target_url="https://news-site.com/article",
|
|
69
|
+
extract_text=True
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
print(result["data"]["clean_text"])
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 4. POST / PUT Request Forwarding (Scrape Internal APIs & Forms)
|
|
76
|
+
```python
|
|
77
|
+
# Easily scrape protected POST APIs or submit search forms:
|
|
78
|
+
result = client.post(
|
|
79
|
+
url="https://target-store.com/api/v1/search",
|
|
80
|
+
json_body={"category": "electronics", "in_stock": True},
|
|
81
|
+
country_code="US"
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
print("HTTP Status:", result["data"]["http_status"])
|
|
85
|
+
print("Payload:", result["data"]["full_html"])
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 5. Asynchronous Batch Scraping (Up to 100 URLs)
|
|
89
|
+
```python
|
|
90
|
+
batch_job = client.batch(
|
|
91
|
+
target_urls=[
|
|
92
|
+
"https://example.com/page1",
|
|
93
|
+
"https://example.com/page2",
|
|
94
|
+
"https://example.com/page3"
|
|
95
|
+
]
|
|
96
|
+
)
|
|
97
|
+
print("Batch ID:", batch_job["batch_id"])
|
|
98
|
+
|
|
99
|
+
# Poll progress
|
|
100
|
+
status = client.get_batch(batch_job["batch_id"])
|
|
101
|
+
print(f"Status: {status['job_status']} ({status['completed_urls']}/{status['total_urls']})")
|
|
102
|
+
```
|
|
@@ -1,173 +1,175 @@
|
|
|
1
|
-
import urllib.request
|
|
2
|
-
import urllib.parse
|
|
3
|
-
import json
|
|
4
|
-
import time
|
|
5
|
-
from typing import Optional, Dict, Any, List
|
|
6
|
-
|
|
7
|
-
class ParseEverythingError(Exception):
|
|
8
|
-
"""Base exception for Parse Everything API errors."""
|
|
9
|
-
def __init__(self, message: str, status_code: Optional[int] = None, response_body: Optional[str] = None):
|
|
10
|
-
super().__init__(message)
|
|
11
|
-
self.status_code = status_code
|
|
12
|
-
self.response_body = response_body
|
|
13
|
-
|
|
14
|
-
class ParseEverything:
|
|
15
|
-
"""
|
|
16
|
-
Client for Parse Everything Web Scraping & Anti-Bot Bypass API.
|
|
17
|
-
|
|
18
|
-
Usage:
|
|
19
|
-
from parse_everything import ParseEverything
|
|
20
|
-
client = ParseEverything(api_key="pe_live_...")
|
|
21
|
-
res = client.scrape("https://
|
|
22
|
-
print(res['data']['page_title'])
|
|
23
|
-
"""
|
|
24
|
-
def __init__(self, api_key: str, base_url: str = "https://parse-everything.com"):
|
|
25
|
-
if not api_key:
|
|
26
|
-
raise ValueError("api_key is required. Get 1,000 free credits at https://parse-everything.com")
|
|
27
|
-
self.api_key = api_key.strip()
|
|
28
|
-
self.base_url = base_url.rstrip("/")
|
|
29
|
-
|
|
30
|
-
def scrape(
|
|
31
|
-
self,
|
|
32
|
-
target_url: str,
|
|
33
|
-
render_js: bool = False,
|
|
34
|
-
bypass_cloudflare: bool =
|
|
35
|
-
country_code: str = "US",
|
|
36
|
-
extract_text: bool = False,
|
|
37
|
-
selectors: Optional[Dict[str, str]] = None,
|
|
38
|
-
custom_headers: Optional[Dict[str, str]] = None,
|
|
39
|
-
cookies: Optional[Dict[str, str]] = None,
|
|
40
|
-
timeout: int = 40,
|
|
41
|
-
method: str = "GET",
|
|
42
|
-
body: Optional[Any] = None,
|
|
43
|
-
post_data: Optional[Any] = None,
|
|
44
|
-
auto_detect: bool = True,
|
|
45
|
-
wait_for_selector: Optional[str] = None,
|
|
46
|
-
session_id: Optional[str] = None
|
|
47
|
-
) -> Dict[str, Any]:
|
|
48
|
-
"""
|
|
49
|
-
Extract web data from any protected target URL.
|
|
50
|
-
Supports GET, POST, PUT, DELETE requests with body forwarding.
|
|
51
|
-
Note: Failed or blocked requests cost 0 credits.
|
|
52
|
-
"""
|
|
53
|
-
target_method = (method or "GET").strip().upper()
|
|
54
|
-
target_body = body if body is not None else post_data
|
|
55
|
-
|
|
56
|
-
payload = {
|
|
57
|
-
"target_url": target_url,
|
|
58
|
-
"method": target_method,
|
|
59
|
-
"render_js": render_js,
|
|
60
|
-
|
|
61
|
-
"auto_detect": auto_detect,
|
|
62
|
-
"country_code": country_code,
|
|
63
|
-
"extract_text": extract_text,
|
|
64
|
-
"timeout": timeout
|
|
65
|
-
}
|
|
66
|
-
if
|
|
67
|
-
payload["
|
|
68
|
-
if
|
|
69
|
-
payload["
|
|
70
|
-
if
|
|
71
|
-
payload["
|
|
72
|
-
if
|
|
73
|
-
payload["
|
|
74
|
-
if
|
|
75
|
-
payload["
|
|
76
|
-
if
|
|
77
|
-
payload["
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
msg =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
raise ParseEverythingError(f"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"""
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"""
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
1
|
+
import urllib.request
|
|
2
|
+
import urllib.parse
|
|
3
|
+
import json
|
|
4
|
+
import time
|
|
5
|
+
from typing import Optional, Dict, Any, List
|
|
6
|
+
|
|
7
|
+
class ParseEverythingError(Exception):
|
|
8
|
+
"""Base exception for Parse Everything API errors."""
|
|
9
|
+
def __init__(self, message: str, status_code: Optional[int] = None, response_body: Optional[str] = None):
|
|
10
|
+
super().__init__(message)
|
|
11
|
+
self.status_code = status_code
|
|
12
|
+
self.response_body = response_body
|
|
13
|
+
|
|
14
|
+
class ParseEverything:
|
|
15
|
+
"""
|
|
16
|
+
Client for Parse Everything Web Scraping & Anti-Bot Bypass API.
|
|
17
|
+
|
|
18
|
+
Usage:
|
|
19
|
+
from parse_everything import ParseEverything
|
|
20
|
+
client = ParseEverything(api_key="pe_live_...")
|
|
21
|
+
res = client.scrape("https://parse-everything.com/demo/cloudflare")
|
|
22
|
+
print(res['data']['page_title'])
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self, api_key: str, base_url: str = "https://parse-everything.com"):
|
|
25
|
+
if not api_key:
|
|
26
|
+
raise ValueError("api_key is required. Get 1,000 free credits at https://parse-everything.com")
|
|
27
|
+
self.api_key = api_key.strip()
|
|
28
|
+
self.base_url = base_url.rstrip("/")
|
|
29
|
+
|
|
30
|
+
def scrape(
|
|
31
|
+
self,
|
|
32
|
+
target_url: str,
|
|
33
|
+
render_js: bool = False,
|
|
34
|
+
bypass_cloudflare: Optional[bool] = None,
|
|
35
|
+
country_code: str = "US",
|
|
36
|
+
extract_text: bool = False,
|
|
37
|
+
selectors: Optional[Dict[str, str]] = None,
|
|
38
|
+
custom_headers: Optional[Dict[str, str]] = None,
|
|
39
|
+
cookies: Optional[Dict[str, str]] = None,
|
|
40
|
+
timeout: int = 40,
|
|
41
|
+
method: str = "GET",
|
|
42
|
+
body: Optional[Any] = None,
|
|
43
|
+
post_data: Optional[Any] = None,
|
|
44
|
+
auto_detect: bool = True,
|
|
45
|
+
wait_for_selector: Optional[str] = None,
|
|
46
|
+
session_id: Optional[str] = None
|
|
47
|
+
) -> Dict[str, Any]:
|
|
48
|
+
"""
|
|
49
|
+
Extract web data from any protected target URL.
|
|
50
|
+
Supports GET, POST, PUT, DELETE requests with body forwarding.
|
|
51
|
+
Note: Failed or blocked requests cost 0 credits.
|
|
52
|
+
"""
|
|
53
|
+
target_method = (method or "GET").strip().upper()
|
|
54
|
+
target_body = body if body is not None else post_data
|
|
55
|
+
|
|
56
|
+
payload = {
|
|
57
|
+
"target_url": target_url,
|
|
58
|
+
"method": target_method,
|
|
59
|
+
"render_js": render_js,
|
|
60
|
+
|
|
61
|
+
"auto_detect": auto_detect,
|
|
62
|
+
"country_code": country_code,
|
|
63
|
+
"extract_text": extract_text,
|
|
64
|
+
"timeout": timeout
|
|
65
|
+
}
|
|
66
|
+
if bypass_cloudflare is not None:
|
|
67
|
+
payload["bypass_cloudflare"] = bypass_cloudflare
|
|
68
|
+
if target_body is not None:
|
|
69
|
+
payload["body"] = target_body
|
|
70
|
+
if selectors:
|
|
71
|
+
payload["selectors"] = selectors
|
|
72
|
+
if wait_for_selector:
|
|
73
|
+
payload["wait_for_selector"] = wait_for_selector
|
|
74
|
+
if custom_headers:
|
|
75
|
+
payload["custom_headers"] = custom_headers
|
|
76
|
+
if cookies:
|
|
77
|
+
payload["cookies"] = cookies
|
|
78
|
+
if session_id:
|
|
79
|
+
payload["session_id"] = session_id
|
|
80
|
+
|
|
81
|
+
url = f"{self.base_url}/api/v1/extract"
|
|
82
|
+
req = urllib.request.Request(
|
|
83
|
+
url,
|
|
84
|
+
data=json.dumps(payload).encode("utf-8"),
|
|
85
|
+
headers={
|
|
86
|
+
"Content-Type": "application/json",
|
|
87
|
+
"Authorization": f"Bearer {self.api_key}",
|
|
88
|
+
"User-Agent": "ParseEverything-PythonSDK/1.1.1"
|
|
89
|
+
},
|
|
90
|
+
method="POST"
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
try:
|
|
94
|
+
with urllib.request.urlopen(req, timeout=timeout + 5) as resp:
|
|
95
|
+
return json.loads(resp.read().decode("utf-8"))
|
|
96
|
+
except urllib.error.HTTPError as e:
|
|
97
|
+
body_resp = e.read().decode("utf-8", errors="replace")
|
|
98
|
+
try:
|
|
99
|
+
err_json = json.loads(body_resp)
|
|
100
|
+
msg = err_json.get("message") or err_json.get("detail") or str(e)
|
|
101
|
+
except Exception:
|
|
102
|
+
msg = body_resp or str(e)
|
|
103
|
+
raise ParseEverythingError(f"API Error ({e.code}): {msg}", status_code=e.code, response_body=body_resp)
|
|
104
|
+
except Exception as e:
|
|
105
|
+
raise ParseEverythingError(f"Request failed: {str(e)}")
|
|
106
|
+
|
|
107
|
+
def get(self, url: str, **kwargs) -> Dict[str, Any]:
|
|
108
|
+
"""Convenience helper for GET extraction."""
|
|
109
|
+
return self.scrape(target_url=url, method="GET", **kwargs)
|
|
110
|
+
|
|
111
|
+
def post(self, url: str, data: Optional[Any] = None, json_body: Optional[Any] = None, **kwargs) -> Dict[str, Any]:
|
|
112
|
+
"""Convenience helper for POST extraction with body forwarding."""
|
|
113
|
+
body = json_body if json_body is not None else data
|
|
114
|
+
return self.scrape(target_url=url, method="POST", body=body, **kwargs)
|
|
115
|
+
|
|
116
|
+
def put(self, url: str, data: Optional[Any] = None, json_body: Optional[Any] = None, **kwargs) -> Dict[str, Any]:
|
|
117
|
+
"""Convenience helper for PUT extraction with body forwarding."""
|
|
118
|
+
body = json_body if json_body is not None else data
|
|
119
|
+
return self.scrape(target_url=url, method="PUT", body=body, **kwargs)
|
|
120
|
+
|
|
121
|
+
def batch(
|
|
122
|
+
self,
|
|
123
|
+
target_urls: List[str],
|
|
124
|
+
render_js: bool = False,
|
|
125
|
+
country_code: str = "US",
|
|
126
|
+
webhook_url: Optional[str] = None
|
|
127
|
+
) -> Dict[str, Any]:
|
|
128
|
+
"""
|
|
129
|
+
Submit a batch of up to 100 URLs for background extraction.
|
|
130
|
+
"""
|
|
131
|
+
payload = {
|
|
132
|
+
"target_urls": target_urls,
|
|
133
|
+
"render_js": render_js,
|
|
134
|
+
"country_code": country_code
|
|
135
|
+
}
|
|
136
|
+
if webhook_url:
|
|
137
|
+
payload["webhook_url"] = webhook_url
|
|
138
|
+
|
|
139
|
+
url = f"{self.base_url}/api/v1/batch"
|
|
140
|
+
req = urllib.request.Request(
|
|
141
|
+
url,
|
|
142
|
+
data=json.dumps(payload).encode("utf-8"),
|
|
143
|
+
headers={
|
|
144
|
+
"Content-Type": "application/json",
|
|
145
|
+
"Authorization": f"Bearer {self.api_key}",
|
|
146
|
+
"User-Agent": "ParseEverything-PythonSDK/1.0"
|
|
147
|
+
},
|
|
148
|
+
method="POST"
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
try:
|
|
152
|
+
with urllib.request.urlopen(req, timeout=30) as resp:
|
|
153
|
+
return json.loads(resp.read().decode("utf-8"))
|
|
154
|
+
except urllib.error.HTTPError as e:
|
|
155
|
+
body = e.read().decode("utf-8", errors="replace")
|
|
156
|
+
raise ParseEverythingError(f"Batch Error ({e.code}): {body}", status_code=e.code, response_body=body)
|
|
157
|
+
|
|
158
|
+
def get_batch(self, batch_id: str) -> Dict[str, Any]:
|
|
159
|
+
"""
|
|
160
|
+
Poll progress and results for a batch job.
|
|
161
|
+
"""
|
|
162
|
+
url = f"{self.base_url}/api/v1/batch/{batch_id}"
|
|
163
|
+
req = urllib.request.Request(
|
|
164
|
+
url,
|
|
165
|
+
headers={
|
|
166
|
+
"Authorization": f"Bearer {self.api_key}",
|
|
167
|
+
"User-Agent": "ParseEverything-PythonSDK/1.0"
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
try:
|
|
171
|
+
with urllib.request.urlopen(req, timeout=20) as resp:
|
|
172
|
+
return json.loads(resp.read().decode("utf-8"))
|
|
173
|
+
except urllib.error.HTTPError as e:
|
|
174
|
+
body = e.read().decode("utf-8", errors="replace")
|
|
175
|
+
raise ParseEverythingError(f"Batch poll failed ({e.code}): {body}", status_code=e.code, response_body=body)
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: parse-everything
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: Official Python SDK for Parse Everything — Bypass Cloudflare Turnstile, Akamai & DataDome with TLS JA3/JA4 impersonation, GET/POST forwarding & 0-credit failure guarantee.
|
|
5
5
|
Home-page: https://parse-everything.com
|
|
6
6
|
Author: Parse Everything
|
|
7
7
|
Author-email: support@rawmind.app
|
|
8
8
|
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://parse-everything.com
|
|
9
10
|
Project-URL: Documentation, https://parse-everything.com/docs.php
|
|
10
|
-
Project-URL: Source Code, https://github.com/
|
|
11
|
+
Project-URL: Source Code, https://github.com/zenkdom/parse-everything
|
|
12
|
+
Project-URL: Bug Tracker, https://github.com/zenkdom/parse-everything/issues
|
|
11
13
|
Keywords: cloudflare-bypass,turnstile-solver,akamai-bypass,datadome,web-scraping-api,ja3-spoofing,ja4-fingerprinting,anti-bot,flaresolverr-alternative,zenrows-alternative,scrapingbee-alternative,crawler,web-extraction
|
|
12
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
15
|
Classifier: Intended Audience :: Developers
|
|
@@ -73,8 +75,8 @@ from parse_everything import ParseEverything
|
|
|
73
75
|
client = ParseEverything(api_key="pe_live_YOUR_API_KEY")
|
|
74
76
|
|
|
75
77
|
result = client.scrape(
|
|
76
|
-
target_url="https://
|
|
77
|
-
|
|
78
|
+
target_url="https://parse-everything.com/demo/cloudflare",
|
|
79
|
+
auto_detect=True,
|
|
78
80
|
render_js=False # Handled via ultra-fast TLS impersonation in ~300ms
|
|
79
81
|
)
|
|
80
82
|
|
|
@@ -9,7 +9,7 @@ if os.path.exists(readme_path):
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="parse-everything",
|
|
12
|
-
version="1.1.
|
|
12
|
+
version="1.1.2",
|
|
13
13
|
author="Parse Everything",
|
|
14
14
|
author_email="support@rawmind.app",
|
|
15
15
|
description="Official Python SDK for Parse Everything — Bypass Cloudflare Turnstile, Akamai & DataDome with TLS JA3/JA4 impersonation, GET/POST forwarding & 0-credit failure guarantee.",
|
|
@@ -17,8 +17,10 @@ setup(
|
|
|
17
17
|
long_description_content_type="text/markdown",
|
|
18
18
|
url="https://parse-everything.com",
|
|
19
19
|
project_urls={
|
|
20
|
+
"Homepage": "https://parse-everything.com",
|
|
20
21
|
"Documentation": "https://parse-everything.com/docs.php",
|
|
21
|
-
"Source Code": "https://github.com/
|
|
22
|
+
"Source Code": "https://github.com/zenkdom/parse-everything",
|
|
23
|
+
"Bug Tracker": "https://github.com/zenkdom/parse-everything/issues",
|
|
22
24
|
},
|
|
23
25
|
packages=find_packages(),
|
|
24
26
|
license="MIT",
|
|
File without changes
|
{parse_everything-1.1.0 → parse_everything-1.1.2}/parse_everything.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|