raptorwayz (Python)
Solve Cloudflare challenges from Python. Get a valid cf_clearance cookie, the matching User-Agent,
and a proxy on the same exit IP, then make your own request with requests, httpx, or anything else.
Official Python client for RaptorWayz. Get an API key (5 free solves) there.
pip install raptorwayz
Usage
import requests
from raptorwayz import RaptorWayz
rw = RaptorWayz("bk_your_api_key")
c = rw.solve("example.com")
resp = requests.get(
"https://example.com/",
headers=c.headers, # {"User-Agent": "..."}
cookies=c.cookies, # {"cf_clearance": "..."}
proxies=c.proxies, # {"http": "...", "https": "..."}
)
print(resp.status_code) # 200
All three (cookie, User-Agent, and proxy) must be used together, or Cloudflare re-challenges.
With httpx
import httpx
from raptorwayz import RaptorWayz
c = RaptorWayz("bk_your_api_key").solve("example.com")
with httpx.Client(proxy=c.proxy, headers=c.headers, cookies=c.cookies) as client:
print(client.get("https://example.com/").status_code)
Errors
from raptorwayz import RaptorWayz, RaptorWayzError, NoChallenge
try:
c = RaptorWayz("bk_...").solve("example.com")
except NoChallenge as nc:
... # domain has no challenge, just use nc.proxy with a normal UA
except RaptorWayzError as e:
print(e.code, e.status, e.seconds_until_next) # e.g. "window_active", 429, 900
- Zero dependencies (stdlib only).
- Docs: https://raptorwayz.com/docs · OpenAPI: https://raptorwayz.com/openapi.json
MIT licensed. The client is open source; the hosted solving service is proprietary.
Metadata
Release files for raptorwayz 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| raptorwayz-1.0.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| raptorwayz-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / raptorwayz-1.0.0.tar.gz
| Download URL | raptorwayz-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84569d18019b4c42ddcad735f466a8d83e9183e89992f523eb7a26a9c666e89c
|
|
BLAKE2b-256 checksum How to use checksums |
51df43681c38f7a603c9c64974a678a4316f9d5b6dca9b8f6f21a9a59a811834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / raptorwayz-1.0.0-py3-none-any.whl
| Download URL | raptorwayz-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cefbbb2eeec00e81aacff942054f275992b55e023458b310ac7f315497038969
|
|
BLAKE2b-256 checksum How to use checksums |
f0f5b9ec101661c5247e5722531ed790dc4c54652f85d94c59112c6b09cf8adb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|