自建FreshRSS教程

2021年12月16日 · 默认分类 · 991次阅读

RSS的全称是 Really Simple Syndication(简易信息聚合),在互联网刚刚兴起的时候,使用的人很多,比如早已关闭服务的Google Reeder就是一个RSS订阅工具。近些年新媒体,短视频蓬勃发展,登网页看新闻,看rss的人也越来越少,都转向了公众号或微博等平台,越来越多的网站站长也关闭了rss服务,使得rss爱好者很难抓取到有效的rss源,我最近重新折腾起了rss,通过自建服务(RSShub),来实现全平台订阅,体验还不错,特来分享部署方法。

最终效果

下图分别是web浏览器和iPhone上的使用体验

教程正式开始

环境要求:

  • 一台NAS/Linux主机/VPS
  • 配置好Docker环境
  • 公网IP或者已内网穿透

部署RSShub

RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源。RSSHub 借助于开源社区的力量快速发展中,目前已适配数百家网站的上千项内容。
文本以群晖系统为例,介绍安装方法
Docker-注册表-搜索RSShub,下载安装。

只需要设置好外部端口即可,其他保持默认,本文外部端口和内部端口一致,均为1200,你也可以改成其他端口,只要是没有被占用即可。

然后在浏览器输入http://192.168.31.127:1200,如果出现以下页面,说明部署成功。(此ip是我的群晖内网ip)

部署FreshRSS

同样需要在Docker里安装,注册表-搜索FreshRSS,安装linuxserver/freshrss这个镜像。
需要设置内容:
存储位置:/docker/freshRSS/config 前面路径根据自己情况设置,后面严格一致
端口:5005:80 前面端口根据自己情况设置,只要是不被占用端口就可以,后面严格一致
环境:PGID=1000 PUID=1000 根据自己情况填写


设置完成后,在浏览器输入http://192.168.31.127:5005,出现注册页面,说明安装成功,按照系统提示进行初始化安装。

添加rss源

到了重头戏,如果一个网站提供了rss源,那么直接导入即可,比如少数派的rss地址为https://sspai.com/feed,我们在订阅管理-添加订阅源或者分类就可以直接订阅了。

如果一个网站没有提供rss源,那么我们就需要利用上面自建的RSShub进行抓取,下面以订阅一位微博博主为例子进行演示。
首先打开https://docs.rsshub.app,找到微博项目对应的路由。

我们只要把这个网址更改一下,就可以抓取微博博主的rss源地址了,比如我们想抓取王冰冰的额微博数据,只需要找到她的微博id即可,去网页端可以查看,查找到王冰冰的微博id是6512991534

我们把上面网址前面的rsshub.app 改为我们自建的RSShub服务地址 192.168.31.127:1200,后面的用户id改为我们想抓取的用户id:6512991534,那么经过一系列排列组合,王冰冰的微博rss源地址就是http://192.168.31.127:1200/weibo/user/6512991534。
我们把源添加到FreshRSS中,就可以订阅了。

本文只是以微博为例子进行说明,更多网站的规则要到rsshub里面查询,并排列组合成自己的订阅源。

移动端的设置

iOS平台的rss阅读器还是挺多的,比如大名鼎鼎的Reeder,不过我使用下来,发现很别扭,最后找到了比较适合我的软件就是NetNewsWire,只要是支持FreshRSS的rss阅读器就可以,不限于这两个,我这边以NetNewsWire示例。
首先在FreshRSS上开启API,在设置-认证处打开允许API访问

然后到用户账户,API管理处设置第三方客户端的密码。

这样你的API地址就生成好了,比如我的订阅地址就是http://192.168.31.127:5005/api/greader.php
下面,我们把这个地址接入到NetNewsWire,设置-Add Account-SELF-HOSTED FreshRSS,填写你的FresRSS的用户名,API密码以及API地址,就可以接入服务器上部署的RSS服务了。

外网访问

经过上面一系列设置,可以在web,移动端阅读RSS了,但是这仅限局域网,我演示的地址也是内网IP,如果在外网环境,还需要把内网的端口映射出去,这部分属于基础内容,网上教程很多,我就不详细介绍了。
关键词:外网访问 DDNS 端口映射 内网穿透

结束

有了自建的RSS服务,我们就可以在浩瀚如烟的互联网世界中,选取自己真正关心的/有价值的内容了。
PS:微信公众号可通过feeddd.org直接获取rss源。

标签:群晖

最后编辑于:2022-09-24 17:04

评论

  1. Kenneth Taft Kenneth Taft
    2022-03-08 04:57

    Hello,

    It is with sad regret to inform you that DataList.biz is shutting down. We have made all our databases available for you at a one-time fee.

    You can visit us on DataList.biz

    Regards.
    Kenneth

    回复
  2. Wilfred Martinez Wilfred Martinez
    2022-03-22 08:23

    Hi,

    Who would I contact at shua1zh.cn that handles ordering your logo products, t-shirts, and promotional items?

    For over 20 years we have been helping our clients with all their custom logo merchandise.

    We can put your logo onto anything including:

    -Custom Printed T-shirts / Hoodies
    -Pens
    -Mugs
    -Bags
    -Banners
    -Table Covers
    -Key chains
    -USB flash drives
    -Plus 350,000 other items!

    Are there any upcoming projects that you need logo items for?

    Thanks in advance for your time.

    Regards,

    Custom Branded Product Specialist
    In business since 2005

    回复
  3. Teri Creed Teri Creed
    2022-03-31 20:45

    It is with sad regret to inform you that BusinessLeads101.com is shutting down.

    We have over 300 million records available for a one time fee of $149.

    Please visit our website BusinessLeads101.com

    Regards,
    Teri

    回复
  4. Christina Fairbairn Christina Fairbairn
    2022-04-12 23:45

    Hello.

    We are offering Bullet Proof SMTP servers that never get suspended. Email as much as you want.

    DMCA ignored, bulletproof locations, 100% uptime guaranteed, unlimited data transfer, and 24/7/365 support.

    100 Spots available. BulletProofSMTP.org

    回复
  5. Isidro Mahomet Isidro Mahomet
    2022-04-18 22:11

    ZippyLeads.org is running an easter special till the 18th of April.

    Get all the leads you need for your company with our easter special.

    回复
  6. Ellen Cannan Ellen Cannan
    2022-04-19 22:43

    Hello.

    It is with sad regret to inform you TopDataList.com is shutting down.

    We have made all our databases available for you for a once off fee.

    Visit us on TopDataList.com

    回复
  7. Lorena Mattison Lorena Mattison
    2022-05-05 20:32

    Hello, from CustomData.shop we are a provider of unique databases that could help your business.

    Please visit us at CustomData.shop to see if we can help you.

    Regards,
    Lorena

    回复
  8. Karl Mcneely Karl Mcneely
    2022-05-18 00:20

    Hi, my name is Karl from TopDataList.com

    We are ceasing operations on TopDataList.com and have made our leads available at a discounted price.

    Visit us on TopDataList.com
    Regards,
    Karl

    回复
  9. Torri Grizzard Torri Grizzard
    2022-06-22 21:08

    Hello, did you know that there are 241,120 internet directories in the world.

    These websites are what drive traffic to YOUR business.

    Want more traffic? Want more Sales? We can help - today.

    Your website shua1zh.cn is listed in only 64 of these directories.

    Get more traffic for your China, People?s Republic of audience.

    Our automated system adds your website to all of the directories.

    You can find it here: getlisted.directory/shua1zh.cn

    Act today, and we will expedite your listings and waive the processing charge!

    回复
  10. Saul Roby Saul Roby
    2022-07-07 01:20

    Convert shua1zh.cn to an app with one click!

    80% of users browse websites from their phones.

    Have the App send out push notifications without any extra marketing costs!

    MakeMySiteMobile.com

    回复
  11. Thomas Vo Thomas Vo
    2022-07-13 00:54

    Hello, did you know that there are 241,120 internet directories in the world.

    These websites are what drive traffic to YOUR business.

    Want more traffic? Want more Sales? We can help - today.

    Your website shua1zh.cn is listed in only 64 of these directories.

    Get more traffic for your China, People?s Republic of audience.

    Our automated system adds your website to all of the directories.

    You can find it here: getlisted.directory/shua1zh.cn

    Act today, and we will expedite your listings and waive the processing charge!

    We have a special going on. Use "FRIENDS" on checkout for a 50% discount valid today.

    回复
  12. Lukas Granville Lukas Granville
    2022-09-20 06:13

    Hello.

    It is with sad regret to inform you LeadsTree.org is shutting down this week.

    We have made all our dataabses available at a one-time fee.

    LeadsTree.org

    回复