2026-06-21 23:38:52 +08:00
2026-06-21 22:48:14 +08:00
2026-06-21 23:02:09 +08:00
2026-06-21 23:38:52 +08:00
2026-06-21 22:48:14 +08:00
2026-06-21 23:38:52 +08:00
2026-06-21 21:56:56 +08:00
2026-06-21 21:56:56 +08:00
2026-06-21 22:48:14 +08:00
2026-06-21 23:25:08 +08:00
2026-06-21 22:48:14 +08:00
2026-06-21 22:48:14 +08:00
2026-06-21 23:25:08 +08:00
2026-06-21 21:56:56 +08:00
2026-06-21 21:56:56 +08:00
2026-06-21 21:56:56 +08:00
2026-06-21 22:48:14 +08:00
2026-06-21 21:56:56 +08:00
2026-06-21 21:56:56 +08:00

斗鱼自动登录工具 - Python版

全自动登录斗鱼账号,获取Cookie。

功能特性

  • 自动过极验v3滑块验证
  • 自动获取邮箱验证码(IMAP
  • 批量账号登录
  • Cookie持久化存储
  • 代理支持

项目结构

douyu_login_py/
├── main.py                 # 主入口
├── config.yaml             # 配置文件
├── requirements.txt        # 依赖
├── douyu/                  # 斗鱼登录模块
│   ├── config.py          # 配置管理
│   ├── crypto.py          # 加密工具
│   ├── email_verifier.py  # 邮箱验证
│   └── login.py           # 登录核心
├── geetest/                # 极验滑块破解(复用geetest-v3-silde-crack
│   ├── solver.py
│   ├── network.py
│   ├── crypto.py
│   ├── imaging.py
│   └── trajectory.py
├── utils/                  # 工具模块
│   ├── logger.py
│   └── helpers.py
└── data/
    ├── accounts.json       # 账号配置
    └── cookies/            # Cookie存储

安装依赖

pip install -r requirements.txt

配置

编辑 config.yaml

accounts:
  - username: "your_username"
    password: "your_password"
    email: "your_email@bdhg.xyz"
    email_password: "your_email_password"
    email_imap_server: "mail.bdhg.xyz"
    email_imap_port: 993

使用方法

单账号登录

# 登录第一个账号
python main.py

# 登录指定索引的账号
python main.py -i 0

批量登录

python main.py --batch

详细日志

python main.py -v

登录流程

1️⃣ 第一次登录 → 获取极验参数
2️⃣ 极验滑块验证 → 自动识别缺口位置
3️⃣ 第二次登录 → 获取邮箱验证code
4️⃣ 发送邮箱验证邮件
5️⃣ IMAP获取验证码
6️⃣ 提交验证码
7️⃣ 完成登录获取Cookie

Cookie使用

登录成功后,Cookie会保存到 data/cookies/ 目录。

可以使用以下方式读取Cookie

from utils.helpers import load_cookie

cookie = load_cookie("your_username")
print(cookie)

极验滑块破解

本项目复用了 geetest-v3-silde-crack 的滑块破解方案,包含:

  • RSA/AES加密
  • 轨迹生成
  • 图像识别(OpenCV
  • 性能数据伪造

注意事项

  1. 请确保邮箱支持IMAP协议
  2. 邮箱需要开启IMAP访问权限
  3. 部分邮箱需要使用应用专用密码
  4. 建议使用代理避免IP限制

许可证

MIT License

S
Description
No description provided
Readme
160 MiB
Languages
Python 74.2%
TypeScript 22.5%
JavaScript 1.9%
Shell 1.1%
Dockerfile 0.2%