rsshub 1.0.0-master.d3fbdfe → 1.0.0-master.d424adf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -23
- package/lib/app.js +2 -2
- package/lib/config.js +12 -1
- package/lib/index.js +1 -1
- package/lib/middleware/anti-hotlink.js +2 -2
- package/lib/middleware/parameter.js +47 -47
- package/lib/radar-rules.js +13 -30
- package/lib/radar.js +2 -1
- package/lib/router.js +35 -49
- package/lib/routes/miniflux/get_feeds.js +2 -2
- package/lib/utils/logger.js +14 -2
- package/lib/utils/rand-user-agent.js +3 -2
- package/lib/v2/141ppv/index.js +4 -1
- package/lib/v2/2048/index.js +12 -4
- package/lib/v2/8264/list.js +92 -0
- package/lib/v2/8264/maintainer.js +3 -0
- package/lib/v2/8264/radar.js +355 -0
- package/lib/v2/8264/router.js +3 -0
- package/lib/v2/8264/templates/description.art +5 -0
- package/lib/v2/abskoop/index.js +21 -31
- package/lib/v2/abskoop/nsfw.js +16 -37
- package/lib/v2/abskoop/radar.js +13 -2
- package/lib/v2/ainvest/article.js +42 -0
- package/lib/v2/ainvest/maintainer.js +4 -0
- package/lib/v2/ainvest/news.js +39 -0
- package/lib/v2/ainvest/radar.js +19 -0
- package/lib/v2/ainvest/router.js +4 -0
- package/lib/v2/ainvest/utils.js +73 -0
- package/lib/v2/{scitation/journal.js → aip/journal-pupp.js} +2 -2
- package/lib/v2/aip/journal.js +55 -0
- package/lib/v2/{scitation → aip}/maintainer.js +0 -1
- package/lib/v2/aip/radar.js +13 -0
- package/lib/v2/aip/router.js +4 -0
- package/lib/v2/alternativeto/maintainer.js +4 -0
- package/lib/v2/alternativeto/platform.js +32 -0
- package/lib/v2/alternativeto/radar.js +19 -0
- package/lib/v2/alternativeto/router.js +4 -0
- package/lib/v2/alternativeto/software.js +32 -0
- package/lib/v2/alternativeto/utils.js +22 -0
- package/lib/v2/apnews/topics.js +1 -0
- package/lib/v2/apple/apps.js +51 -0
- package/lib/v2/apple/maintainer.js +1 -0
- package/lib/v2/apple/radar.js +8 -0
- package/lib/v2/apple/router.js +1 -0
- package/lib/v2/appstore/maintainer.js +0 -1
- package/lib/v2/appstore/radar.js +0 -6
- package/lib/v2/appstore/router.js +0 -1
- package/lib/v2/aqara/maintainer.js +4 -1
- package/lib/v2/aqara/news.js +25 -25
- package/lib/v2/aqara/post.js +92 -0
- package/lib/v2/aqara/radar.js +24 -6
- package/lib/v2/aqara/router.js +12 -1
- package/lib/v2/aqara/templates/figure.art +3 -0
- package/lib/v2/baidu/maintainer.js +3 -2
- package/lib/v2/baidu/radar.js +15 -1
- package/lib/v2/baidu/router.js +3 -2
- package/lib/v2/baidu/templates/tieba_search.art +1 -0
- package/lib/v2/baidu/tieba/forum.js +4 -3
- package/lib/v2/baidu/tieba/search.js +63 -0
- package/lib/v2/bangumi/maintainer.js +1 -0
- package/lib/v2/bangumi/radar.js +9 -9
- package/lib/v2/bangumi/router.js +1 -2
- package/lib/v2/bangumi/tv/subject/ep.js +4 -3
- package/lib/v2/bangumi/tv/subject/index.js +18 -16
- package/lib/v2/bangumi/tv/subject/offcial-subject-api.js +3 -2
- package/lib/v2/bangumi/tv/subject/utils.js +5 -0
- package/lib/{routes → v2}/bbc/index.js +4 -4
- package/lib/v2/bbc/maintainer.js +4 -0
- package/lib/v2/bbc/radar.js +11 -0
- package/lib/v2/bbc/router.js +3 -0
- package/lib/v2/bilibili/article.js +2 -17
- package/lib/v2/bilibili/cache.js +85 -27
- package/lib/v2/bilibili/danmaku.js +9 -2
- package/lib/v2/bilibili/dynamic.js +54 -19
- package/lib/v2/bilibili/fav.js +2 -0
- package/lib/v2/bilibili/followings_article.js +1 -10
- package/lib/v2/bilibili/followings_dynamic.js +25 -11
- package/lib/v2/bilibili/maintainer.js +3 -2
- package/lib/v2/bilibili/router.js +3 -2
- package/lib/v2/bilibili/userFav.js +2 -0
- package/lib/v2/bilibili/utils.js +67 -3
- package/lib/v2/bilibili/video-all.js +1 -5
- package/lib/v2/bilibili/video.js +8 -6
- package/lib/v2/bilibili/watchlater.js +44 -0
- package/lib/v2/bjfu/grs.js +22 -36
- package/lib/v2/bjfu/it/index.js +9 -7
- package/lib/v2/bjfu/it/utils.js +38 -29
- package/lib/v2/bjfu/jwc/index.js +3 -8
- package/lib/v2/bjfu/jwc/utils.js +26 -29
- package/lib/v2/bjfu/kjc.js +25 -38
- package/lib/v2/bjfu/news/index.js +12 -9
- package/lib/v2/bjfu/news/utils.js +17 -19
- package/lib/v2/bloomberg/utils.js +6 -4
- package/lib/v2/boc/maintainer.js +3 -0
- package/lib/v2/boc/radar.js +13 -0
- package/lib/v2/boc/router.js +3 -0
- package/lib/{routes → v2}/boc/whpj.js +16 -15
- package/lib/v2/booru/maintainer.js +3 -0
- package/lib/v2/booru/mmda.js +47 -0
- package/lib/v2/booru/radar.js +12 -0
- package/lib/v2/booru/router.js +3 -0
- package/lib/v2/caixin/latest.js +7 -12
- package/lib/v2/caixin/radar.js +1 -1
- package/lib/v2/cas/genetics/xshd.js +29 -0
- package/lib/v2/cas/maintainer.js +1 -0
- package/lib/v2/cas/radar.js +16 -8
- package/lib/v2/cas/router.js +1 -0
- package/lib/{routes → v2}/caus/index.js +7 -6
- package/lib/v2/caus/maintainer.js +3 -0
- package/lib/v2/caus/radar.js +13 -0
- package/lib/v2/caus/router.js +3 -0
- package/lib/v2/cbc/maintainer.js +3 -0
- package/lib/v2/cbc/radar.js +13 -0
- package/lib/v2/cbc/router.js +3 -0
- package/lib/{routes → v2}/cbc/topics.js +11 -26
- package/lib/v2/chinawriter/index.js +88 -0
- package/lib/v2/chinawriter/maintainer.js +3 -0
- package/lib/v2/chinawriter/radar.js +660 -0
- package/lib/v2/chinawriter/router.js +3 -0
- package/lib/v2/cna/index.js +63 -0
- package/lib/v2/cna/maintainer.js +3 -0
- package/lib/v2/cna/radar.js +13 -0
- package/lib/v2/cna/router.js +3 -0
- package/lib/v2/cyzone/author.js +20 -0
- package/lib/v2/cyzone/index.js +27 -0
- package/lib/v2/cyzone/label.js +20 -0
- package/lib/v2/cyzone/maintainer.js +7 -0
- package/lib/v2/cyzone/radar.js +25 -0
- package/lib/v2/cyzone/router.js +6 -0
- package/lib/v2/cyzone/util.js +125 -0
- package/lib/v2/deltaio/blog.js +33 -0
- package/lib/v2/deltaio/maintainer.js +3 -0
- package/lib/v2/deltaio/radar.js +13 -0
- package/lib/v2/deltaio/router.js +3 -0
- package/lib/v2/discourse/maintainer.js +4 -0
- package/lib/v2/discourse/notifications.js +39 -0
- package/lib/v2/discourse/posts.js +25 -0
- package/lib/v2/discourse/router.js +4 -0
- package/lib/v2/discourse/utils.js +12 -0
- package/lib/v2/discuz/discuz.js +156 -0
- package/lib/v2/discuz/maintainer.js +5 -0
- package/lib/v2/discuz/radar.js +0 -0
- package/lib/v2/discuz/router.js +5 -0
- package/lib/v2/dlnews/category.js +81 -0
- package/lib/v2/dlnews/maintainer.js +3 -0
- package/lib/v2/dlnews/radar.js +19 -0
- package/lib/v2/dlnews/router.js +3 -0
- package/lib/v2/dlnews/templates/description.art +24 -0
- package/lib/v2/dlnews/utils.js +22 -0
- package/lib/v2/dn/maintainer.js +3 -0
- package/lib/v2/dn/news.js +90 -0
- package/lib/v2/dn/radar.js +55 -0
- package/lib/v2/dn/router.js +3 -0
- package/lib/v2/dn/templates/description.art +15 -0
- package/lib/v2/domp4/detail.js +4 -2
- package/lib/v2/domp4/latest.js +7 -4
- package/lib/v2/domp4/utils.js +15 -2
- package/lib/v2/dorohedoro/news.js +3 -1
- package/lib/v2/douyin/live.js +45 -15
- package/lib/v2/dribbble/maintainer.js +5 -0
- package/lib/v2/dribbble/radar.js +25 -0
- package/lib/v2/dribbble/router.js +5 -0
- package/lib/v2/dribbble/templates/description.art +15 -0
- package/lib/v2/dribbble/utils.js +156 -0
- package/lib/v2/economist/full.js +4 -2
- package/lib/v2/fantia/user.js +16 -0
- package/lib/v2/farmatters/index.js +85 -0
- package/lib/v2/farmatters/maintainer.js +7 -0
- package/lib/v2/farmatters/radar.js +36 -0
- package/lib/v2/farmatters/router.js +6 -0
- package/lib/v2/farmatters/templates/description.art +9 -0
- package/lib/v2/finology/radar.js +4 -4
- package/lib/v2/foresightnews/article.js +22 -0
- package/lib/v2/foresightnews/column.js +28 -0
- package/lib/v2/foresightnews/index.js +13 -76
- package/lib/v2/foresightnews/maintainer.js +1 -0
- package/lib/v2/foresightnews/news.js +23 -0
- package/lib/v2/foresightnews/radar.js +2 -2
- package/lib/v2/foresightnews/router.js +4 -1
- package/lib/v2/foresightnews/templates/description.art +13 -0
- package/lib/v2/foresightnews/util.js +96 -0
- package/lib/v2/ft/myft.js +9 -2
- package/lib/v2/gamegene/maintainer.js +3 -0
- package/lib/v2/gamegene/news.js +50 -0
- package/lib/v2/gamegene/radar.js +13 -0
- package/lib/v2/gamegene/router.js +3 -0
- package/lib/v2/github/maintainer.js +1 -0
- package/lib/v2/github/pulse.js +87 -0
- package/lib/v2/github/radar.js +6 -0
- package/lib/v2/github/router.js +1 -0
- package/lib/v2/github/templates/pulse-description.art +24 -0
- package/lib/v2/gogoanimehd/maintainer.js +3 -0
- package/lib/v2/gogoanimehd/radar.js +13 -0
- package/lib/v2/gogoanimehd/recent-releases.js +37 -0
- package/lib/v2/gogoanimehd/router.js +3 -0
- package/lib/v2/gov/chongqing/gzw.js +68 -0
- package/lib/v2/gov/chongqing/sydwgkzp.js +47 -0
- package/lib/v2/gov/maintainer.js +4 -0
- package/lib/v2/gov/npc/index.js +47 -0
- package/lib/v2/gov/radar.js +37 -0
- package/lib/v2/gov/router.js +4 -0
- package/lib/v2/gov/shenzhen/zjj/index.js +45 -0
- package/lib/v2/grist/radar.js +4 -4
- package/lib/v2/grubstreet/maintainer.js +4 -0
- package/lib/v2/grubstreet/radar.js +13 -0
- package/lib/v2/grubstreet/router.js +3 -0
- package/lib/v2/grubstreet/utils.js +84 -0
- package/lib/v2/gxmzu/lib.js +70 -0
- package/lib/v2/gxmzu/maintainer.js +1 -0
- package/lib/v2/gxmzu/radar.js +8 -0
- package/lib/v2/gxmzu/router.js +1 -0
- package/lib/v2/hackyournews/index.js +50 -0
- package/lib/v2/hackyournews/maintainer.js +3 -0
- package/lib/v2/hackyournews/radar.js +13 -0
- package/lib/v2/hackyournews/router.js +3 -0
- package/lib/v2/hrbeu/radar.js +3 -3
- package/lib/v2/hrbeu/router.js +1 -1
- package/lib/v2/hrbeu/uae/news.js +66 -0
- package/lib/v2/icbc/maintainer.js +3 -0
- package/lib/v2/icbc/radar.js +13 -0
- package/lib/v2/icbc/router.js +3 -0
- package/lib/v2/icbc/whpj.js +57 -0
- package/lib/v2/iqiyi/maintainer.js +1 -1
- package/lib/v2/iqiyi/video.js +42 -33
- package/lib/v2/ithome/tag.js +14 -3
- package/lib/v2/japanpost/maintainer.js +3 -0
- package/lib/v2/japanpost/radar.js +22 -0
- package/lib/v2/japanpost/router.js +3 -0
- package/lib/v2/japanpost/templates/track_item_desc.art +14 -0
- package/lib/{routes → v2}/japanpost/track.js +32 -29
- package/lib/{routes → v2}/japanpost/utils.js +10 -11
- package/lib/v2/kamen-rider-official/maintainer.js +3 -0
- package/lib/v2/kamen-rider-official/news.js +110 -0
- package/lib/v2/kamen-rider-official/radar.js +18 -0
- package/lib/v2/kamen-rider-official/router.js +3 -0
- package/lib/v2/kamen-rider-official/templates/description.art +10 -0
- package/lib/v2/kantarworldpanel/index.js +96 -0
- package/lib/v2/kantarworldpanel/maintainer.js +3 -0
- package/lib/v2/kantarworldpanel/radar.js +199 -0
- package/lib/v2/kantarworldpanel/router.js +3 -0
- package/lib/v2/kantarworldpanel/templates/description.art +9 -0
- package/lib/v2/kunchengblog/essay.js +35 -19
- package/lib/v2/kunchengblog/radar.js +1 -1
- package/lib/v2/kunchengblog/router.js +1 -1
- package/lib/v2/latepost/index.js +83 -29
- package/lib/v2/latepost/radar.js +7 -2
- package/lib/v2/latepost/router.js +1 -1
- package/lib/v2/leetcode/articles.js +1 -1
- package/lib/v2/lemmy/index.js +61 -0
- package/lib/v2/lemmy/maintainer.js +3 -0
- package/lib/v2/lemmy/router.js +3 -0
- package/lib/v2/liulinblog/index.js +98 -0
- package/lib/v2/liulinblog/maintainer.js +6 -2
- package/lib/v2/liulinblog/radar.js +36 -16
- package/lib/v2/liulinblog/router.js +7 -3
- package/lib/v2/lsnu/jiaowc/tzgg.js +52 -0
- package/lib/v2/lsnu/maintainer.js +3 -0
- package/lib/v2/lsnu/radar.js +13 -0
- package/lib/v2/lsnu/router.js +3 -0
- package/lib/v2/luxiangdong/archive.js +28 -0
- package/lib/v2/luxiangdong/maintainer.js +3 -0
- package/lib/v2/luxiangdong/radar.js +13 -0
- package/lib/v2/luxiangdong/router.js +3 -0
- package/lib/v2/mail/imap.js +99 -0
- package/lib/v2/mail/maintainer.js +3 -0
- package/lib/v2/mail/router.js +3 -0
- package/lib/v2/mihoyo/bbs/img-ranking.js +106 -0
- package/lib/v2/mihoyo/{bbs.js → bbs/official.js} +1 -1
- package/lib/v2/mihoyo/bbs/static-data.js +137 -0
- package/lib/v2/mihoyo/maintainer.js +1 -0
- package/lib/v2/mihoyo/radar.js +7 -1
- package/lib/v2/mihoyo/router.js +2 -1
- package/lib/v2/mixcloud/index.js +5 -22
- package/lib/v2/mixcloud/queries.js +187 -179
- package/lib/v2/mydrivers/cid.js +38 -0
- package/lib/v2/mydrivers/index.js +40 -89
- package/lib/v2/mydrivers/maintainer.js +5 -1
- package/lib/v2/mydrivers/radar.js +205 -4
- package/lib/v2/mydrivers/rank.js +40 -0
- package/lib/v2/mydrivers/router.js +4 -1
- package/lib/v2/mydrivers/templates/description.art +5 -0
- package/lib/v2/mydrivers/util.js +125 -0
- package/lib/v2/mymusicsheet/maintainer.js +3 -0
- package/lib/v2/mymusicsheet/radar.js +13 -0
- package/lib/v2/mymusicsheet/router.js +3 -0
- package/lib/v2/mymusicsheet/templates/description.art +41 -0
- package/lib/v2/mymusicsheet/usersheets.js +120 -0
- package/lib/v2/netflav/index.js +39 -0
- package/lib/v2/netflav/maintainer.js +4 -0
- package/lib/v2/netflav/radar.js +13 -0
- package/lib/v2/netflav/router.js +3 -0
- package/lib/v2/netflav/templates/description.art +8 -0
- package/lib/v2/news/whxw.js +1 -0
- package/lib/v2/newzmz/index.js +53 -77
- package/lib/v2/newzmz/maintainer.js +2 -2
- package/lib/v2/newzmz/router.js +1 -3
- package/lib/v2/newzmz/templates/description.art +59 -7
- package/lib/v2/newzmz/util.js +166 -0
- package/lib/v2/niaogebiji/cat.js +53 -0
- package/lib/v2/niaogebiji/index.js +41 -0
- package/lib/v2/niaogebiji/maintainer.js +6 -0
- package/lib/v2/niaogebiji/radar.js +25 -0
- package/lib/v2/niaogebiji/router.js +5 -0
- package/lib/v2/niaogebiji/today.js +34 -0
- package/lib/v2/nju/gra.js +13 -5
- package/lib/v2/nwafu/all.js +43 -0
- package/lib/v2/nwafu/maintainer.js +3 -0
- package/lib/v2/nwafu/radar.js +13 -0
- package/lib/v2/nwafu/router.js +3 -0
- package/lib/v2/nwafu/utils.js +35 -0
- package/lib/v2/nytimes/index.js +1 -4
- package/lib/v2/nytimes/utils.js +5 -0
- package/lib/v2/oreno3d/radar.js +1 -1
- package/lib/v2/osu/beatmaps/packs.js +35 -0
- package/lib/v2/osu/maintainer.js +3 -0
- package/lib/v2/osu/radar.js +13 -0
- package/lib/v2/osu/router.js +3 -0
- package/lib/v2/pornhub/category.js +44 -0
- package/lib/v2/pornhub/category_url.js +25 -0
- package/lib/v2/pornhub/maintainer.js +8 -0
- package/lib/v2/pornhub/model.js +29 -0
- package/lib/v2/pornhub/pornstar.js +29 -0
- package/lib/v2/pornhub/radar.js +46 -0
- package/lib/v2/pornhub/router.js +8 -0
- package/lib/v2/pornhub/search.js +23 -0
- package/lib/v2/pornhub/templates/description.art +11 -0
- package/lib/v2/pornhub/users.js +30 -0
- package/lib/v2/pornhub/utils.js +30 -0
- package/lib/v2/radio-canada/latest.js +8 -1
- package/lib/v2/reuters/common.js +52 -26
- package/lib/v2/rfi/maintainer.js +1 -1
- package/lib/v2/rfi/news.js +9 -2
- package/lib/v2/rfi/router.js +1 -1
- package/lib/v2/rsc/journal.js +106 -0
- package/lib/v2/rsc/maintainer.js +3 -0
- package/lib/v2/rsc/radar.js +23 -0
- package/lib/v2/rsc/router.js +3 -0
- package/lib/v2/rsc/templates/image.art +5 -0
- package/lib/v2/rsshub/maintainer.js +1 -0
- package/lib/v2/rsshub/router.js +1 -0
- package/lib/v2/rsshub/routes.js +14 -18
- package/lib/v2/rsshub/transform/html.js +9 -0
- package/lib/v2/rsshub/transform/json.js +1 -0
- package/lib/v2/rsshub/transform/sitemap.js +52 -0
- package/lib/v2/science/radar.js +2 -2
- package/lib/v2/scut/maintainer.js +1 -0
- package/lib/v2/scut/radar.js +34 -0
- package/lib/v2/scut/router.js +1 -0
- package/lib/v2/scut/smae/notice.js +54 -0
- package/lib/v2/sourceforge/index.js +33 -0
- package/lib/v2/sourceforge/maintainer.js +3 -0
- package/lib/v2/sourceforge/radar.js +12 -0
- package/lib/v2/sourceforge/router.js +3 -0
- package/lib/v2/sqmc/maintainer.js +3 -0
- package/lib/v2/sqmc/radar.js +13 -0
- package/lib/v2/sqmc/router.js +3 -0
- package/lib/v2/sqmc/www.js +49 -0
- package/lib/v2/stheadline/std/realtime.js +8 -6
- package/lib/v2/stockedge/daily-news.js +1 -1
- package/lib/v2/stockedge/radar.js +1 -1
- package/lib/v2/stockedge/utils.js +1 -0
- package/lib/v2/surfshark/blog.js +91 -0
- package/lib/v2/surfshark/maintainer.js +3 -0
- package/lib/v2/surfshark/radar.js +90 -0
- package/lib/v2/surfshark/router.js +3 -0
- package/lib/v2/surfshark/templates/description.art +5 -0
- package/lib/v2/tesla/cx.js +119 -0
- package/lib/v2/tesla/maintainer.js +1 -0
- package/lib/v2/tesla/radar.js +13 -1
- package/lib/v2/tesla/router.js +1 -0
- package/lib/v2/tesla/templates/description.art +140 -0
- package/lib/v2/test/index.js +1 -1
- package/lib/v2/tfc-taiwan/index.js +36 -0
- package/lib/v2/tfc-taiwan/maintainer.js +10 -0
- package/lib/v2/tfc-taiwan/radar.js +31 -0
- package/lib/v2/tfc-taiwan/router.js +7 -0
- package/lib/v2/tfc-taiwan/templates/article.art +7 -0
- package/lib/v2/tfc-taiwan/utils.js +56 -0
- package/lib/v2/thepaper/utils.js +19 -13
- package/lib/v2/thwiki/radar.js +1 -1
- package/lib/v2/tiktok/router.js +1 -1
- package/lib/v2/tiktok/templates/user.art +5 -1
- package/lib/v2/tiktok/user.js +5 -1
- package/lib/v2/toodaylab/index.js +99 -0
- package/lib/v2/toodaylab/maintainer.js +7 -0
- package/lib/v2/toodaylab/radar.js +37 -0
- package/lib/v2/toodaylab/router.js +3 -0
- package/lib/{routes → v2}/tophub/index.js +12 -6
- package/lib/v2/tophub/maintainer.js +3 -0
- package/lib/v2/tophub/radar.js +13 -0
- package/lib/v2/tophub/router.js +3 -0
- package/lib/v2/udn/breaking-news.js +10 -5
- package/lib/v2/ustc/eeis.js +5 -4
- package/lib/v2/ustc/sist.js +6 -5
- package/lib/v2/v2ex/maintainer.js +5 -0
- package/lib/v2/v2ex/post.js +35 -0
- package/lib/v2/v2ex/radar.js +35 -0
- package/lib/v2/v2ex/router.js +5 -0
- package/lib/{routes → v2}/v2ex/tab.js +17 -21
- package/lib/{routes → v2}/v2ex/topics.js +1 -1
- package/lib/v2/weibo/oasis/user.js +4 -3
- package/lib/v2/whu/cs.js +71 -0
- package/lib/v2/whu/gs/index.js +85 -0
- package/lib/v2/whu/maintainer.js +5 -0
- package/lib/v2/whu/news.js +102 -0
- package/lib/v2/whu/radar.js +27 -0
- package/lib/v2/whu/router.js +5 -0
- package/lib/v2/x-mol/maintainer.js +4 -0
- package/lib/v2/x-mol/news.js +63 -0
- package/lib/v2/x-mol/paper.js +73 -0
- package/lib/v2/x-mol/radar.js +25 -0
- package/lib/v2/x-mol/router.js +4 -0
- package/lib/v2/x-mol/templates/description.art +6 -0
- package/lib/v2/x-mol/utils.js +3 -0
- package/lib/v2/xiaohongshu/user.js +33 -9
- package/lib/v2/xiaohongshu/util.js +17 -21
- package/lib/v2/xiaote/index.js +48 -0
- package/lib/v2/xiaote/maintainer.js +3 -0
- package/lib/v2/xiaote/radar.js +13 -0
- package/lib/v2/xiaote/router.js +3 -0
- package/lib/v2/xinpianchang/index.js +19 -0
- package/lib/v2/xinpianchang/maintainer.js +4 -0
- package/lib/v2/xinpianchang/radar.js +28 -0
- package/lib/v2/xinpianchang/rank.js +33 -0
- package/lib/v2/xinpianchang/router.js +5 -0
- package/lib/v2/xinpianchang/templates/description.art +13 -0
- package/lib/v2/xinpianchang/util.js +110 -0
- package/lib/v2/xmut/jwc/bkjw.js +62 -0
- package/lib/v2/xmut/jwc/yjs.js +51 -0
- package/lib/v2/xmut/maintainer.js +3 -0
- package/lib/v2/xmut/radar.js +13 -0
- package/lib/v2/xmut/router.js +4 -0
- package/lib/v2/youtube/live.js +49 -0
- package/lib/v2/youtube/maintainer.js +1 -0
- package/lib/v2/youtube/radar.js +6 -0
- package/lib/v2/youtube/router.js +1 -0
- package/lib/v2/youtube/utils.js +12 -0
- package/lib/v2/yuque/utils.js +1 -0
- package/lib/v2/yyets/radar.js +2 -2
- package/lib/v2/zhihu/maintainer.js +4 -0
- package/lib/v2/zhihu/radar.js +24 -0
- package/lib/v2/zhihu/router.js +4 -0
- package/lib/v2/zhihu/xhu/auth.js +38 -0
- package/lib/v2/zhihu/xhu/collection.js +64 -0
- package/lib/v2/zhihu/xhu/question.js +44 -0
- package/lib/v2/zhihu/xhu/topic.js +70 -0
- package/lib/v2/zhihu/xhu/zhuanlan.js +83 -0
- package/lib/v2/zhubai/radar.js +2 -1
- package/lib/v2/zhubai/templates/description.art +41 -13
- package/lib/v2/zhubai/top20.js +31 -22
- package/lib/v2/zodgame/forum.js +61 -23
- package/lib/v2/zodgame/templates/forum.art +1 -1
- package/lib/views/welcome.art +1 -1
- package/package.json +50 -21
- package/lib/routes/cna/index.js +0 -54
- package/lib/routes/cyzone/author.js +0 -55
- package/lib/routes/cyzone/label.js +0 -53
- package/lib/routes/discuz/discuz.js +0 -148
- package/lib/routes/dribbble/utils.js +0 -94
- package/lib/routes/growincity/news.js +0 -49
- package/lib/routes/grubstreet/utils.js +0 -78
- package/lib/routes/kkj/news.js +0 -52
- package/lib/routes/mail/imap.js +0 -79
- package/lib/routes/niaogebiji/cat.js +0 -86
- package/lib/routes/niaogebiji/index.js +0 -40
- package/lib/routes/niaogebiji/today.js +0 -29
- package/lib/routes/npc/index.js +0 -42
- package/lib/routes/pornhub/category.js +0 -22
- package/lib/routes/pornhub/category_url.js +0 -34
- package/lib/routes/pornhub/model.js +0 -35
- package/lib/routes/pornhub/pornstar.js +0 -35
- package/lib/routes/pornhub/search.js +0 -22
- package/lib/routes/pornhub/users.js +0 -35
- package/lib/routes/universities/nwafu/54youth.js +0 -28
- package/lib/routes/universities/nwafu/cie.js +0 -28
- package/lib/routes/universities/nwafu/gs.js +0 -28
- package/lib/routes/universities/nwafu/jcc.js +0 -28
- package/lib/routes/universities/nwafu/jiaowu.js +0 -28
- package/lib/routes/universities/nwafu/lib.js +0 -28
- package/lib/routes/universities/nwafu/news.js +0 -28
- package/lib/routes/universities/nwafu/nic.js +0 -28
- package/lib/routes/universities/nwafu/yjshy.js +0 -28
- package/lib/routes/universities/whu/cs.js +0 -38
- package/lib/routes/universities/whu/news.js +0 -128
- package/lib/routes/v2ex/post.js +0 -39
- package/lib/routes/x-mol/news.js +0 -48
- package/lib/routes/x-mol/paper.js +0 -78
- package/lib/routes/x-mol/utils.js +0 -16
- package/lib/v2/abskoop/templates/description.art +0 -3
- package/lib/v2/appstore/update.js +0 -37
- package/lib/v2/hrbeu/uae/list.js +0 -57
- package/lib/v2/liulinblog/itnews.js +0 -23
- package/lib/v2/liulinblog/kuaixun.js +0 -17
- package/lib/v2/liulinblog/utils.js +0 -42
- package/lib/v2/newzmz/view.js +0 -57
- package/lib/v2/scitation/radar.js +0 -19
- package/lib/v2/scitation/router.js +0 -4
- package/lib/v2/scitation/section.js +0 -76
- /package/lib/v2/{scitation → aip}/templates/description.art +0 -0
- /package/lib/v2/{scitation → aip}/utils.js +0 -0
- /package/lib/{routes → v2}/bbc/utils.js +0 -0
- /package/lib/{routes → v2}/dribbble/keyword.js +0 -0
- /package/lib/{routes → v2}/dribbble/popular.js +0 -0
- /package/lib/{routes → v2}/dribbble/user.js +0 -0
- /package/lib/{routes → v2}/grubstreet/index.js +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://docs.rsshub.app/logo.png" alt="RSSHub" width="100">
|
|
2
|
+
<img src="https://docs.rsshub.app/img/logo.png" alt="RSSHub" width="100">
|
|
3
3
|
</p>
|
|
4
4
|
<h1 align="center">RSSHub</h1>
|
|
5
5
|
|
|
@@ -21,15 +21,9 @@ RSSHub delivers millions of contents aggregated from all kinds of sources, our v
|
|
|
21
21
|
|
|
22
22
|
RSSHub can be used with browser extension [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) and mobile auxiliary app [RSSBud](https://github.com/Cay-Zhang/RSSBud) (iOS) and [RSSAid](https://github.com/LeetaoGoooo/RSSAid) (Android)
|
|
23
23
|
|
|
24
|
-
[English docs](https://docs.rsshub.app
|
|
24
|
+
[English docs](https://docs.rsshub.app) | [Telegram Group](https://t.me/rsshub) | [Telegram Channel](https://t.me/awesomeRSSHub)
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源。RSSHub 借助于开源社区的力量快速发展中,目前已适配数百家网站的上千项内容
|
|
29
|
-
|
|
30
|
-
可以配合浏览器扩展 [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) 和 移动端辅助 App [RSSBud](https://github.com/Cay-Zhang/RSSBud) (iOS) 与 [RSSAid](https://github.com/LeetaoGoooo/RSSAid) (Android) 食用
|
|
31
|
-
|
|
32
|
-
[中文文档](https://docs.rsshub.app) | [Telegram 群](https://t.me/rsshub) | [Telegram 频道](https://t.me/awesomeRSSHub)
|
|
26
|
+
[中文文档](https://docs.rsshub.app/zh/) | [Telegram 群](https://t.me/rsshub) | [Telegram 频道](https://t.me/awesomeRSSHub)
|
|
33
27
|
|
|
34
28
|
## Special Thanks
|
|
35
29
|
|
|
@@ -39,7 +33,7 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
|
|
|
39
33
|
<a href="https://xlog.app/" target="_blank"><img height="100px" src="https://i.imgur.com/JuhHTKD.png"></a>
|
|
40
34
|
</p>
|
|
41
35
|
|
|
42
|
-
[](https://docs.rsshub.app/
|
|
36
|
+
[](https://docs.rsshub.app/support/)
|
|
43
37
|
|
|
44
38
|
### Contributors
|
|
45
39
|
|
|
@@ -53,30 +47,24 @@ Logo designer [sheldonrrr](https://dribbble.com/sheldonrrr)
|
|
|
53
47
|
|
|
54
48
|
## Related Projects
|
|
55
49
|
|
|
56
|
-
- [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) |
|
|
57
|
-
- [RSSBud](https://github.com/Cay-Zhang/RSSBud) ([TestFlight
|
|
58
|
-
- [RSSAid](https://github.com/LeetaoGoooo/RSSAid)
|
|
50
|
+
- [RSSHub Radar](https://github.com/DIYgod/RSSHub-Radar) | A browser extension that can help you quickly discover and subscribe to the RSS and RSSHub of current websites.
|
|
51
|
+
- [RSSBud](https://github.com/Cay-Zhang/RSSBud) ([TestFlight](https://testflight.apple.com/join/rjCVzzHP)) | RSSHub Radar for iOS platform, designed specifically for mobile ecosystem optimization.
|
|
52
|
+
- [RSSAid](https://github.com/LeetaoGoooo/RSSAid) | RSSHub Radar for Android platform built with Flutter.
|
|
59
53
|
- [DocSearch](https://github.com/Fatpandac/DocSearch) | Link RSSHub DocSearch into Raycast
|
|
60
54
|
|
|
61
55
|
## Join Us
|
|
62
56
|
|
|
63
57
|
We welcome all pull requests. Suggestions and feedback are also welcomed [here](https://github.com/DIYgod/RSSHub/issues).
|
|
64
58
|
|
|
65
|
-
Refer to [Join Us](https://docs.rsshub.app/
|
|
66
|
-
|
|
67
|
-
见 [参与我们](https://docs.rsshub.app/joinus/quick-start)
|
|
59
|
+
Refer to [Join Us](https://docs.rsshub.app/joinus/quick-start)
|
|
68
60
|
|
|
69
61
|
## Deployment
|
|
70
62
|
|
|
71
|
-
Refer to [Deployment](https://docs.rsshub.app/
|
|
72
|
-
|
|
73
|
-
见 [部署](https://docs.rsshub.app/install/)
|
|
63
|
+
Refer to [Deployment](https://docs.rsshub.app/install/)
|
|
74
64
|
|
|
75
65
|
## Support RSSHub
|
|
76
66
|
|
|
77
|
-
Refer to [Support RSSHub](https://docs.rsshub.app/
|
|
78
|
-
|
|
79
|
-
见 [支持 RSSHub](https://docs.rsshub.app/support/)
|
|
67
|
+
Refer to [Support RSSHub](https://docs.rsshub.app/support/)
|
|
80
68
|
|
|
81
69
|
RSSHub is open source and completely free under the MIT license. However, just like any other open source project, as the project grows, the hosting, development and maintenance requires funding support.
|
|
82
70
|
|
|
@@ -87,8 +75,8 @@ You can support RSSHub via donations.
|
|
|
87
75
|
Recurring donors will be rewarded via express issue response, or even have your name displayed on our GitHub page and website.
|
|
88
76
|
|
|
89
77
|
- Become a Sponser on [GitHub](https://github.com/sponsors/DIYgod)
|
|
90
|
-
- Become a Sponser on [Open Collective](https://opencollective.com/RSSHub)
|
|
91
78
|
- Become a Sponser on [Patreon](https://www.patreon.com/DIYgod)
|
|
79
|
+
- Become a Sponser on [Open Collective](https://opencollective.com/RSSHub)
|
|
92
80
|
- Become a Sponser on [爱发电](https://afdian.net/@diygod)
|
|
93
81
|
- Contact us directly: i@diygod.me
|
|
94
82
|
|
package/lib/app.js
CHANGED
|
@@ -37,8 +37,8 @@ const app = new Koa();
|
|
|
37
37
|
app.proxy = true;
|
|
38
38
|
|
|
39
39
|
// favicon
|
|
40
|
-
app.use(favicon(__dirname + '/favicon.png'));
|
|
41
|
-
app.use(serve(__dirname + '/static'));
|
|
40
|
+
app.use(favicon(__dirname + '/favicon.png', { maxAge: 31536000000 }));
|
|
41
|
+
app.use(serve(__dirname + '/static', { maxage: 31536000000 }));
|
|
42
42
|
|
|
43
43
|
// global error handing
|
|
44
44
|
app.use(onerror);
|
package/lib/config.js
CHANGED
|
@@ -10,6 +10,7 @@ const calculateValue = () => {
|
|
|
10
10
|
const email_config = {};
|
|
11
11
|
const discuz_cookies = {};
|
|
12
12
|
const medium_cookies = {};
|
|
13
|
+
const discourse_config = {};
|
|
13
14
|
|
|
14
15
|
for (const name in envs) {
|
|
15
16
|
if (name.startsWith('BILIBILI_COOKIE_')) {
|
|
@@ -27,6 +28,9 @@ const calculateValue = () => {
|
|
|
27
28
|
} else if (name.startsWith('MEDIUM_COOKIE_')) {
|
|
28
29
|
const username = name.slice(14).toLowerCase();
|
|
29
30
|
medium_cookies[username] = envs[name];
|
|
31
|
+
} else if (name.startsWith('DISCOURSE_CONFIG_')) {
|
|
32
|
+
const id = name.slice('DISCOURSE_CONFIG_'.length);
|
|
33
|
+
discourse_config[id] = JSON.parse(envs[name]);
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
|
|
@@ -90,6 +94,7 @@ const calculateValue = () => {
|
|
|
90
94
|
debugInfo: envs.DEBUG_INFO || 'true',
|
|
91
95
|
loggerLevel: envs.LOGGER_LEVEL || 'info',
|
|
92
96
|
noLogfiles: envs.NO_LOGFILES,
|
|
97
|
+
showLoggerTimestamp: envs.SHOW_LOGGER_TIMESTAMP,
|
|
93
98
|
sentry: {
|
|
94
99
|
dsn: envs.SENTRY,
|
|
95
100
|
routeTimeout: parseInt(envs.SENTRY_ROUTE_TIMEOUT) || 30000,
|
|
@@ -136,6 +141,9 @@ const calculateValue = () => {
|
|
|
136
141
|
discord: {
|
|
137
142
|
authorization: envs.DISCORD_AUTHORIZATION,
|
|
138
143
|
},
|
|
144
|
+
discourse: {
|
|
145
|
+
config: discourse_config,
|
|
146
|
+
},
|
|
139
147
|
discuz: {
|
|
140
148
|
cookies: discuz_cookies,
|
|
141
149
|
},
|
|
@@ -247,7 +255,7 @@ const calculateValue = () => {
|
|
|
247
255
|
},
|
|
248
256
|
pixiv: {
|
|
249
257
|
refreshToken: envs.PIXIV_REFRESHTOKEN,
|
|
250
|
-
bypassCdn: envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
|
|
258
|
+
bypassCdn: envs.PIXIV_BYPASS_CDN && envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
|
|
251
259
|
bypassCdnHostname: envs.PIXIV_BYPASS_HOSTNAME || 'public-api.secure.pixiv.net',
|
|
252
260
|
bypassCdnDoh: envs.PIXIV_BYPASS_DOH || 'https://1.1.1.1/dns-query',
|
|
253
261
|
imgProxy: envs.PIXIV_IMG_PROXY || 'https://i.pixiv.re',
|
|
@@ -275,6 +283,9 @@ const calculateValue = () => {
|
|
|
275
283
|
telegram: {
|
|
276
284
|
token: envs.TELEGRAM_TOKEN,
|
|
277
285
|
},
|
|
286
|
+
tophub: {
|
|
287
|
+
cookie: envs.TOPHUB_COOKIE,
|
|
288
|
+
},
|
|
278
289
|
twitter: {
|
|
279
290
|
consumer_key: envs.TWITTER_CONSUMER_KEY,
|
|
280
291
|
consumer_secret: envs.TWITTER_CONSUMER_SECRET,
|
package/lib/index.js
CHANGED
|
@@ -29,7 +29,7 @@ if (config.enableCluster && cluster.isMaster && process.env.NODE_ENV !== 'test'
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
logger.info('🎉 RSSHub start! Cheers!');
|
|
32
|
-
logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/
|
|
32
|
+
logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/support');
|
|
33
33
|
|
|
34
34
|
module.exports = server;
|
|
35
35
|
}
|
|
@@ -98,8 +98,8 @@ const validateTemplate = (template) => {
|
|
|
98
98
|
module.exports = async (ctx, next) => {
|
|
99
99
|
await next();
|
|
100
100
|
|
|
101
|
-
let image_hotlink_template
|
|
102
|
-
let multimedia_hotlink_template
|
|
101
|
+
let image_hotlink_template;
|
|
102
|
+
let multimedia_hotlink_template;
|
|
103
103
|
const shouldWrapInIframe = ctx.query.wrap_multimedia_in_iframe === '1';
|
|
104
104
|
|
|
105
105
|
// Read params if enabled
|
|
@@ -3,8 +3,7 @@ const cheerio = require('cheerio');
|
|
|
3
3
|
const { simplecc } = require('simplecc-wasm');
|
|
4
4
|
const got = require('@/utils/got');
|
|
5
5
|
const config = require('@/config').value;
|
|
6
|
-
const {
|
|
7
|
-
const { resolve } = require('path');
|
|
6
|
+
const { RE2JS } = require('re2js');
|
|
8
7
|
|
|
9
8
|
let mercury_parser;
|
|
10
9
|
|
|
@@ -28,17 +27,6 @@ module.exports = async (ctx, next) => {
|
|
|
28
27
|
await next();
|
|
29
28
|
|
|
30
29
|
if (!ctx.state.data && !ctx._matchedRoute) {
|
|
31
|
-
// Given that the official demo has a cache TTL of 2h, a "wrong path" page will be cached by CloudFlare for
|
|
32
|
-
// 200h (8.33d).
|
|
33
|
-
// What makes it worse is that the documentation contains status badges to detect the availability of routes,
|
|
34
|
-
// but the documentation is updated more timely than the official demo, so the every example path of every
|
|
35
|
-
// new route will probably have a "wrong path" page cached for at least 200h soon after accepted. That is to
|
|
36
|
-
// say, the example paths of a new route will probably be unavailable on the public demo in the first 200h
|
|
37
|
-
// after accepted.
|
|
38
|
-
// As a conclusion, the next 3 lines has been commented out. (exactly the same behavior as any internal error)
|
|
39
|
-
// ctx.set({
|
|
40
|
-
// 'Cache-Control': `public, max-age=${config.cache.routeExpire * 100}`,
|
|
41
|
-
// });
|
|
42
30
|
throw Error('wrong path');
|
|
43
31
|
}
|
|
44
32
|
|
|
@@ -160,41 +148,37 @@ module.exports = async (ctx, next) => {
|
|
|
160
148
|
}
|
|
161
149
|
|
|
162
150
|
// filter
|
|
151
|
+
const engine = config.feature.filter_regex_engine;
|
|
163
152
|
const makeRegex = (string) => {
|
|
153
|
+
if (!string) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
164
156
|
// default: case_senstivie = true
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
|
|
174
|
-
}
|
|
175
|
-
} else {
|
|
176
|
-
switch (engine) {
|
|
177
|
-
case 'regexp':
|
|
178
|
-
return new RegExp(string);
|
|
179
|
-
case 're2':
|
|
180
|
-
return new RE2(string, 'u');
|
|
181
|
-
default:
|
|
182
|
-
throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
|
|
183
|
-
}
|
|
157
|
+
const insensitive = ctx.query.filter_case_sensitive === 'false';
|
|
158
|
+
switch (engine) {
|
|
159
|
+
case 'regexp':
|
|
160
|
+
return new RegExp(string, insensitive ? 'i' : '');
|
|
161
|
+
case 're2':
|
|
162
|
+
return RE2JS.compile(string, insensitive ? RE2JS.CASE_INSENSITIVE : 0);
|
|
163
|
+
default:
|
|
164
|
+
throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
|
|
184
165
|
}
|
|
185
166
|
};
|
|
186
167
|
|
|
187
168
|
if (ctx.query.filter) {
|
|
188
|
-
|
|
189
|
-
resolve('node_modules/re2-wasm/build/wasm/re2.wasm');
|
|
169
|
+
const regex = makeRegex(ctx.query.filter);
|
|
190
170
|
|
|
191
171
|
ctx.state.data.item = ctx.state.data.item.filter((item) => {
|
|
192
172
|
const title = item.title || '';
|
|
193
173
|
const description = item.description || title;
|
|
194
174
|
const author = item.author || '';
|
|
195
|
-
const
|
|
175
|
+
const categoryArray = Array.isArray(item.category) ? item.category : [item.category];
|
|
176
|
+
const category = item.category ? categoryArray : [];
|
|
196
177
|
const isFilter =
|
|
197
|
-
|
|
178
|
+
engine === 're2'
|
|
179
|
+
? regex.matcher(title).find() || regex.matcher(description).find() || regex.matcher(author).find() || category.some((c) => regex.matcher(c).find())
|
|
180
|
+
: title.match(regex) || description.match(regex) || author.match(regex) || category.some((c) => c.match(regex));
|
|
181
|
+
|
|
198
182
|
return isFilter;
|
|
199
183
|
});
|
|
200
184
|
}
|
|
@@ -205,12 +189,20 @@ module.exports = async (ctx, next) => {
|
|
|
205
189
|
const title = item.title || '';
|
|
206
190
|
const description = item.description || title;
|
|
207
191
|
const author = item.author || '';
|
|
208
|
-
const
|
|
192
|
+
const categoryArray = Array.isArray(item.category) ? item.category : [item.category];
|
|
193
|
+
const category = item.category ? categoryArray : [];
|
|
209
194
|
let isFilter = true;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
195
|
+
|
|
196
|
+
const titleRegex = makeRegex(ctx.query.filter_title);
|
|
197
|
+
const descriptionRegex = makeRegex(ctx.query.filter_description);
|
|
198
|
+
const authorRegex = makeRegex(ctx.query.filter_author);
|
|
199
|
+
const categoryRegex = makeRegex(ctx.query.filter_category);
|
|
200
|
+
|
|
201
|
+
ctx.query.filter_title && (isFilter = engine === 're2' ? titleRegex.matcher(title).find() : title.match(titleRegex));
|
|
202
|
+
ctx.query.filter_description && (isFilter = isFilter && (engine === 're2' ? descriptionRegex.matcher(description).find() : description.match(descriptionRegex)));
|
|
203
|
+
ctx.query.filter_author && (isFilter = isFilter && (engine === 're2' ? authorRegex.matcher(author).find() : author.match(authorRegex)));
|
|
204
|
+
ctx.query.filter_category && (isFilter = isFilter && category.some((c) => (engine === 're2' ? categoryRegex.matcher(c).find() : c.match(categoryRegex))));
|
|
205
|
+
|
|
214
206
|
return isFilter;
|
|
215
207
|
});
|
|
216
208
|
}
|
|
@@ -224,12 +216,20 @@ module.exports = async (ctx, next) => {
|
|
|
224
216
|
const title = item.title;
|
|
225
217
|
const description = item.description || title;
|
|
226
218
|
const author = item.author || '';
|
|
227
|
-
const
|
|
219
|
+
const categoryArray = Array.isArray(item.category) ? item.category : [item.category];
|
|
220
|
+
const category = item.category ? categoryArray : [];
|
|
228
221
|
let isFilter = true;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
222
|
+
|
|
223
|
+
const titleRegex = makeRegex(ctx.query.filterout_title);
|
|
224
|
+
const descriptionRegex = makeRegex(ctx.query.filterout_description);
|
|
225
|
+
const authorRegex = makeRegex(ctx.query.filterout_author);
|
|
226
|
+
const categoryRegex = makeRegex(ctx.query.filterout_category);
|
|
227
|
+
|
|
228
|
+
ctx.query.filterout_title && (isFilter = engine === 're2' ? !titleRegex.matcher(title).find() : !title.match(titleRegex));
|
|
229
|
+
ctx.query.filterout_description && (isFilter = isFilter && (engine === 're2' ? !descriptionRegex.matcher(description).find() : !description.match(descriptionRegex)));
|
|
230
|
+
ctx.query.filterout_author && (isFilter = isFilter && (engine === 're2' ? !authorRegex.matcher(author).find() : !author.match(authorRegex)));
|
|
231
|
+
ctx.query.filterout_category && (isFilter = isFilter && !category.some((c) => (engine === 're2' ? categoryRegex.matcher(c).find() : c.match(categoryRegex))));
|
|
232
|
+
|
|
233
233
|
return isFilter;
|
|
234
234
|
});
|
|
235
235
|
}
|
|
@@ -308,7 +308,7 @@ module.exports = async (ctx, next) => {
|
|
|
308
308
|
if (item.description) {
|
|
309
309
|
text = item.description.replace(/<\/?[^>]+(>|$)/g, '');
|
|
310
310
|
}
|
|
311
|
-
if (text
|
|
311
|
+
if (text?.length) {
|
|
312
312
|
if (text.length > ctx.query.brief) {
|
|
313
313
|
item.description = `<p>${text.substring(0, ctx.query.brief)}…</p>`;
|
|
314
314
|
} else {
|
package/lib/radar-rules.js
CHANGED
|
@@ -264,7 +264,7 @@ module.exports = {
|
|
|
264
264
|
www: [
|
|
265
265
|
{
|
|
266
266
|
title: 'ads',
|
|
267
|
-
docs: 'https://docs.rsshub.app/routes/
|
|
267
|
+
docs: 'https://docs.rsshub.app/routes/shopping#leboncoin',
|
|
268
268
|
source: '/recherche',
|
|
269
269
|
target: (params, url) => '/leboncoin/ad/' + url.split('?')[1],
|
|
270
270
|
},
|
|
@@ -565,23 +565,6 @@ module.exports = {
|
|
|
565
565
|
},
|
|
566
566
|
],
|
|
567
567
|
},
|
|
568
|
-
'japanpost.jp': {
|
|
569
|
-
_name: '日本郵便',
|
|
570
|
-
'trackings.post': [
|
|
571
|
-
{
|
|
572
|
-
title: '郵便・荷物の追跡',
|
|
573
|
-
docs: 'https://docs.rsshub.app/routes/other#ri-ben-you-bian-you-bian-zhui-ji-サービス',
|
|
574
|
-
source: '/services/srv/search/direct',
|
|
575
|
-
target: (params, url) => {
|
|
576
|
-
const reqCode = new URL(url).searchParams.get('reqCodeNo1').toUpperCase();
|
|
577
|
-
const locale = new URL(url).searchParams.get('locale').toLowerCase();
|
|
578
|
-
if ((reqCode.search(/^(?:\d{11,12}|[A-Z]{2}\d{9}[A-Z]{2})$/) === 0 && locale === 'ja') || locale === 'en') {
|
|
579
|
-
return `/japanpost/track/${reqCode}/${locale}`;
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
},
|
|
583
|
-
],
|
|
584
|
-
},
|
|
585
568
|
'csc.edu.cn': {
|
|
586
569
|
_name: '国家留学网',
|
|
587
570
|
www: [
|
|
@@ -673,7 +656,7 @@ module.exports = {
|
|
|
673
656
|
www: [
|
|
674
657
|
{
|
|
675
658
|
title: '新闻中心',
|
|
676
|
-
docs: 'http://docs.rsshub.app/university
|
|
659
|
+
docs: 'http://docs.rsshub.app/university#hu-bei-gong-ye-da-xue',
|
|
677
660
|
source: '/xwzx/:name',
|
|
678
661
|
target: (params) => {
|
|
679
662
|
const type = params.name.replace('.htm', '');
|
|
@@ -684,31 +667,31 @@ module.exports = {
|
|
|
684
667
|
jsjxy: [
|
|
685
668
|
{
|
|
686
669
|
title: '新闻动态',
|
|
687
|
-
docs: 'http://docs.rsshub.app/university
|
|
670
|
+
docs: 'http://docs.rsshub.app/routes/university#hu-bei-gong-ye-da-xue',
|
|
688
671
|
source: '/index/xwdt.htm',
|
|
689
672
|
target: '/hbut/cs/xwdt',
|
|
690
673
|
},
|
|
691
674
|
{
|
|
692
675
|
title: '通知公告',
|
|
693
|
-
docs: 'http://docs.rsshub.app/university
|
|
676
|
+
docs: 'http://docs.rsshub.app/routes/university#hu-bei-gong-ye-da-xue',
|
|
694
677
|
source: '/index/tzgg.htm',
|
|
695
678
|
target: '/hbut/cs/tzgg',
|
|
696
679
|
},
|
|
697
680
|
{
|
|
698
681
|
title: '教学信息',
|
|
699
|
-
docs: 'http://docs.rsshub.app/university
|
|
682
|
+
docs: 'http://docs.rsshub.app/routes/university#hu-bei-gong-ye-da-xue',
|
|
700
683
|
source: '/jxxx.htm',
|
|
701
684
|
target: '/hbut/cs/jxxx',
|
|
702
685
|
},
|
|
703
686
|
{
|
|
704
687
|
title: '科研动态',
|
|
705
|
-
docs: 'http://docs.rsshub.app/university
|
|
688
|
+
docs: 'http://docs.rsshub.app/routes/university#hu-bei-gong-ye-da-xue',
|
|
706
689
|
source: '/kxyj/kydt.htm',
|
|
707
690
|
target: '/hbut/cs/kydt',
|
|
708
691
|
},
|
|
709
692
|
{
|
|
710
693
|
title: '党建活动',
|
|
711
|
-
docs: 'http://docs.rsshub.app/university
|
|
694
|
+
docs: 'http://docs.rsshub.app/routes/university#hu-bei-gong-ye-da-xue',
|
|
712
695
|
source: '/djhd/djhd.htm',
|
|
713
696
|
target: '/hbut/cs/djhd',
|
|
714
697
|
},
|
|
@@ -817,13 +800,13 @@ module.exports = {
|
|
|
817
800
|
ece: [
|
|
818
801
|
{
|
|
819
802
|
title: 'ECE News',
|
|
820
|
-
docs: 'http://docs.rsshub.app/
|
|
803
|
+
docs: 'http://docs.rsshub.app/routes/university#umass-amherst',
|
|
821
804
|
source: '/news',
|
|
822
805
|
target: '/umass/amherst/ecenews',
|
|
823
806
|
},
|
|
824
807
|
{
|
|
825
808
|
title: 'ECE Seminar',
|
|
826
|
-
docs: 'http://docs.rsshub.app/
|
|
809
|
+
docs: 'http://docs.rsshub.app/routes/university#umass-amherst',
|
|
827
810
|
source: '/seminars',
|
|
828
811
|
target: '/umass/amherst/eceseminar',
|
|
829
812
|
},
|
|
@@ -831,7 +814,7 @@ module.exports = {
|
|
|
831
814
|
'www.cics': [
|
|
832
815
|
{
|
|
833
816
|
title: 'CICS News',
|
|
834
|
-
docs: 'http://docs.rsshub.app/
|
|
817
|
+
docs: 'http://docs.rsshub.app/routes/university#umass-amherst',
|
|
835
818
|
source: '/news',
|
|
836
819
|
target: '/umass/amherst/csnews',
|
|
837
820
|
},
|
|
@@ -839,13 +822,13 @@ module.exports = {
|
|
|
839
822
|
www: [
|
|
840
823
|
{
|
|
841
824
|
title: 'IPO Events',
|
|
842
|
-
docs: 'http://docs.rsshub.app/
|
|
825
|
+
docs: 'http://docs.rsshub.app/routes/university#umass-amherst',
|
|
843
826
|
source: '/ipo/iss/events',
|
|
844
827
|
target: '/umass/amherst/ipoevents',
|
|
845
828
|
},
|
|
846
829
|
{
|
|
847
830
|
title: 'IPO Featured Stories',
|
|
848
|
-
docs: 'http://docs.rsshub.app/
|
|
831
|
+
docs: 'http://docs.rsshub.app/routes/university#umass-amherst',
|
|
849
832
|
source: '/ipo/iss/featured-stories',
|
|
850
833
|
target: '/umass/amherst/ipostories',
|
|
851
834
|
},
|
|
@@ -962,7 +945,7 @@ module.exports = {
|
|
|
962
945
|
'.': [
|
|
963
946
|
{
|
|
964
947
|
title: '不安全资讯',
|
|
965
|
-
docs: 'http://docs.rsshub.app/new-media
|
|
948
|
+
docs: 'http://docs.rsshub.app/routes/new-media#bu-an-quan',
|
|
966
949
|
source: '/',
|
|
967
950
|
target: '/buaq',
|
|
968
951
|
},
|
package/lib/radar.js
CHANGED
|
@@ -3,7 +3,8 @@ const fs = require('fs');
|
|
|
3
3
|
const toSource = require('tosource');
|
|
4
4
|
const { join } = require('path');
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// Namespaces that do not require radar.js
|
|
7
|
+
const allowNamespace = ['discourse', 'discuz', 'ehentai', 'lemmy', 'mail', 'test'];
|
|
7
8
|
// Check if a radar.js file is exist under each folder of dirname
|
|
8
9
|
for (const dir of fs.readdirSync(dirname)) {
|
|
9
10
|
const dirPath = join(dirname, dir);
|