📋 环境要求

  • Python 3.12+ - 必须,旧版本不兼容
  • FFmpeg - 视频生成必需
  • Git - 克隆仓库
  • API 密钥 - Twitter、YouTube、Amazon 等

🚀 安装步骤

1. 克隆仓库

git clone https://github.com/FujiwaraChoki/MoneyPrinterV2.git
cd MoneyPrinterV2

2. 安装 Python 依赖

pip install -r requirements.txt

3. 安装 FFmpeg

macOS:

brew install ffmpeg

Ubuntu/Debian:

sudo apt install ffmpeg

Windows:

ffmpeg.org 下载并添加到 PATH

4. 配置文件

cp config.example.json config.json

编辑 config.json 填入你的 API 密钥:

{
"twitter": {
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET",
"access_token": "YOUR_ACCESS_TOKEN",
"access_token_secret": "YOUR_ACCESS_TOKEN_SECRET"
},
"youtube": {
"api_key": "YOUR_YOUTUBE_API_KEY"
},
"amazon": {
"associate_tag": "YOUR_ASSOCIATE_TAG",
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY"
}
}

🔑 获取 API 密钥

Twitter API

访问 Twitter Developer Portal 申请

YouTube API

访问 Google Cloud Console 启用 YouTube Data API

Amazon Affiliate

访问 Amazon Associates 注册

✅ 验证安装

python main.py --help

如果显示帮助信息,说明安装成功!

← 上一页:核心功能下一页:Twitter Bot →