📋 环境要求
- Python 3.12+ - 必须,旧版本不兼容
- FFmpeg - 视频生成必需
- Git - 克隆仓库
- API 密钥 - Twitter、YouTube、Amazon 等
🚀 安装步骤
1. 克隆仓库
git clone https://github.com/FujiwaraChoki/MoneyPrinterV2.git
cd MoneyPrinterV22. 安装 Python 依赖
pip install -r requirements.txt3. 安装 FFmpeg
macOS:
brew install ffmpegUbuntu/Debian:
sudo apt install ffmpegWindows:
从 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如果显示帮助信息,说明安装成功!