RepositoryPython
wulu007

wulu007/geetest-bypass

Geetest v4 CAPTCHA solver — slide、match、voice、svg、icon、phrase、word. No browser or automation required. 极验 v4 验证码求解库,支持滑块/找图/语音/svg/图标/语序/文字。无需浏览器或自动化环境。

52stars
19forks
2issues
1views

wulu-geetest-bypass banner

GitHub Actions Workflow Status Python License Geetest v4 downloads

English | 简体中文

A lightweight, pure Python library to automatically solve Geetest Behavioral CAPTCHA v4 without Node.js or headless browsers. Features dynamic mouse trajectory simulation, 10 built-in risk type solvers, accessible voice bypass, and an extensible custom solver registry.

✨ Features

  • 🚀 Pure Python 3.11+ — Zero Node.js, headless browsers, or external runtime dependencies required.
  • 🛡️ Multi-Risk Type Support — Out-of-the-box solvers for 10 risk types (see full table).
  • 🎯 Human-like Track Simulation — Dynamically generated mouse trajectories for every run (no fixed replays).
  • 🔁 Smart Auto-Retry — One-call resolve() automatically retries up to 3 times on transient failures.
  • 🕹️ Granular Step-by-Step Flow — Separate load() and verify() steps for intercepting payloads and tokens.
  • ♿ Accessible Voice Bypass — Seamlessly switch to offline speech recognition when the voice channel is enabled.
  • 🔌 Extensible Solver Registry — Easily plug in custom OCR / Vision models, or override built-in solvers.
  • 🌐 Advanced Networking — Native support for proxy chains, browser TLS fingerprint emulation, and custom headers.

🧩 Supported Risk Types

TypeDescriptionDependencySupport
aiSilent verificationnone✅
slideSlider puzzle[slide]✅
match3×3 connectnone✅
winlinzeGomokunone✅
svg_seedSVG 3x3 image selection[svg]✅
svg_iconSVG 2x2 icon selection[svg]✅
voiceVoice verification[voice]✅
iconDirection icon click[icon]✅
Similarity icon clicknone❌
wordWord click[word]✅
nineNine-grid[nine]🧪
phrasePhrase click order[phrase]✅
pencilDoodlenone❌
spaceSpatial reasoningnone❌

The Dependency column refers to the dependency groups below.

  • ✅ — Built-in solver, ready to use.
  • 🧪 — Experimental solver; not fully validated.
  • ❌ — No built-in solver; register your own via custom solvers.

📊 Measured pass rate and latency per type: BENCHMARK.

📦 Installation

uv is recommended (faster, more modern Python package manager):

uv add "wulu-geetest-bypass[all]"

You can also use pip:

pip install "wulu-geetest-bypass[all]"

Dependency groups (install only what you need):

# voice verification
uv add "wulu-geetest-bypass[voice]"

# slide puzzle (requires opencv)
uv add "wulu-geetest-bypass[slide]"

# SVG icon & seed selection
uv add "wulu-geetest-bypass[svg]"

# icon click (direction-type questions)
uv add "wulu-geetest-bypass[icon]"
gt-pull download icon  # prefetch the model

# phrase captcha (click the four characters in phrase order)
uv add "wulu-geetest-bypass[phrase]"
gt-pull download phrase  # prefetch the models

# Install everything
uv add "wulu-geetest-bypass[all]"

Command line

New in 0.5.0. The gt-pull command and the wulu_geetest_bypass.fetcher entry point group do not exist in 0.4.x and earlier. Upgrade with uv add -U wulu-geetest-bypass.

The package installs a gt-pull command. Extensions that ship a large model register a downloader through the wulu_geetest_bypass.fetcher entry point group, and the CLI discovers them — one command covers all of them:

gt-pull status                   # installed plugins and their cached assets
gt-pull download <name>          # one plugin's assets; cached files are skipped
gt-pull download --all           # every registered plugin
gt-pull download --all --force   # re-download from scratch

Models are fetched on first use anyway; the command is for prefetching, e.g. when baking them into an image. Extension models live on HuggingFace — set HF_ENDPOINT (e.g. https://hf-mirror.com) before running the command to route through a mirror.

For extension authors: register a pooch.Pooch — or a zero-argument factory that returns one — under the same entry point group; the entry point name becomes the CLI argument. The discovery logic is wulu_geetest_bypass.cli.discover_fetchers.

🚀 Quick Start

import asyncio
from wulu_geetest_bypass import Geetest


async def main():
    g = Geetest(captcha_id='your_captcha_id', risk_type='slide')
    result = await g.resolve()
    print(result)
    # {
    #     "captcha_id": "xxx",
    #     "lot_number": "xxx",
    #     "pass_token": "xxx",
    #     "gen_time": "xxx",
    #     "captcha_output": "xxx"
    # }


asyncio.run(main())

That is all you need for the common case. See Advanced Usage for retry control, the step-by-step flow, voice mode, custom solvers, and HTTP configuration.

💡 Advanced Usage

Automatic retry and one-call resolve()

resolve() is load() + verify() in one call, with automatic retry on failure:

g = Geetest(captcha_id='your_captcha_id', risk_type='slide')
result = await g.resolve()  # default: up to 3 attempts
result = await g.resolve(retry=5)  # override the attempt count

On the final failure it raises VerifyError instead of returning a partial result.

Step-by-step flow: load() → verify()

When you need to intervene between the two stages (log, inspect the payload, run your own recognition), call them separately:

g = Geetest(captcha_id='your_captcha_id', risk_type='slide')
data = (
    await g.load()
)  # init data: captcha_type, lot_number, payload, process_token, pow_detail, ...
response = await g.verify(data)  # full response: status + data

load() returns a dict whose fields can be passed directly into verify(). The return types are listed under Data Models.

Accessible (voice) mode

Some Geetest v4 sites enable the voice channel (accessible mode) server-side. When a site supports it, regardless of the original risk type, you can force voice verification via voice=True, bypassing the original slider / click behavioral checks:

# Originally a slide verification, but the site supports accessible mode
g = Geetest(captcha_id='your_captcha_id', risk_type='slide', voice=True)
result = await g.resolve()

The flow becomes: load voice captcha → download audio → recognize digits offline → submit verification. No browser environment or image recognition needed.

Note: Not all sites enable the accessible channel. If unsupported, the show_voice field in load() returns false, and setting voice=True has no effect — the original risk_type is still used.

Register custom solvers

For risk types without built-in support, inject a custom solver via register_solver:

from wulu_geetest_bypass import Geetest


def solve_icon(imgs: bytes, ques: list[bytes]) -> list[tuple[float, float]]: ...


Geetest.register_solver('icon', solve_icon)

Once registered, generate_w() calls it automatically with the corresponding payload fields. Click/draw solvers return normalized coordinates in [0, 1] relative to the verification image — the library takes care of scaling them to the window/payload formats (e.g. userresponse uses image-based percent × 10000) and of generating the click tracks (including the final submit-button click for icon/word/phrase):

TypeSolver signature
icon / word(imgs: bytes, ques: list[bytes]) -> list[tuple[float, float]]
phrase(imgs: bytes) -> list[tuple[float, float]]
nine(imgs: bytes, ques: list[bytes], nine_nums: int) -> list[tuple[int, int]]
pencil(imgs: bytes) -> list
spaceNot built-in separately; Geetest routes space to svg_icon (solved by the SVG solver)

Built-in solvers can also be overridden, either by passing the solver directly or as a decorator:

Geetest.register_solver('slide', my_custom_slide_solver)
@Geetest.register_solver('slide')
def my_custom_slide_solver(bg, slice, ypos): ...

Proxy and HTTP client configuration

Geetest forwards all HTTP concerns to wreq, so proxies, custom headers, and client emulation are configured once at construction time. Pass a ClientConfig via client_options, or an already-constructed client via client (which takes priority):

from wreq import Client, ClientConfig

config = ClientConfig(...)  # proxy chains, headers, emulation, timeouts, ...

g = Geetest(captcha_id='your_captcha_id', risk_type='slide', client_options=config)
# equivalent, when you need to build the client yourself first:
g = Geetest(captcha_id='your_captcha_id', risk_type='slide', client=Client(config))

📖 API Reference

Configuration — Geetest(**options)

ParameterTypeDescription
captcha_idstrVerification ID (required)
risk_typeRiskTypeRisk type, default 'ai'
client_typeClientTypeClient type, 'web' / 'web_mobile' / 'android' / 'ios'
langLangLanguage, 'zho' / 'eng' / 'fra' / 'deu' and 13 more
challengestrCustom challenge (auto-generated if omitted)
user_infoAnyExtra user info (reserved)
voiceboolEnable accessible voice verification (requires [voice])
client_optionswreq.ClientConfigHTTP client config (proxy, headers, emulation, etc.)
clientwreq.Client | NoneCustom HTTP client (takes priority over client_options)

Data models

load() -> dict returns init data containing captcha_type, lot_number, payload, process_token, pow_detail and other fields, passable directly into verify().

verify(data) -> VerifyResponse:

class VerifyResponse:
    status: str  # "success" / "error"
    data: VerifyData  # VerifyDataSuccess | VerifyDataFail, discriminated by `result`


class VerifyDataSuccess:  # result == "success"
    lot_number: str
    result: str
    fail_count: int
    seccode: Seccode  # success only
    score: str
    payload: str
    process_token: str
    payload_protocol: int


class VerifyDataFail:  # result == "fail" / "forbidden" / "continue" — no seccode
    lot_number: str
    result: str
    fail_count: int
    score: str
    payload: str
    process_token: str
    payload_protocol: int

resolve(retry=3) -> Seccode:

class Seccode:
    captcha_id: str
    lot_number: str
    pass_token: str
    gen_time: str
    captcha_output: str
ParameterTypeDescription
retryintRetries on fail, default 3; forbidden raises at once

Exceptions

ExceptionDescription
GeetestErrorBase class of all custom exceptions
VerifyError/verify did not return success; carries .result / .fail_count

VerifyError.result is the raw server value: fail (scored and rejected — wrong answer, bad headers or low risk score; retryable), forbidden (rejected before scoring — an IP-level rate limit, not an answer problem; back off or change the exit IP) or continue (another round of the same challenge is wanted, match only).

⚖️ Disclaimer

This project is for learning and research purposes only. Users should comply with applicable laws and platform terms of service; any illegal use is prohibited. The author assumes no responsibility for any legal issues arising from the use of this project.

🤝 Support & Updates

  • This project continuously tracks Geetest v4 behavioral verification changes and updates the bypass logic and solvers promptly.
  • Please open an Issue if you encounter problems, and PRs are welcome.
  • If this project helps you, feel free to give it a ⭐ Star to encourage continued development.

🙏 Credits

The icon solver uses a third-party YOLO model rather than one trained here. Both the ONNX file and the direction mapping table in _config.py come from gaogzhen/GeekedTest under the MIT License — see THIRD_PARTY_NOTICES.md for the full text.

The phrase solver's ordering model is fine-tuned from uer/chinese_roberta_L-2_H-128, one of the Chinese RoBERTa Miniatures pre-trained by UER-py on CLUECorpusSmall. The upstream model card declares no license — see THIRD_PARTY_NOTICES.md.

Thanks also to xKiian/GeekedTest, which gaogzhen/GeekedTest builds on.

📄 License

Released under the MIT License — see LICENSE.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
xKiian/GeekedTest

Geetest v4 slide, icon, gobang & ai solver - 100% python implementation - no browser needed

703
Nov 24, 2026
RepositoryPython
najibyahya/Boterdrop-Solver

Powerful CAPTCHA Solver (Turnstile, cf_clearance, reCAPTCHA v3, AWS WAF) built with FastAPI + Camoufox. High success rate, proxy support, and VPS friendly

229
Jul 17, 2026
RepositoryPython
ismoiloffS/EzSolver

Cloudflare Turnstile solver & bypass — Python, real Chrome browser, no paid APIs. Local HTTP API service included. Auto-solves invisible and managed (checkbox) widgets. Works on Windows & Linux. Fast, lightweight, zero third-party captcha services.

164
Oct 29, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
Vinyzu/recognizer

🦉Gracefully face reCAPTCHA challenge with ultralytics YOLOv8-seg, CLIPs VIT-B/16 and CLIP-Seg/RD64. Implemented in playwright or an easy-to-use API.

268
Mar 29, 2026
RepositoryPython
xtekky/TikTok-Captcha-Solver

TikTok Captcha Solver, full requests, slide captcha, 3d captcha

161
Dec 11, 2023
RepositoryPython
vsmutok/PuzzleCaptchaSolver

PuzzleCaptchaSolver is a Python project that solves puzzle CAPTCHAs like Geetest, Binance, DataDome, ARCcaptcha and TikTok. It uses OpenCV to process images and identify the position of the puzzle piece in the background image.

111
Nov 5, 2026