44 lines
891 B
Markdown
44 lines
891 B
Markdown
# 🚀 快速运行指南
|
||
|
||
## 第一步:设置环境变量
|
||
|
||
在PowerShell中设置(临时):
|
||
|
||
```powershell
|
||
# 必需 - AdsPower配置
|
||
$env:ADSPOWER_USER_ID="your-profile-id"
|
||
|
||
# 必需 - Windsurf账号
|
||
$env:WINDSURF_EMAIL="your-email@example.com"
|
||
$env:WINDSURF_PASSWORD="your-password"
|
||
$env:WINDSURF_FIRSTNAME="John"
|
||
$env:WINDSURF_LASTNAME="Doe"
|
||
```
|
||
|
||
或者创建 `.env` 文件(复制 `.env.example`):
|
||
|
||
```bash
|
||
cp .env.example .env
|
||
# 然后编辑 .env 文件填写真实信息
|
||
```
|
||
|
||
## 第二步:运行
|
||
|
||
```bash
|
||
cd browser-automation-ts
|
||
pnpm run run -- windsurf
|
||
```
|
||
|
||
## 🎯 就是这么简单!
|
||
|
||
运行后你会看到:
|
||
- 🚀 Browser Automation Executor
|
||
- ✅ 每个步骤的执行状态
|
||
- 📊 最终执行摘要
|
||
|
||
## 📝 添加新网站
|
||
|
||
1. 在 `configs/sites/` 创建新YAML
|
||
2. 设置对应的环境变量(网站名_字段名)
|
||
3. 运行:`pnpm run run -- 网站名`
|