Reddit 视频制作机器人 🎥
整个过程无需视频编辑或素材整理。纯粹是✨编程魔法✨。
由 Lewis Menelaws 与 TMRRW 制作
</a>
视频讲解
动机 🤔
这类视频在 TikTok、YouTube 和 Instagram 上能获得数百万的播放量,而且几乎不需要什么投入。 唯一原创的部分就是剪辑和素材收集……
……但如果我们能把这个过程自动化呢?🤔
免责声明 🚨
- 目前,本仓库不会尝试通过机器人自动上传这些内容。它会生成一个文件,你需要手动上传。这是为了避免触犯任何社区准则问题。
环境要求
- Python 3.10
- Playwright(安装时会自动安装)
安装步骤 👩💻
- 克隆本仓库:
git clone https://github.com/elebumm/RedditVideoMakerBot.git cd RedditVideoMakerBot - 创建并激活虚拟环境:
- Windows:
python -m venv ./venv .\venv\Scripts\activate - macOS 和 Linux:
python3 -m venv ./venv source ./venv/bin/activate
- Windows:
- 安装所需依赖:
pip install -r requirements.txt - 安装 Playwright 及其依赖:
python -m playwright install python -m playwright install-deps
实验性功能!!!
- 在 macOS 和 Linux(Debian、Arch、Fedora、CentOS 及其衍生版)上,你可以运行一个安装脚本,自动完成第 1 至第 3 步。(需要 bash)
bash <(curl -sL https://raw.githubusercontent.com/elebumm/RedditVideoMakerBot/master/install.sh)- 此脚本也可用于更新安装
- 运行机器人:
python main.py -
访问 Reddit 应用页面,创建一个“脚本”类型的应用。在重定向 URL 字段中粘贴任意 URL,例如:
https://jasoncameron.dev。 -
机器人会提示你填写相关信息以连接 Reddit API,并根据你的喜好配置机器人。
-
尽情享受吧 😎
- 如果需要重新配置机器人,只需打开
config.toml文件,删除需要更改的行。下次运行机器人时,它会帮助你重新配置这些选项。
(注意:如果在安装或运行机器人时遇到任何错误,请尝试使用 python3 或 pip3 而不是 python 或 pip。)
关于机器人的更详细指南,请参考文档。
视频
https://user-images.githubusercontent.com/66544866/173453972-6526e4e6-c6ef-41c5-ab40-5d275e724e7c.mp4
贡献与改进方向 📈
在当前状态下,这个机器人已经完成了它需要做的事情。不过,总可以做得更好!
我已尽量简化代码,让任何人都能阅读并开始贡献,无论技术水平如何。别害羞,来贡献吧!
- 编写更好的文档,并添加命令行界面。
- 允许用户为视频选择背景音乐。
- 允许用户选择特定的 Reddit 帖子,而不是随机选取。
- 允许用户选择其他背景,而不是 Minecraft 背景。
- 允许用户选择任意子版块。
- 允许用户更换语音。
- 检查视频是否已生成过。
- 浅色和深色模式。
- NSFW 帖子过滤器。
请阅读我们的贡献指南以获取更详细的信息。
如有任何问题或需要支持,请加入 Discord 服务器
开发者和维护者
Elebumm (Lewis#6305) - https://github.com/elebumm (创始人)
Jason Cameron - https://github.com/JasonLovesDoggo (维护者)
Simon (OpenSourceSimon) - https://github.com/OpenSourceSimon
CallumIO (c.#6837) - https://github.com/CallumIO
Verq (Verq#2338) - https://github.com/CordlessCoder
LukaHietala (Pix.#0001) - https://github.com/LukaHietala
Freebiell (Freebie#3263) - https://github.com/FreebieII
Aman Raza (electro199#8130) - https://github.com/electro199
Cyteon (cyteon) - https://github.com/cyteon
许可证
Roboto 字体 采用 Apache License V2 许可。

