给一个知乎问题 URL,自动生成竖屏解说视频。
流程:抓回答 → 切句 → TTS → 配图 → 合成视频
git clone https://github.com/Jas000n/daily_topic.git
cd daily_topiczsh scripts/setup_with_conda.shzsh scripts/run_with_conda.sh --login --url "https://www.zhihu.com/question/48510028"完成登录/验证后关闭浏览器。
zsh scripts/run_with_conda.sh --force-crawl --url "https://www.zhihu.com/question/48510028"输出在:output/sample_*.mp4
run:
max_answers: 3
keep_intermediate: false
workers: 8
video:
fps: 30
speech_speed: 1.15
audio_bitrate: "96k"
audio_fps: 22050
audio_channels: 1
images:
provider: "google" # google | ddg | google_html
google_api_key: "" # 或环境变量 GOOGLE_API_KEY
google_cse_cx: "" # 或环境变量 GOOGLE_CSE_CX图片检索自动兜底:
- Google CSE
- DDG
- Google HTML
- 本地兜底图
export GOOGLE_API_KEY="你的key"
export GOOGLE_CSE_CX="你的cx"不配置也能跑,会自动回退到 DDG / HTML。
zsh scripts/run_with_conda.sh --login --url "https://www.zhihu.com/question/48510028"
zsh scripts/run_with_conda.sh --force-crawl --url "https://www.zhihu.com/question/48510028"建议同一网络连续执行。
- 把
workers降到 4 - 配置 Google CSE key/cx
zsh scripts/setup_with_conda.sh