From 6bcfedeb04e17a98aac408f053bb512fd741cecc Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Thu, 27 Mar 2025 10:18:30 +0800 Subject: [PATCH] first commit --- README.md | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ef90a86 --- /dev/null +++ b/README.md @@ -0,0 +1,143 @@ +# Cursor 自动注册工具 + +这是一个用于自动化注册 Cursor 账号的工具,使用 Python 异步编程实现高并发注册功能。 + +## 主要特性 + +- 支持批量自动注册 Cursor 账号 +- 使用异步编程实现高并发处理 +- 支持多种验证码服务商 (Capsolver, YesCaptcha) +- 内置代理池支持 +- 自动邮箱验证码处理 +- 数据库持久化存储 +- 完善的日志系统 + +## 系统要求 + +- Python 3.8+ +- SQLite3 +- 网络代理服务 + +## 安装 + +1. 克隆仓库: + +```bash +git clone https://github.com/Sanyela/Auto_Cursor +cd cursor-register +``` + +2. 安装依赖: + +```bash +pip install -r requirements.txt +``` + +## 配置 + +在项目根目录创建 `config.yaml` 文件: + +```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. 导入邮箱账号: + +```bash +python import_emails.py +``` + +邮箱文件格式 (email.txt): +``` +email@domain.com----password----client_id----refresh_token +``` + +2. 运行注册程序: + +```bash +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 + +## 免责声明 + +本工具仅供学习和研究使用,请勿用于非法用途。使用本工具所产生的任何后果由使用者自行承担。 \ No newline at end of file