惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Hacker News: Front Page
A
About on SuperTechFans
腾讯CDC
罗磊的独立博客
博客园 - Franky
Last Week in AI
Last Week in AI
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
云风的 BLOG
云风的 BLOG
L
LangChain Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recorded Future
Recorded Future
Vercel News
Vercel News
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
J
Java Code Geeks
有赞技术团队
有赞技术团队
V
V2EX
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
Jina AI
Jina AI
B
Blog RSS Feed
H
Help Net Security
N
Netflix TechBlog - Medium
Latest news
Latest news
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理
Stack Overflow Blog
Stack Overflow Blog
C
Cisco Blogs
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
P
Proofpoint News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News and Events Feed by Topic
T
Threatpost

Rat's Blog - RSS

一个功能强大又好用的RSS订阅器:FreshRSS安装教程 - Rat's Blog 一个可以自动安装多网站程序的面板 :YunoHost安装教程 - Rat's Blog 利用Flexget给Transmission添加RSS功能 - Rat's Blog Miniflux:自建私有RSS订阅工具,可多用户使用 - Rat's Blog
RSSHub:一个轻量、易于扩展的RSS生成器,支持B站/微博/网易云音乐等 - Rat's Blog
博主: Rat's · 2020-12-01 · via Rat's Blog - RSS

简介

RSSHub是一个轻量、易于扩展的RSS生成器,该工具可以给任何奇奇怪怪的内容生成RSS订阅源。支持B站、微博、网易云音乐、知乎、简书、掘金、自如、快递等。该工具后续可能还会增加更多网站的RSS

支持

bilibili

番剧、 UP主投稿、 UP主动态、UP主收藏夹、分区视频

微博

博主

网易云音乐

歌单歌曲、用户歌单、歌手专辑

简书

首页、7日热门、30日热门、专题、作者

知乎

收藏夹

掘金

分类

自如

房源

快递

所有快递公司

贴吧

帖子列表

妹子图

首页、分类、所有专题、专题详情、详情

pixiv

用户收藏、用户动态、排行榜

豆瓣

正在上映的电影、正在上映的高分电影、即将上映的电影、北美票房榜

煎蛋

无聊图

喷嚏

图卦

Dockone

周报

腾讯吐个槽

吐槽新帖

开发者头条

今日头条、独家号

笔趣阁

小说章节

安装

Github地址:https://github.com/DIYgod/RSSHub

项目地址:https://docs.rsshub.app/

环境要求:RedisNode.js,这里只讲CentOS系统安装方法。

1、安装EPEL

#CentOS/RHEL 6:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
#CentOS/RHEL 7:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

2、安装Redis

#安装Redis
yum install redis
#返回结果PONG,则安装成功。
redis-cli ping

3、安装Node.js

curl -sL https://rpm.nodesource.com/setup_8.x | bash -
yum install nodejs -y

4、安装RSSHub

yum -y install git
git clone https://github.com/DIYgod/RSSHub.git
cd RSSHub && npm install

5、运行RSSHub
这里使用Screen运行程序。防止程序中断。

yum -y install screen
screen -S RSSHub
cd RSSHub
node lib/index.js

然后使用IP:1200就可以访问了,如果需要使用域名并添加SSL的,接着看。

添加SSL

这是使用Caddy反代。并自动添加SSL证书。

安装Caddy

wget -N --no-check-certificate https://raw.githubusercontent.com/iiiiiii1/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh
#备用地址
wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh

编辑配置文件

#以下全部内容是一个整体,修改域名、IP、邮箱后一起复制到SSH运行!
echo "https://xx.com {
 tls admin@moerats.com
 proxy / 111.111.111.111:1200
 log /var/log/caddy.log
 gzip
}" > /usr/local/caddy/Caddyfile

启动Caddy

/etc/init.d/caddy restart

最后就可以通过域名https访问了。

使用示例

提示:由于官方接口用不了,这里博主提供个,地址:https://rsshub.moerats.com

示例域名:rsshub.moerats.com,缓存时间5分钟。你用你自己搭建好的域名也行。
1、bilibili

#番剧
举例:https://rsshub.moerats.com/bilibili/bangumi/21680
路由:/bilibili/bangumi/:seasonid
参数:seasonid,番剧id,可在番剧主页URL中找到

#UP主投稿
举例: https://rsshub.moerats.com/bilibili/user/video/2267573
路由: /bilibili/user/video/:uid
参数:uid,用户id,可在UP主主页中找到

#UP主动态
举例:https://rsshub.moerats.com/bilibili/user/dynamic/2267573
路由:/bilibili/user/dynamic/:uid
参数:uid,用户id,可在UP主主页中找到

#UP主收藏夹
举例:https://rsshub.moerats.com/bilibili/user/fav/2267573
路由:/bilibili/user/fav/:uid
参数:uid,用户id,可在UP主主页中找到

#UP主投币视频
举例:https://rsshub.moerats.com/bilibili/user/coin/2267573
路由:/bilibili/user/coin/:uid
参数:uid,用户id,可在UP主主页中找到

#分区视频
举例:https://rsshub.moerats.com/bilibili/partion/33
路由:/bilibili/partion/:tid
参数:tid,分区id
id参数查看:https://rsshub.js.org,请移至B站分区视频栏查看。

2、微博

#博主
举例:https://rsshub.moerats.com/weibo/user/3306934123
路由:/weibo/user/:uid
参数:uid,用户id,博主主页打开控制台执行/uid=(\d+)/. exec(document.querySelector('.opt_box .btn_bed').getAttribute('action-data'))[1]获取

3、网易云音乐

#歌单歌曲
举例:https://rsshub.moerats.com/ncm/playlist/35798529
路由:/ncm/playlist/:id
参数:id,歌单id,可在歌单页URL中找到

#用户歌单
举例:https://rsshub.moerats.com/ncm/user/playlist/45441555
路由:/ncm/user/playlist/:uid
参数:uid,用户uid,可在用户主页URL中找到

#歌手专辑
举例:https://rsshub.moerats.com/ncm/artist/2116
路由:/ncm/artist/:id
参数:id,歌手id,可在歌手详情页URL中找到

4、掘金

#分类
举例:https://rsshub.moerats.com/juejin/category/frontend
路由:/juejin/category/:category
参数:category,分类名,可在分类链接地址最后获取

5、简书

#首页
举例:https://rsshub.moerats.com/jianshu/home
路由:/jianshu/home
参数:无

#7日热门
举例:https://rsshub.moerats.com/jianshu/trending/weekly
路由:/jianshu/trending/weekly
参数: 无

#30日热门
举例:https://rsshub.moerats.com/jianshu/trending/monthly
路由:/jianshu/trending/monthly
参数:无

#专题
举例:https://rsshub.moerats.com/jianshu/collection/xYuZYD
路由:/jianshu/collection/:id
参数:id,专题id,可在专题页URL中找到

#作者
举例:https://rsshub.moerats.com/jianshu/user/yZq3ZV
路由:/jianshu/user/:id
参数:id,作者id,可在作者主页URL中找到

6、自如

#房源
举例:https://rsshub.moerats.com/ziroom/room/sh/1/2/五角场
路由:/ziroom/room/:city/:iswhole/:room/:keyword
参数:
city:城市,北京bj;上海sh;深圳sz;杭州hz;南京nj;广州gz;成都cd;武汉wh;天津tj
iswhole:是否整租
room:房间数
keyword:关键词

7、快递
快递送达后请及时取消订阅,以免不必要地浪费服务器资源

举例:https://rsshub.moerats.com/express/youzhengguoji/CV054432809US
路由: /express/:company/:number
参数:company:快递公司代码、number:快递单号

快递公司代码参考:API URL 所支持的快递公司及参数说明

8、知乎

#收藏夹
举例:https://rsshub.moerats.com/zhihu/collection/26444956
路由:/zhihu/collection/:id
参数:id,收藏夹id,可在收藏夹页面URL中找到

更多使用查看:https://rsshub.js.org


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/587/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。