使用 GitHub workflow 自动运行一个简单的 Python 脚本,调用 OpenAI API 为 RSS 订阅源生成摘要,然后将新生成的 RSS 订阅源推送到 GitHub Pages。配置简单快速,无需服务器。
- 使用 ChatGPT 来总结 RSS 订阅源, 生成关键词,摘要附在原文前面,支持自定义摘要长度,自定义语言。
- 聚合多个 RSS 订阅源,去除重复文章,用单一地址订阅。
- 为 RSS 订阅源添加基于标题,内容,URL 的关键词过滤器。
- 在 GitHub 仓库和 GitHub Pages 上自托管 RSS 订阅源。
- Fork 这个仓库中
- 添加仓库 Secrets
- 在仓库设置中启用 GitHub Pages, 选择 deploy from branch,设置目录为
/docs
. - 在
config.ini
中配置你的RSS订阅源
也可以参考更详细的中文教程。
-
本项目有一个
dev
分支,用于记录手动更新的内容,GitHub Actions 自动提交将不再出现这个dev
分支,这样做的目的是把对脚本的手动更新和 GitHub Workflow 自动提交的内容分开, 方便检查脚本更新和 pull 到你的仓库中。 -
由于 OpenAI 在 2023-11-06 发布了新版本的
openai
包,新版本包含了更强大的模型,调用 API 的方式也发生了变化。因此,旧版本的脚本将无法使用最新版本的openai
包,需要更新。否则,你可以在requirements.txt
中设置openai==0.27.8
来使用旧版本。 -
在更新的版本中,长度超过 16k 个 token 的文章不再被截断,而是使用最新的
gpt-4-1106-preview
模型。 如果你不喜欢这样的改变,可以联系我,我会考虑添加自定义选项来选择是否截断或者使用gpt-4-1106-preview
模型。 -
查看 CHANGELOG-zh.md 获取最新的更新日志。
- 欢迎提交 issue 和 pull request。请尽量提交 pull request 到
dev
分支。
我自己用此脚本总结的一些 RSS订阅源托管在本项目的docs/
子目录中以及我的 GitHub Pages上找到。欢迎在任何 RSS 阅读器中订阅。
如果有任何问题或有关于 RSS feeds 的建议,欢迎邮件联系我。
如果你觉得本项目有帮助,欢迎 star。
- https://brett.trpstra.net/brettterpstra -> https://yinan-c.github.io/RSS-GPT/brett-terpstra.xml
- https://meta.appinn.net/tag/chrome.rss, https://meta.appinn.net/tag/ios.rss, https://meta.appinn.net/tag/macos.rss -> https://yinan-c.github.io/RSS-GPT/appinn.xml
- https://rsshub.app/sspai/index -> https://yinan-c.github.io/RSS-GPT/sspai.xml
- https://rknight.me/feed.xml -> https://yinan-c.github.io/RSS-GPT/robb-knight.xml
- https://stephanango.com/feed.xml -> https://yinan-c.github.io/RSS-GPT/steph-ango.xml
- https://lopespm.com/atom.xml -> https://yinan-c.github.io/RSS-GPT/byte-tank.xml
- https://rsshub.app/36kr/motif/327685554177, https://rsshub.app/36kr/motif/327687077889, https://rsshub.app/36kr/motif/1366661828936836, https://rsshub.app/36kr/motif/1366662419875203, https://rsshub.app/36kr/motif/1756302767423108, https://rsshub.app/36kr/motif/327686815745, https://rsshub.app/36kr/motif/327685734401 -> https://yinan-c.github.io/RSS-GPT/36kr.xml
- https://rsshub.app/36kr/motif/327686782977 -> https://yinan-c.github.io/RSS-GPT/36kr-ai.xml
- https://rsshub.app/paulgraham/articles -> https://yinan-c.github.io/RSS-GPT/paul-graham.xml