huangzhenpc cc2a3a34e3 x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
x
2025-03-27 10:20:06 +08:00
2025-03-27 10:18:30 +08:00
x
2025-03-27 10:20:06 +08:00

Cursor 自动注册工具

这是一个用于自动化注册 Cursor 账号的工具,使用 Python 异步编程实现高并发注册功能。

主要特性

  • 支持批量自动注册 Cursor 账号
  • 使用异步编程实现高并发处理
  • 支持多种验证码服务商 (Capsolver, YesCaptcha)
  • 内置代理池支持
  • 自动邮箱验证码处理
  • 数据库持久化存储
  • 完善的日志系统

系统要求

  • Python 3.8+
  • SQLite3
  • 网络代理服务

安装

  1. 克隆仓库:
git clone https://github.com/Sanyela/Auto_Cursor
cd cursor-register
  1. 安装依赖:
pip install -r requirements.txt

配置

在项目根目录创建 config.yaml 文件:

global:
  max_concurrency: 5
  timeout: 30
  retry_times: 3

database:
  path: "data.db"
  pool_size: 10

proxy:
  api_url: "your_proxy_api_url"
  batch_size: 10

register:
  delay_range: [1, 3]
  batch_size: 5

email:
  # 邮箱相关配置

captcha:
  provider: "capsolver"  # 或 "yescaptcha"
  capsolver:
    api_key: "your_capsolver_key"
    website_url: "https://cursor.sh"
    website_key: "your_website_key"
  yescaptcha:
    client_key: "a5ef0062c1d2674900e78722c5670e3a3484bc8c64273"
    website_url: "https://cursor.sh"
    website_key: "a5ef0062c1d2674900e78722c5670e3a3484bc8c64273"
    use_cn_server: true

使用方法

  1. 导入邮箱账号:
python import_emails.py

邮箱文件格式 (email.txt)

email@domain.com----password----client_id----refresh_token
  1. 运行注册程序:
python main.py

项目结构

├── core/                   # 核心功能模块
│   ├── config.py          # 配置管理
│   ├── database.py        # 数据库操作
│   ├── exceptions.py      # 异常定义
│   └── logger.py          # 日志系统
├── services/              # 服务模块
│   ├── capsolver.py       # Capsolver 服务
│   ├── yescaptcha.py      # YesCaptcha 服务
│   ├── email_manager.py   # 邮箱管理
│   ├── proxy_pool.py      # 代理池管理
│   └── token_pool.py      # Token 池管理
├── register/              # 注册相关
│   └── register_worker.py # 注册工作器
├── main.py               # 主程序
├── import_emails.py      # 邮箱导入工具
└── config.yaml           # 配置文件

数据库结构

email_accounts 表结构:

  • id: 主键
  • email: 邮箱地址
  • password: 密码
  • client_id: 客户端ID
  • refresh_token: 刷新令牌
  • in_use: 使用状态
  • cursor_password: Cursor密码
  • cursor_cookie: Cursor Cookie
  • sold: 售出状态
  • status: 账号状态
  • created_at: 创建时间
  • updated_at: 更新时间

注意事项

  1. 确保配置文件中的API密钥和URL正确
  2. 使用可靠的代理服务
  3. 遵守目标网站的使用条款
  4. 定期检查和维护邮箱账号池

许可证

MIT License

免责声明

本工具仅供学习和研究使用,请勿用于非法用途。使用本工具所产生的任何后果由使用者自行承担。

Description
批量outlook 注册 cursor协议
Readme 283 KiB
Languages
Python 100%