Initial commit
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
38
INSTALL.md
Normal file
38
INSTALL.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# 安装与使用说明
|
||||
|
||||
## 核心修复
|
||||
|
||||
问题:macOS 系统 Python 不允许直接安装第三方包。
|
||||
|
||||
解决:创建虚拟环境。
|
||||
|
||||
```bash
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## 使用方法
|
||||
|
||||
```bash
|
||||
# 激活虚拟环境
|
||||
source venv/bin/activate
|
||||
|
||||
# 运行脚本
|
||||
python main.py --proxy http://127.0.0.1:7890 --once
|
||||
```
|
||||
|
||||
或直接用:
|
||||
|
||||
```bash
|
||||
./venv/bin/python main.py --proxy http://127.0.0.1:7890 --once
|
||||
```
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 说明 |
|
||||
|------|------|
|
||||
| `--proxy` | 代理地址 |
|
||||
| `--once` | 只运行一次 |
|
||||
| `--sleep-min` | 循环最短等待(秒) |
|
||||
| `--sleep-max` | 循环最长等待(秒) |
|
||||
Reference in New Issue
Block a user