Skip to content

Releases: MageGojo/drission-rs

v0.3.1 — Windows 点选/过盾精准 + 无头 GPU 自适应 + 一键环境/预编译二进制

Choose a tag to compare

@MageGojo MageGojo released this 22 Jun 07:19

drission v0.3.1

Rust 反检测浏览器自动化 + 内置验证码识别(ddddocr OCR / 图片滑块缺口距离),默认驱动 Google Chrome(CDP),DrissionPage 风格 API。

本版聚焦 Windows 实机点选 / 过盾精准度无头反检测真实度,并新增一键环境配置脚本预编译二进制,让不熟悉 Rust 的用户也能直接体验。

✨ 新增 / 修复(0.3.1)

  • Windows 高 DPI 点击对齐:强制 device-scale=1,修复 125% / 150% 缩放下合成点击按物理像素偏移导致的 Cloudflare Turnstile / 易盾点选「点不中」。
  • 无头 GPU 自适应:有真实 GPU 走硬件 ANGLE、无 GPU(VM / RDP / Basic Display)退 D3D11 WARP,WebGL 真实可用(避开 SwiftShader 软渲染破绽);DRISSION_HEADLESS_GPU 可强制。
  • 反检测身份一致:伪装 Chrome UA 时必定补回一致的高熵 Client Hints / userAgentMetadata(消除空 fullVersionList、Edge 品牌矛盾)。
  • Cloudflare 内嵌 Turnstile 过盾:三级定位(含闭合 shadow DOM respbox)+ 以 token 产出判过,支持表单内嵌 Turnstile
  • CDP 隔离上下文 cookie 修复(get/set_cookiesbrowserContextId);发布产物体积优化(opt-level=z + LTO + strip)。
  • 新增 gpu_probe 示例、exa_cf 视觉无头模式与过盾截图证据。

完整记录见 CHANGELOG.md

🚀 三种使用方式

1) 作为库(已装 Rust) — 已发布到 crates.io:

cargo add drission

2) 没装 Rust?一键配置环境(国内镜像加速、双击即装、自动验证版本号)

下载下方资源:macOS 双击 install-mac.command;Windows 双击 install-windows.bat(同目录放好 install-windows.ps1)。脚本会用国内 rsproxy 镜像装好 Rust、配好 cargo 加速,全程用户级、无需管理员。详见 install/

3) 只想试跑?直接下预编译示例二进制(免编译、无需 Rust)

  • Windows x86_64:drission-v0.3.1-examples-windows-x86_64.zip
  • macOS arm64:drission-v0.3.1-examples-macos-arm64.zip

win_smoke / win_diag / win_cf_test(过 Cloudflare)/ win_bilibili_test / session_mode / yidun_click(易盾点选)。
运行前提:本机已装 Chrome / Edge(可用环境变量 CHROME_BIN 指定路径);yidun_click 首次运行会自动下载 OCR 模型到缓存。

🔗 链接


EN: v0.3.1 focuses on Windows real-machine click / bypass precision (high-DPI click alignment, headless GPU-adaptive rendering, consistent anti-detect identity, Cloudflare inline-Turnstile bypass) and a CDP isolated-context cookie fix, plus one-click environment-setup scripts and prebuilt example binaries for non-Rust users. Install as a library with cargo add drission, or grab the platform zip below to try without compiling (requires Chrome/Edge installed).

v0.1.1 — CDP 后端 / Session·WebPage 双模 / 采集导出 + 工程化基建

Choose a tag to compare

@MageGojo MageGojo released this 20 Jun 08:21

0.1.0 后累积的能力(均为向后兼容的新增)与工程化基建。

新增

  • CDP(Chromium)后端:ChromiumBrowser/Tab/Element + 网络监听 / 请求拦截(--features cdp)
  • Session(HTTP)双模 + WebPage 门面 + cookie 双向互通;采集导出 scrape;代理池健康检查
  • Cloudflare 过盾、下载管理、拦截/窗口句柄、顶象 ContentNcc、登录态持久化、相对定位 / Shadow DOM 等

工程化

  • CI(fmt / clippy / 多平台 test / feature 矩阵 / 跨平台 check / docs.rs)、离线集成测试、criterion 基准
  • docs.rs all-features(暴露 ocr/slider/cdp API)、CHANGELOG / CONTRIBUTING / SECURITY / rust-toolchain

详见 CHANGELOG