rssbot 是一个中文 RSS 订阅机器人,默认抓取频率为 5 分钟,作者为 @iovxw
支持:
- RSS 0.9
- RSS 0.91
- RSS 0.92
- RSS 0.93
- RSS 0.94
- RSS 1.0
- RSS 2.0
- Atom 0.3
- Atom 1.0
博主搭建的一个 RSS Bot:
使用方法
/rss - 显示当前订阅的 RSS 列表,加 raw 参数显示链接
/sub - 订阅一个 RSS: /sub http://example.com/feed.xml
/unsub - 退订一个 RSS: /unsub http://example.com/feed.xml
/unsubthis - 使用此命令回复想要退订的 RSS 消息即可退订, 不支持 Channel
/export - 导出为 OPML
搭建方法
可直接从 Releases 下载预编译的程序,然后运行。
例如下载 v1.4.3:
cd /home && mkdir rssbot && cd rssbot && wget https://github.com/iovxw/rssbot/releases/download/v1.4.3/rssbot-v1.4.3-linux.zip && unzip rssbot-v1.4.3-linux.zip
如果提示未安装 unzip,则使用以下命令安装:
# For Debian/Ubuntu
apt-get install zip -y
# For CentOS
yum install zip -y
运行:
./rssbot ./data.json TELEGRAM-BOT-TOKEN
TELEGRAM-BOT-TOKEN
请参照 这里 申请。
使用 supervisor 后台运行
安装 supervisor:
# For Debian/Ubuntu
apt-get install supervisor -y
# For CentOS
yum install supervisor -y
编辑配置文件:
vim /etc/supervisor/conf.d/rssbot.conf
[program:rssbot]
command=/home/rssbot/rssbot /home/rssbot/data.json TELEGRAM-BOT-TOKEN
directory=/home/rssbot
autorestart=true
user=root
然后重新运行
supervisorctl reload
即可。