auto-register-verdent/README.md
2025-11-13 14:31:44 +08:00

132 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Verdent.ai 自动注册程序
自动化注册 Verdent.ai 账号的 Node.js 程序,使用 Playwright 进行浏览器自动化。
## 功能特点
- ✅ 自动创建临时邮箱(使用 tempmail.plus
- ✅ 自动处理 Cloudflare Turnstile 验证
- ✅ 自动获取邮箱验证码
- ✅ 自动完成注册流程
- ✅ 模拟真实用户行为,避免被检测
## 项目结构
```
auto-register-verdent/
├── index.js # 主入口文件
├── emailModule.js # 邮箱处理模块
├── registerModule.js # 注册流程模块
├── config.js # 配置文件
├── package.json # 项目依赖
└── README.md # 说明文档
```
## 安装
1. 确保已安装 Node.js (v16 或更高版本)
2. 安装依赖:
```bash
npm install
```
3. 安装 Playwright 浏览器:
```bash
npx playwright install chromium
```
## 配置
编辑 `config.js` 文件以修改配置:
```javascript
export const config = {
// 临时邮箱配置
tempmail: {
url: 'https://tempmail.plus/',
username: 'qichen111', // 邮箱用户名
pinCode: '147258' // PIN 码保护
},
// Verdent 注册配置
verdent: {
signupUrl: 'https://www.verdent.ai/signup?source=verdent-deck',
password: 'Qichen5210523...' // 注册密码
},
// 浏览器配置
browser: {
headless: false, // false=显示浏览器窗口true=后台运行
slowMo: 100 // 操作延迟(毫秒)
}
};
```
## 使用方法
运行程序:
```bash
npm start
```
或者:
```bash
node index.js
```
## 工作流程
1. **设置临时邮箱**
- 访问 tempmail.plus
- 创建邮箱账号
- 设置 PIN 码保护
2. **开始注册**
- 访问 Verdent.ai 注册页面
- 填写邮箱地址
- 处理 Cloudflare Turnstile 验证
- 点击发送验证码
3. **获取验证码**
- 等待邮件到达
- 自动提取 6 位验证码
4. **完成注册**
- 填写验证码
- 填写密码
- 提交注册表单
## 注意事项
- ⚠️ 程序运行时会打开两个浏览器窗口(邮箱和注册)
- ⚠️ 如果遇到 Cloudflare 验证失败,程序会自动重试
- ⚠️ 注册成功后,浏览器会保持打开 30 秒以便查看结果
- ⚠️ 建议首次运行时将 `headless` 设置为 `false` 以观察流程
## 故障排除
### 问题:找不到元素
- 检查网站是否更新了页面结构
- 增加 `slowMo` 值以延长等待时间
### 问题Turnstile 验证失败
- Cloudflare 可能检测到自动化行为
- 尝试手动完成验证
### 问题:未收到验证码
- 检查邮箱是否正确创建
- 增加 `timeouts.emailWait`
## 技术栈
- Node.js
- Playwright (浏览器自动化)
- ES6 Modules
## 许可证
MIT