Bypasses Cloudflare Turnstile using OpenCV and browser automation.
2.4K
Bypasses Cloudflare Turnstile using OpenCV and browser automation.
Tenshi is a modular automation tool designed to bypass Cloudflare Turnstile anti-bot measures. It leverages computer vision (via OpenCV) and browser automation to navigate through Cloudflare Turnstile challenge seamlessly.
.env.example to .env and set your environment variables.docker compose -f docker-compose.yml up -d --force-recreate
Tenshi exposes a FastAPI server with several endpoints:
Trigger Automation
Endpoint: /trigger
Description: Loads the target URL in the browser, executes optional JavaScript, and initiates the Cloudflare bypass workflow.
Example (using curl):
curl "http://localhost:6081/trigger?url=https://example.com&js=&wait=&sleep=5000"
Save Image
Endpoint: /save_image
Description: Navigates to the chapter URL, processes the provided image URL, and invokes the browser save automation.
Example:
curl "http://localhost:6081/save_image?chapter_url=https://example.com/chapter1&image_url=https://cdn.example.com/image1.jpg"
Get Saved Image
Endpoint: /get_image
Description: Returns a list of saved image filenames for a specified chapter folder or a specific image if a filename is provided.
Example:
curl "http://localhost:6081/get_image?chapter=chapter_1"
Tenshi is built to work with a remote debugging–enabled Brave browser. In Docker, Brave is launched with remote debugging (internally on port 9223, forwarded to 6082). This enables you to connect your preferred browser automation tools (for example, Chromedp, Puppeteer, or Playwright) to control browser actions programmatically. The included toongod_scrape_demo.go demonstrates how to:
http://<your-ip>:6082)After bypassing the Cloudflare Turnstile challenge, Tenshi allows you to further automate your browser. By connecting to the remote debugging port, you can integrate with powerful automation libraries such as Chromedp, Puppeteer, Playwright, and others. This flexibility enables you to build customized scrapers or automation workflows that can interact with the browser directly once the initial bypass is complete.
Contributions, issues, and pull requests are welcome! Please refer to CONTRIBUTING.md for development and contribution guidelines.
Content type
Image
Digest
sha256:06ae8725f…
Size
975.1 MB
Last updated
over 1 year ago
docker pull norkz/tenshi:1.0.0