8000 GitHub - thysc/yarb: Yet Another Rss Bot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

thysc/yarb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarb (Yet Another Rss Bot)

另一个方便安全研究人员获取每日安全日报的爬虫和推送程序。支持导入 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

利用 Github Actions 提供的服务,你只需要 fork 本项目,在 Settings 中添加 Actions secrets,就部署完成了。

目前支持的推送机器人及对应的 secrets:

订阅源

订阅源默认来自以下仓库,自动去重。

添加自定义订阅有两种方法:

  1. 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"
    }
},
  1. 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. 🙏

Stargazers over time

Stargazers over time

About

Yet Another Rss Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0