# 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/firmianay/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`
- [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)
- [SecurityRSS](https://github.com/Han0nly/SecurityRSS)
- [安全技术公众号](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
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head><title>CustomRSS</title></head>
<body>
<outline type="rss" xmlUrl="https://forum.butian.net/Rss" text="奇安信攻防社区" title="奇安信攻防社区" htmlUrl="https://forum.butian.net" />
</body>
</opml>
```
## 关注我们
[VulnTotal安全团队](https://github.com/VulnTotal-Team)成立于2022年。致力于分享高质量原创文章和开源工具,包括Web安全、移动安全、物联网/汽车安全、代码审计、网络攻防等,欢迎[关注或加入我们](https://github.com/VulnTotal-Team/.github/blob/main/README.md)!
GNU General Public License v3.0
[![Stargazers over time](https://starchart.cc/VulnTotal-Team/yarb.svg)](https://starchart.cc/VulnTotal-Team/yarb)
没有合适的资源?快使用搜索试试~ 我知道了~
方便获取每日安全资讯的爬虫和推送的Python程序.zip
共191个文件
md:172个
opml:8个
yml:3个
需积分: 5 0 下载量 119 浏览量
2022-11-02
16:31:35
上传
评论
收藏 1.89MB ZIP 举报
温馨提示
方便获取每日安全资讯的爬虫和推送的Python程序.zip
资源推荐
资源详情
资源评论
收起资源包目录
方便获取每日安全资讯的爬虫和推送的Python程序.zip (191个子文件)
.gitignore 2KB
config.json 3KB
LICENSE 34KB
2022-07-02.md 45KB
2022-04-20.md 44KB
2022-04-21.md 43KB
2022-06-22.md 42KB
2022-07-01.md 42KB
2022-04-23.md 41KB
2022-06-15.md 41KB
2022-06-21.md 40KB
2022-06-08.md 40KB
2022-08-02.md 40KB
2022-06-29.md 39KB
2022-04-26.md 39KB
2022-06-24.md 38KB
2022-06-18.md 38KB
2022-09-15.md 38KB
2022-07-09.md 37KB
2022-06-11.md 37KB
2022-07-06.md 37KB
2022-06-17.md 36KB
2022-07-08.md 36KB
2022-07-21.md 36KB
2022-07-12.md 35KB
2022-06-23.md 35KB
2022-04-22.md 35KB
2022-09-14.md 35KB
2022-06-16.md 34KB
2022-06-10.md 34KB
2022-07-07.md 34KB
2022-11-01.md 34KB
2022-08-12.md 34KB
2022-09-07.md 34KB
2022-06-28.md 34KB
2022-07-14.md 34KB
2022-06-09.md 34KB
2022-06-30.md 33KB
2022-08-10.md 33KB
2022-09-01.md 33KB
2022-07-15.md 32KB
2022-09-03.md 32KB
2022-09-27.md 32KB
2022-11-02.md 31KB
today.md 31KB
2022-09-22.md 31KB
2022-07-22.md 31KB
2022-07-30.md 31KB
2022-07-05.md 31KB
2022-10-27.md 30KB
2022-10-29.md 30KB
2022-08-26.md 30KB
2022-09-09.md 30KB
2022-06-14.md 30KB
2022-06-25.md 30KB
2022-08-09.md 30KB
2022-07-19.md 30KB
2022-08-23.md 29KB
2022-04-19.md 29KB
2022-08-04.md 29KB
2022-08-27.md 29KB
2022-10-19.md 29KB
2022-07-13.md 28KB
2022-10-20.md 28KB
2022-10-26.md 28KB
2022-10-18.md 28KB
2022-08-30.md 28KB
2022-08-03.md 28KB
2022-09-17.md 28KB
2022-08-16.md 28KB
2022-07-20.md 27KB
2022-09-23.md 27KB
2022-08-25.md 27KB
2022-08-06.md 27KB
2022-08-20.md 27KB
2022-09-06.md 27KB
2022-10-15.md 27KB
2022-08-17.md 26KB
2022-08-11.md 26KB
2022-09-28.md 26KB
2022-09-10.md 26KB
2022-08-05.md 26KB
2022-04-27.md 25KB
2022-10-28.md 25KB
2022-04-30.md 25KB
2022-08-19.md 25KB
2022-04-12.md 25KB
2022-10-25.md 25KB
2022-10-14.md 25KB
2022-04-14.md 25KB
2022-04-08.md 25KB
2022-09-21.md 25KB
2022-09-30.md 24KB
2022-04-15.md 24KB
2022-04-16.md 24KB
2022-04-29.md 24KB
2022-10-01.md 24KB
2022-09-16.md 24KB
2022-09-24.md 24KB
2022-10-22.md 23KB
共 191 条
- 1
- 2
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6718
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功