另一个方便安全研究人员获取每日安全日报的爬虫和推送程序。支持导入 opml 文件从而批量订阅 RSS,因此可以订阅任何东西,而不局限于安全。
$ git clone https://github.com/firmianay/yarb.git && cd yarb
$ python3 -m pip install -r requirements.txt
编辑配置文件 config.json
,启用所需的订阅源和机器人。
$ ./yarb.py --help
usage: yarb.py [-h] [--update] [--cron CRON] [--config CONFIG]
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
# 单次任务
$ ./yarb.py --update
# 每日定时任务
$ nohup ./yarb.py --update --cron 11:00 > run.log 2>&1 &
利用 Github Actions 提供的服务,你只需要 fork 本项目,在 Settings 中添加 Actions secrets,就部署完成了。
目前支持的推送机器人及对应的 secrets:
- 飞书群机器人:
FEISHU_KEY
订阅源默认来自以下仓库,自动去重。
添加自定义订阅有两种方法:
- 在
config.json
中添加远程或本地仓库:
"rss": {
"CyberSecurityRSS": {
"enabled": false,
"url": "https://raw.githubusercontent.com/zer0yu/CyberSecurityRSS/master/CyberSecurityRSS.opml",
"filename": "CyberSecurityRSS.opml"
},
"CustomRSS": {
"enabled": true,
"filename": "CustomRSS.opml"
}
},
- 在
rss/CustomRSS.opml
中添加链接:
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>CustomRSS</title>
</head>
<body>
</body>
</opml>
yarb use SATA(Star And Thank Author) License, so you have to star this project before using. 🙏