Skip to main content

wulu-geetest-bypass

Python License Geetest v4 13 risk types

纯 Python 实现的极验行为验证 v4 自动化通过库(无需 Node.js)。自动处理 ai / slide / match / winlinze / svg_seed 五种风险类型,支持自定义重试、代理和 HTTP 客户端。

安装

推荐使用 uv(更快、更现代的 Python 包管理器):

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

也可用 pip

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

可选依赖:

# slide 滑块(需要 opencv)
uv add "wulu-geetest-bypass[slide]"

# svg-seed 图片选择 + slide
uv add "wulu-geetest-bypass[svg-seed]"

# 全部安装
uv add "wulu-geetest-bypass[all]"

快速开始

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())

每次验证会自动重试最多 3 次(可通过 retry 参数调整),失败时抛出 VerifyError

风险类型

类型 说明 依赖 支持
ai 无感验证
slide 滑块拼图 [slide]
match 3×3 连线 & 9宫格
winlinze 五子棋
svg_seed SVG 图片选择 [svg-seed]
icon 图标点选
word 文字点选
nine 九宫格
phrase 短语识别
space 空间推理
pencil 涂鸦
voice 语音验证
svg_icon SVG 图标

API

Geetest(**options)

参数 类型 说明
captcha_id str 验证 ID(必填)
risk_type RiskType 风险类型,默认 'ai'
client_type ClientType 客户端类型,'web' / 'web_mobile' / 'android' / 'ios'
lang Lang 语言,'zh' / 'en' / 'zho' / 'eng'
challenge str 自定义 challenge(不传则自动生成)
user_info Any 附加用户信息(预留)
client_options wreq.ClientConfig HTTP 客户端配置(代理、headers、模拟等)
client wreq.Client | None 自定义 HTTP 客户端(优先级高于 client_options

方法

load() -> dict

获取验证初始化数据,返回值包含 captcha_typelot_numberpayloadprocess_tokenpow_detail 等字段,可直接传入 verify()

verify(data) -> VerifyResponse

提交验证并返回完整响应:

class VerifyResponse:
    status: str                          # "success" / "fail" / "error"
    data: VerifyData                     # 验证结果数据

class VerifyData:
    lot_number: str
    result: str                          # "success" / "fail"
    fail_count: int
    seccode: Seccode
    score: str
    payload: str
    process_token: str
    payload_protocol: int

resolve(retry=3) -> Seccode

一键完成 load() + verify(),验证失败时自动重试,返回 Seccode

class Seccode:
    captcha_id: str
    lot_number: str
    pass_token: str
    gen_time: str
    captcha_output: str
参数 类型 说明
retry int 失败重试次数,默认 3

异常

异常 说明
GeetestError 所有自定义异常的基类
VerifyError 验证失败(所有重试均未通过)

免责声明

本项目仅供学习和研究使用。使用者应遵守相关法律法规及平台服务条款, 禁止用于任何非法用途。作者不对因使用本项目产生的任何法律问题承担责任。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wulu_geetest_bypass-0.1.4.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wulu_geetest_bypass-0.1.4-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file wulu_geetest_bypass-0.1.4.tar.gz.

File metadata

  • Download URL: wulu_geetest_bypass-0.1.4.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wulu_geetest_bypass-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2aa8823845a9245cc5871ed7a44af2326c5ef317d6e994ad04b79e1c8f916822
MD5 d4a3df64d19f6452ba881c2128503160
BLAKE2b-256 5f3c30cfda694155739e5b976fc786dbb69066dcbe826941f71cb0be9b5bbefa

See more details on using hashes here.

File details

Details for the file wulu_geetest_bypass-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: wulu_geetest_bypass-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for wulu_geetest_bypass-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 559d6ac2afec941fa28a1ade8a001c3dba4c25980cc71f25c2732cc97ceb231c
MD5 dae167184df848e0a5c26a0e5daf3cc0
BLAKE2b-256 27f4c2c0c91192f22e37070b288a894fde540e730f94ba75a298615ac5c32719

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.1

2 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