yarb (Yet Another Rss Bot)
一个方便获取每日安全资讯的爬虫和推送程序。支持导入 opml 文件,因此也可以订阅其他任何 RSS 源。
懒人福音,每日自动更新,点击右上角 Watch 即可:每日安全资讯,历史存档
安装
$ git clone https://github.com/VulnTotal-Team/yarb.git
$ cd yarb && ./install.sh
运行
本地搭建
编辑配置文件 config.json,启用所需的订阅源和机器人(key 也可以通过环境变量传入),最好启用代理。
$ ./yarb.py --help
usage: yarb.py [-h] [--update] [--cron CRON] [--config CONFIG] [--test]
optional arguments:
-h, --help show this help message and exit
--update Update RSS config file
--cron CRON Execute scheduled tasks every day (eg:"11:00")
--config CONFIG Use specified config file
--test Test bot
# 单次任务
$ ./yarb.py
# 每日定时任务
$ nohup ./yarb.py --cron 11:00 > run.log 2>&1 &
Github Actions
利用 Github Actions 提供的服务,你只需要 fork 本项目,在 Settings 中添加 secrets,即可完成部署。
目前支持的推送机器人及对应的 secrets: