Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vu1nt0tal/yarb
方便获取每日安全资讯的爬虫和推送程序
https://github.com/vu1nt0tal/yarb
bot rss security
Last synced: about 17 hours ago
JSON representation
方便获取每日安全资讯的爬虫和推送程序
- Host: GitHub
- URL: https://github.com/vu1nt0tal/yarb
- Owner: Vu1nT0tal
- License: gpl-3.0
- Created: 2022-04-07T03:14:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T02:56:34.000Z (about 2 months ago)
- Last Synced: 2024-10-30T05:14:42.502Z (about 2 months ago)
- Topics: bot, rss, security
- Language: Python
- Homepage: https://vulntotal-team.github.io/yarb/
- Size: 12.7 MB
- Stars: 646
- Watchers: 101
- Forks: 229
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yarb (Yet Another Rss Bot)
一个方便获取每日安全资讯的爬虫和推送程序。支持导入 opml 文件,因此也可以订阅其他任何 RSS 源。
**懒人福音,每日自动更新,点击右上角 Watch 即可:[每日安全资讯](./today.md),[历史存档](./archive)**
- [yarb (Yet Another Rss Bot)](#yarb-yet-another-rss-bot)
- [安装](#安装)
- [运行](#运行)
- [本地搭建](#本地搭建)
- [Github Actions](#github-actions)
- [订阅源](#订阅源)
- [关注我们](#关注我们)## 安装
```sh
$ git clone https://github.com/VulnTotal-Team/yarb.git
$ cd yarb && ./install.sh
```## 运行
### 本地搭建
编辑配置文件 `config.json`,启用所需的订阅源和机器人(key 也可以通过环境变量传入),最好启用代理。
```sh
$ ./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:
- [邮件机器人](https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256)
- `MAIL_KEY`(需要申请授权码,订阅较多时推荐)
- `MAIL_RECEIVER`(可选,接收人,以“,”分隔)
- [飞书群机器人](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN):`FEISHU_KEY`
- [企业微信群机器人](https://developer.work.weixin.qq.com/document/path/91770):`WECOM_KEY`
- [钉钉群机器人](https://open.dingtalk.com/document/robots/custom-robot-access):`DINGTALK_KEY`(机器人安全设置可以使用“自定义关键词”,设置为“Yarb”)
- [QQ群机器人](https://github.com/Mrs4s/go-cqhttp):`QQ_KEY`(需要关闭登录设备锁)
- [Telegram机器人](https://core.telegram.org/bots/api): `TELEGRAM_KEY`(需要代理)## 订阅源
推荐订阅源:
- [CustomRSS](rss/CustomRSS.opml)
其他订阅源:
- [CyberSecurityRSS](https://github.com/zer0yu/CyberSecurityRSS)
- [Chinese-Security-RSS](https://github.com/zhengjim/Chinese-Security-RSS)
- [awesome-security-feed](https://github.com/mrtouch93/awesome-security-feed)
- [安全技术公众号](https://github.com/ttttmr/wechat2rss)
- [SecWiki 安全聚合](https://www.sec-wiki.com/opml/index)
- [Hacking8 安全信息流](https://i.hacking8.com/)非安全订阅源:
- [中文独立博客列表](https://github.com/timqian/chinese-independent-blogs)
添加自定义订阅有两种方法:
1. 在 `config.json` 中添加本地或远程仓库:
```json
{
"rss": {
"CustomRSS": {
"enabled": true,
"filename": "CustomRSS.opml"
},
"CyberSecurityRSS": {
"enabled": true,
"url": "https://raw.githubusercontent.com/zer0yu/CyberSecurityRSS/master/CyberSecurityRSS.opml",
"filename": "CyberSecurityRSS.opml"
},
```2. 在 `rss/CustomRSS.opml` 中添加链接:
```opml
CustomRSS
```
## 关注我们
[VulnTotal安全](https://github.com/VulnTotal-Team)致力于分享高质量原创文章和开源工具,包括物联网/汽车安全、移动安全、网络攻防等。
GNU General Public License v3.0
[![Stargazers over time](https://starchart.cc/VulnTotal-Team/yarb.svg)](https://starchart.cc/VulnTotal-Team/yarb)