Skip to main content

Non-interactive challenge Interactive challenge

cloudflare-skip

Skip Cloudflare challenges: solve once in a real browser, then reuse the clearance with fast HTTP requests.

PyPI Python License

Quick start

pip install cloudflare-skip
cloudflare-skip https://cl-skip.tn3w.dev
from cloudflare_skip import get

response = get("ttps://cl-skip.tn3w.dev")
print(response.status_code, response.text)

get returns a curl_cffi response. Needs Chrome or Chromium and a display (headful; headless gets flagged).

How it works

  1. Request with curl_cffi (Chrome TLS fingerprint) and the cached clearance.
  2. cf-mitigated: challenge → a real browser (nodriver) opens the page.
  3. Interactive Turnstile: after 2.8s Tab focuses the checkbox, Space ticks it.
  4. Once cf_clearance exists and the challenge page is gone, cookies + user agent are cached per host in ~/.cache/cloudflare_skip.json and replayed over HTTP.
Run Time
First, browser solve (non-interactive) ~2.9s
First, browser solve (interactive) ~5.7s
Cached, in-process ~0.02-0.1s

Notes

  • Turnstile rejected every CDP mouse click tried (bezier, wind and jitter paths, pressure 0.5, moves during the spinner, click before or after load). Keyboard passes.
  • An earlier cf_clearance is issued before the final redirect and gets rejected, so the solve only finishes when the challenge page itself is gone.

Development

uv run pytest
uv run scripts/record.py <name> [light|dark]   # re-record the header GIFs

site/ is the test page behind https://cl-skip.tn3w.dev (GitHub Pages, deployed by pages.yml), put behind a Cloudflare challenge rule.

scripts/record.py records Chrome via tab capture (getDisplayMedia) → ffmpeg frames → gifski. Needs ffmpeg and gifski.

Metadata

Release files for cloudflare-skip 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloudflare-skip 0.1.0
File Size Uploaded
cloudflare_skip-0.1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cloudflare-skip 0.1.0
File Interpreter ABI Platform
cloudflare_skip-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / cloudflare_skip-0.1.0.tar.gz

Download URL cloudflare_skip-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d5663f15f327261a6cfdb49fe3b61570d3ba326788e0167dde446f151bb20b73
BLAKE2b-256 checksum
How to use checksums
2ea592a00279634a6940da6c98694eba90ef3d86b767942e66b609140637fd16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / cloudflare_skip-0.1.0-py3-none-any.whl

Download URL cloudflare_skip-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dffdbdc95a1391744770a74fb897bbc87119febb9c8ee2dec91da3d14ed0066
BLAKE2b-256 checksum
How to use checksums
9d91e26e3c5727ac3ac3c25cba5c14873714e7a4181f3c23e4d49045e43732bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page