parse-everything 1.0.1__tar.gz → 1.1.0__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: parse-everything
3
- Version: 1.0.1
4
- Summary: Official Python SDK for Parse Everything — Bypass Cloudflare Turnstile, Akamai & DataDome with TLS JA3/JA4 impersonation.
3
+ Version: 1.1.0
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
@@ -36,7 +36,7 @@ Dynamic: summary
36
36
 
37
37
  # Parse Everything — Python SDK
38
38
 
39
- [![PyPI version](https://img.shields.io/badge/pypi-v1.0.1-blue.svg)](https://pypi.org/project/parse-everything/)
39
+ [![PyPI version](https://img.shields.io/badge/pypi-v1.1.0-blue.svg)](https://pypi.org/project/parse-everything/)
40
40
  [![Free Credits](https://img.shields.io/badge/Free%20Tier-1%2C000%20Requests-green.svg)](https://parse-everything.com)
41
41
  [![Python Versions](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://pypi.org/project/parse-everything/)
42
42
 
@@ -44,6 +44,8 @@ Official lightweight Python client for [Parse Everything](https://parse-everythi
44
44
 
45
45
  Effortlessly bypass **Cloudflare Turnstile**, **Cloudflare WAF (403 Forbidden)**, **Akamai Bot Manager**, **DataDome**, and **DDoS-Guard** with authentic TLS JA3/JA4 fingerprint impersonation.
46
46
 
47
+ > 🛡️ **Zero Risk Policy:** Failed, blocked, or unreachable requests cost **0 credits**. You only pay for successful extractions (HTTP 200–399).
48
+
47
49
  ---
48
50
 
49
51
  ## 🚀 Quick Install
@@ -106,7 +108,20 @@ result = client.scrape(
106
108
  print(result["data"]["clean_text"])
107
109
  ```
108
110
 
109
- ### 4. Asynchronous Batch Scraping (Up to 100 URLs)
111
+ ### 4. POST / PUT Request Forwarding (Scrape Internal APIs & Forms)
112
+ ```python
113
+ # Easily scrape protected POST APIs or submit search forms:
114
+ result = client.post(
115
+ url="https://target-store.com/api/v1/search",
116
+ json_body={"category": "electronics", "in_stock": True},
117
+ country_code="US"
118
+ )
119
+
120
+ print("HTTP Status:", result["data"]["http_status"])
121
+ print("Payload:", result["data"]["full_html"])
122
+ ```
123
+
124
+ ### 5. Asynchronous Batch Scraping (Up to 100 URLs)
110
125
  ```python
111
126
  batch_job = client.batch(
112
127
  target_urls=[
@@ -121,14 +136,3 @@ print("Batch ID:", batch_job["batch_id"])
121
136
  status = client.get_batch(batch_job["batch_id"])
122
137
  print(f"Status: {status['job_status']} ({status['completed_urls']}/{status['total_urls']})")
123
138
  ```
124
-
125
- ---
126
-
127
- ## 📦 How to Publish to PyPI
128
-
129
- ```bash
130
- cd AD/04_sdks_and_packages/python_pypi
131
- pip install build twine
132
- python -m build
133
- python -m twine upload dist/*
134
- ```
@@ -1,6 +1,6 @@
1
1
  # Parse Everything — Python SDK
2
2
 
3
- [![PyPI version](https://img.shields.io/badge/pypi-v1.0.1-blue.svg)](https://pypi.org/project/parse-everything/)
3
+ [![PyPI version](https://img.shields.io/badge/pypi-v1.1.0-blue.svg)](https://pypi.org/project/parse-everything/)
4
4
  [![Free Credits](https://img.shields.io/badge/Free%20Tier-1%2C000%20Requests-green.svg)](https://parse-everything.com)
5
5
  [![Python Versions](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://pypi.org/project/parse-everything/)
6
6
 
@@ -8,6 +8,8 @@ Official lightweight Python client for [Parse Everything](https://parse-everythi
8
8
 
9
9
  Effortlessly bypass **Cloudflare Turnstile**, **Cloudflare WAF (403 Forbidden)**, **Akamai Bot Manager**, **DataDome**, and **DDoS-Guard** with authentic TLS JA3/JA4 fingerprint impersonation.
10
10
 
11
+ > 🛡️ **Zero Risk Policy:** Failed, blocked, or unreachable requests cost **0 credits**. You only pay for successful extractions (HTTP 200–399).
12
+
11
13
  ---
12
14
 
13
15
  ## 🚀 Quick Install
@@ -70,7 +72,20 @@ result = client.scrape(
70
72
  print(result["data"]["clean_text"])
71
73
  ```
72
74
 
73
- ### 4. Asynchronous Batch Scraping (Up to 100 URLs)
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)
74
89
  ```python
75
90
  batch_job = client.batch(
76
91
  target_urls=[
@@ -85,14 +100,3 @@ print("Batch ID:", batch_job["batch_id"])
85
100
  status = client.get_batch(batch_job["batch_id"])
86
101
  print(f"Status: {status['job_status']} ({status['completed_urls']}/{status['total_urls']})")
87
102
  ```
88
-
89
- ---
90
-
91
- ## 📦 How to Publish to PyPI
92
-
93
- ```bash
94
- cd AD/04_sdks_and_packages/python_pypi
95
- pip install build twine
96
- python -m build
97
- python -m twine upload dist/*
98
- ```
@@ -5,5 +5,5 @@ Official SDK for parse-everything.com Anti-Bot Bypass & Web Extraction API.
5
5
 
6
6
  from .client import ParseEverything, ParseEverythingError
7
7
 
8
- __version__ = "1.0.1"
8
+ __version__ = "1.0.2"
9
9
  __all__ = ["ParseEverything", "ParseEverythingError"]
@@ -37,25 +37,44 @@ class ParseEverything:
37
37
  selectors: Optional[Dict[str, str]] = None,
38
38
  custom_headers: Optional[Dict[str, str]] = None,
39
39
  cookies: Optional[Dict[str, str]] = None,
40
- timeout: int = 40
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
41
47
  ) -> Dict[str, Any]:
42
48
  """
43
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.
44
52
  """
53
+ target_method = (method or "GET").strip().upper()
54
+ target_body = body if body is not None else post_data
55
+
45
56
  payload = {
46
57
  "target_url": target_url,
58
+ "method": target_method,
47
59
  "render_js": render_js,
48
60
  "bypass_cloudflare": bypass_cloudflare,
61
+ "auto_detect": auto_detect,
49
62
  "country_code": country_code,
50
63
  "extract_text": extract_text,
51
64
  "timeout": timeout
52
65
  }
66
+ if target_body is not None:
67
+ payload["body"] = target_body
53
68
  if selectors:
54
69
  payload["selectors"] = selectors
70
+ if wait_for_selector:
71
+ payload["wait_for_selector"] = wait_for_selector
55
72
  if custom_headers:
56
73
  payload["custom_headers"] = custom_headers
57
74
  if cookies:
58
75
  payload["cookies"] = cookies
76
+ if session_id:
77
+ payload["session_id"] = session_id
59
78
 
60
79
  url = f"{self.base_url}/api/v1/extract"
61
80
  req = urllib.request.Request(
@@ -64,7 +83,7 @@ class ParseEverything:
64
83
  headers={
65
84
  "Content-Type": "application/json",
66
85
  "Authorization": f"Bearer {self.api_key}",
67
- "User-Agent": "ParseEverything-PythonSDK/1.0"
86
+ "User-Agent": "ParseEverything-PythonSDK/1.1.0"
68
87
  },
69
88
  method="POST"
70
89
  )
@@ -73,16 +92,30 @@ class ParseEverything:
73
92
  with urllib.request.urlopen(req, timeout=timeout + 5) as resp:
74
93
  return json.loads(resp.read().decode("utf-8"))
75
94
  except urllib.error.HTTPError as e:
76
- body = e.read().decode("utf-8", errors="replace")
95
+ body_resp = e.read().decode("utf-8", errors="replace")
77
96
  try:
78
- err_json = json.loads(body)
79
- msg = err_json.get("detail") or err_json.get("message") or str(e)
97
+ err_json = json.loads(body_resp)
98
+ msg = err_json.get("message") or err_json.get("detail") or str(e)
80
99
  except Exception:
81
- msg = body or str(e)
82
- raise ParseEverythingError(f"API Error ({e.code}): {msg}", status_code=e.code, response_body=body)
100
+ msg = body_resp or str(e)
101
+ raise ParseEverythingError(f"API Error ({e.code}): {msg}", status_code=e.code, response_body=body_resp)
83
102
  except Exception as e:
84
103
  raise ParseEverythingError(f"Request failed: {str(e)}")
85
104
 
105
+ def get(self, url: str, **kwargs) -> Dict[str, Any]:
106
+ """Convenience helper for GET extraction."""
107
+ return self.scrape(target_url=url, method="GET", **kwargs)
108
+
109
+ def post(self, url: str, data: Optional[Any] = None, json_body: Optional[Any] = None, **kwargs) -> Dict[str, Any]:
110
+ """Convenience helper for POST extraction with body forwarding."""
111
+ body = json_body if json_body is not None else data
112
+ return self.scrape(target_url=url, method="POST", body=body, **kwargs)
113
+
114
+ def put(self, url: str, data: Optional[Any] = None, json_body: Optional[Any] = None, **kwargs) -> Dict[str, Any]:
115
+ """Convenience helper for PUT extraction with body forwarding."""
116
+ body = json_body if json_body is not None else data
117
+ return self.scrape(target_url=url, method="PUT", body=body, **kwargs)
118
+
86
119
  def batch(
87
120
  self,
88
121
  target_urls: List[str],
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: parse-everything
3
- Version: 1.0.1
4
- Summary: Official Python SDK for Parse Everything — Bypass Cloudflare Turnstile, Akamai & DataDome with TLS JA3/JA4 impersonation.
3
+ Version: 1.1.0
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
@@ -36,7 +36,7 @@ Dynamic: summary
36
36
 
37
37
  # Parse Everything — Python SDK
38
38
 
39
- [![PyPI version](https://img.shields.io/badge/pypi-v1.0.1-blue.svg)](https://pypi.org/project/parse-everything/)
39
+ [![PyPI version](https://img.shields.io/badge/pypi-v1.1.0-blue.svg)](https://pypi.org/project/parse-everything/)
40
40
  [![Free Credits](https://img.shields.io/badge/Free%20Tier-1%2C000%20Requests-green.svg)](https://parse-everything.com)
41
41
  [![Python Versions](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://pypi.org/project/parse-everything/)
42
42
 
@@ -44,6 +44,8 @@ Official lightweight Python client for [Parse Everything](https://parse-everythi
44
44
 
45
45
  Effortlessly bypass **Cloudflare Turnstile**, **Cloudflare WAF (403 Forbidden)**, **Akamai Bot Manager**, **DataDome**, and **DDoS-Guard** with authentic TLS JA3/JA4 fingerprint impersonation.
46
46
 
47
+ > 🛡️ **Zero Risk Policy:** Failed, blocked, or unreachable requests cost **0 credits**. You only pay for successful extractions (HTTP 200–399).
48
+
47
49
  ---
48
50
 
49
51
  ## 🚀 Quick Install
@@ -106,7 +108,20 @@ result = client.scrape(
106
108
  print(result["data"]["clean_text"])
107
109
  ```
108
110
 
109
- ### 4. Asynchronous Batch Scraping (Up to 100 URLs)
111
+ ### 4. POST / PUT Request Forwarding (Scrape Internal APIs & Forms)
112
+ ```python
113
+ # Easily scrape protected POST APIs or submit search forms:
114
+ result = client.post(
115
+ url="https://target-store.com/api/v1/search",
116
+ json_body={"category": "electronics", "in_stock": True},
117
+ country_code="US"
118
+ )
119
+
120
+ print("HTTP Status:", result["data"]["http_status"])
121
+ print("Payload:", result["data"]["full_html"])
122
+ ```
123
+
124
+ ### 5. Asynchronous Batch Scraping (Up to 100 URLs)
110
125
  ```python
111
126
  batch_job = client.batch(
112
127
  target_urls=[
@@ -121,14 +136,3 @@ print("Batch ID:", batch_job["batch_id"])
121
136
  status = client.get_batch(batch_job["batch_id"])
122
137
  print(f"Status: {status['job_status']} ({status['completed_urls']}/{status['total_urls']})")
123
138
  ```
124
-
125
- ---
126
-
127
- ## 📦 How to Publish to PyPI
128
-
129
- ```bash
130
- cd AD/04_sdks_and_packages/python_pypi
131
- pip install build twine
132
- python -m build
133
- python -m twine upload dist/*
134
- ```
@@ -9,10 +9,10 @@ if os.path.exists(readme_path):
9
9
 
10
10
  setup(
11
11
  name="parse-everything",
12
- version="1.0.1",
12
+ version="1.1.0",
13
13
  author="Parse Everything",
14
14
  author_email="support@rawmind.app",
15
- description="Official Python SDK for Parse Everything — Bypass Cloudflare Turnstile, Akamai & DataDome with TLS JA3/JA4 impersonation.",
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.",
16
16
  long_description=long_description,
17
17
  long_description_content_type="text/markdown",
18
18
  url="https://parse-everything.com",