RssHub php版

66

项目地址

[button color="info" icon="" url="https://github.com/LoliLin/RSSHub" type=""]原版[/button] [button color="info" icon="" url="https://github.com/iLay1678/RSSHub" type=""]我修改的版本[/button]

修改内容

增加通用参数 增加domcrawler组件支持 移除FeedWriter 重写rss生成方法 增加一些路由 未定义路由将从原版RSSHub网站获取数据

通用参数

内容过滤

选出想要的内容 支持正则

filter: 过滤标题和描述 filter_title: 过滤标题 filter_description: 过滤描述 如 https://rss.ifking.cn/novel/biquge/79_79883?filter=一拳|王八

去掉不要的内容 支持正则

filterout: 过滤标题和描述 filterout_title: 过滤标题 filterout_description: 过滤描述 如 https://rss.ifking.cn/novel/biquge/79_79883?filterout=一拳|王八 ###内容匹配 ####指定输出内容 regular :使用正则规定输出内容 例如 :https://rss.ifking.cn/blog/cross/ifking.cn?regular=<p>(.*?)<\/p> ###条数限制 可以使用 limit 参数限制最大条数 例如:https://rss.ifking.cn/novel/biquge/79_79883?limit=3 ###输出 Telegram 即时预览链接 可以输出 Telegram 可识别的即时预览链接, 主要用于文章类 RSS Telegram 即时预览模式需要在官网制作页面处理模板,请前往官网了解更多 tgiv: 模板 hash,可从模板制作页面分享出来的链接末尾获取(&rhash=后面跟着的字符串) 例如: https://rss.ifking.cn/novel/biquge/79_79883&tgiv=0b007ea764bc84

路由列表

小说·文学·阅读

笔趣阁

小说更新

作者: iLay1678 路径: /novel/biquge/:id 示例: /novel/biquge/79_79883 参数说明: id: 小说 id, 可在对应小说页 URL 中找到 提示:由于笔趣阁网站有多个, 各站点小说对应的小说 id 不同. 此 feed 只对应在www.biquge5200.com中的小说 id.

博客

handsome主题博客

作者: iLay1678 路径: /blog/handsome/:url 示例: /blog/handsome/ifking.cn 参数说明: url: 博客地址, 不带http或https前缀 提示:必须是采用typecho系统且使用handsome主题的博客.

handsome时光机

作者: iLay1678 路径: /blog/cross/:url 示例: /blog/cross/ifking.cn 参数说明: url: 博客地址, 不带http或https前缀 提示:请确保时光机页面为cross.html.

社交媒体

直播

斗鱼开播提醒

作者: iLay1678 路径: /live/douyu/:id 示例: /live/douyu/1126960 参数说明: id: 直播间 id, 可从直播间 URL 中获取

虎牙开播提醒

作者: iLay1678 路径: /live/huya/:id 示例: /live/huya/102411 参数说明: id: 直播间 id或主播名(有一些id是名字),可从直播间 URL 中获取

哔哩哔哩

番剧

作者: LoliLin 路径: /bilibili/bangumi/:sessionID 示例: /bilibili/bangumi/2267573 参数说明: sessionID: 番剧 id, 番剧主页打开控制台执行 window.__INITIAL_STATE__.ssIdwindow.__INITIAL_STATE__.mediaInfo.param.season_id 获取

投稿

作者: LoliLin 路径: /bilibili/user/video/:uid 示例: /bilibili/user/video/2267573 参数说明: uid: 用户 id, UP 主空间 URL 中获取

动态

作者: LoliLin 路径: /bilibili/user/dynamic/:uid 示例: /bilibili/user/dynamic/2267573 参数说明: uid: 用户 id, UP 主空间 URL 中获取

部署

  1. git clone https://github.com/iLay1678/RSSHub.git
  2. composer install
  3. 设置运行目录为 public
  4. 重命名.env.example为.env
  5. 配置伪静态规则 (nginx 规则如下)
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?s=$1 last;
    }

Demo

演示站,可随意使用(且完整支持rsshub官方列表)

其他

原版RssHub RssHub [button color="primary" icon="" url="https://github.com/DIYgod/RSSHub" type=""]项目地址[/button] telegram Rss订阅机器人 @ilay_rssbot [button color="primary" icon="" url="https://github.com/indes/flowerss-bot" type=""]项目地址[/button]