rsshub 1.0.0-master.c406f86 → 1.0.0-master.c41375a
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 +13 -25
- package/lib/app.js +2 -2
- package/lib/config.js +43 -11
- package/lib/index.js +1 -1
- package/lib/maintainer.js +7 -2
- package/lib/middleware/access-control.js +5 -5
- package/lib/middleware/anti-hotlink.js +2 -2
- package/lib/middleware/cache/index.js +4 -3
- package/lib/middleware/cache/redis.js +3 -3
- package/lib/middleware/onerror.js +8 -0
- package/lib/middleware/parameter.js +107 -52
- package/lib/middleware/template.js +79 -85
- package/lib/radar-rules.js +13 -30
- package/lib/radar.js +2 -1
- package/lib/router.js +52 -66
- package/lib/routes/index.js +6 -13
- package/lib/routes/miniflux/get_feeds.js +2 -2
- package/lib/routes/universities/ynnu/edu/news.js +3 -3
- package/lib/utils/logger.js +14 -2
- package/lib/utils/rand-user-agent.js +3 -2
- package/lib/utils/render.js +2 -0
- package/lib/v2/141ppv/index.js +4 -1
- package/lib/v2/1point3acres/maintainer.js +2 -2
- package/lib/v2/2048/index.js +28 -15
- 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/95mm/utils.js +3 -2
- package/lib/v2/abc/index.js +162 -0
- package/lib/v2/abc/maintainer.js +3 -0
- package/lib/v2/abc/radar.js +13 -0
- package/lib/v2/abc/router.js +3 -0
- package/lib/v2/abc/templates/description.art +21 -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/aliyun/notice.js +1 -1
- package/lib/v2/aljazeera/index.js +1 -1
- 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/amazon/maintainer.js +1 -1
- package/lib/v2/apnews/topics.js +3 -1
- package/lib/v2/apple/apps.js +107 -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/arcteryx/maintainer.js +3 -3
- package/lib/v2/asiantolick/index.js +73 -27
- package/lib/v2/asiantolick/maintainer.js +5 -3
- package/lib/v2/asiantolick/radar.js +34 -12
- package/lib/v2/asiantolick/router.js +2 -2
- package/lib/v2/asiantolick/templates/description.art +9 -3
- 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 +3 -0
- package/lib/v2/bangumi/radar.js +21 -9
- package/lib/v2/bangumi/router.js +3 -2
- package/lib/v2/bangumi/tv/other/followrank.js +42 -0
- 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/v2/bangumi/tv/user/wish.js +38 -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/bellroy/maintainer.js +1 -1
- package/lib/v2/bilibili/article.js +2 -17
- package/lib/v2/bilibili/cache.js +88 -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 +4 -2
- package/lib/v2/bilibili/platform.js +43 -0
- package/lib/v2/bilibili/radar.js +8 -0
- package/lib/v2/bilibili/router.js +4 -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 +16 -7
- 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/bnu/dwxgb.js +17 -22
- 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/bossdesign/index.js +41 -0
- package/lib/v2/bossdesign/maintainer.js +3 -0
- package/lib/v2/bossdesign/radar.js +13 -0
- package/lib/v2/bossdesign/router.js +3 -0
- package/lib/v2/brave/latest.js +4 -2
- package/lib/v2/buaa/maintainer.js +4 -0
- package/lib/v2/buaa/news/index.js +46 -0
- package/lib/v2/buaa/radar.js +21 -0
- package/lib/v2/buaa/router.js +4 -0
- package/lib/v2/buaa/sme.js +59 -0
- package/lib/v2/bytes/maintainer.js +0 -1
- package/lib/v2/caixin/blog.js +68 -45
- package/lib/v2/caixin/latest.js +7 -12
- package/lib/v2/caixin/radar.js +1 -1
- package/lib/v2/caixin/router.js +1 -1
- package/lib/v2/caixinglobal/latest.js +64 -0
- package/lib/v2/caixinglobal/maintainer.js +3 -0
- package/lib/v2/caixinglobal/radar.js +13 -0
- package/lib/v2/caixinglobal/router.js +3 -0
- 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 +13 -26
- package/lib/v2/cfachina/analygarden.js +60 -0
- package/lib/v2/cfachina/maintainer.js +3 -0
- package/lib/v2/cfachina/radar.js +13 -0
- package/lib/v2/cfachina/router.js +3 -0
- package/lib/v2/china/finance/finance.js +61 -0
- package/lib/v2/china/maintainer.js +1 -0
- package/lib/v2/china/news/military/news.js +5 -6
- package/lib/v2/china/radar.js +9 -0
- package/lib/v2/china/router.js +1 -0
- package/lib/v2/chinafactcheck/index.js +20 -21
- package/lib/v2/chinafactcheck/utils.js +16 -16
- package/lib/v2/chinaisa/index.js +83 -0
- package/lib/v2/chinaisa/maintainer.js +3 -0
- package/lib/v2/chinaisa/radar.js +18 -0
- package/lib/v2/chinaisa/router.js +3 -0
- 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/cma/channel.js +87 -0
- package/lib/v2/cma/maintainer.js +3 -0
- package/lib/v2/cma/radar.js +18 -0
- package/lib/v2/cma/router.js +3 -0
- package/lib/v2/cma/templates/description.art +13 -0
- package/lib/v2/cmpxchg8b/articles.js +43 -0
- package/lib/v2/cmpxchg8b/maintainer.js +3 -0
- package/lib/v2/cmpxchg8b/radar.js +13 -0
- package/lib/v2/cmpxchg8b/router.js +3 -0
- package/lib/v2/cna/index.js +64 -0
- package/lib/v2/cna/maintainer.js +4 -0
- package/lib/v2/cna/radar.js +19 -0
- package/lib/v2/cna/router.js +4 -0
- package/lib/{routes/cna → v2/cna/web}/index.js +18 -10
- package/lib/v2/cnbeta/type.js +15 -9
- package/lib/v2/cnbeta/utils.js +3 -0
- package/lib/v2/cqwu/index.js +11 -8
- package/lib/v2/cqwu/radar.js +2 -2
- package/lib/v2/creative-comic/book.js +40 -34
- package/lib/v2/creative-comic/utils.js +1 -2
- package/lib/v2/cste/radar.js +1 -1
- 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/dahecube/radar.js +40 -4
- package/lib/v2/deadline/maintainer.js +0 -1
- 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/dlsite/ci-en/article.js +1 -1
- 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/dongqiudi/special.js +13 -21
- package/lib/v2/dongqiudi/utils.js +26 -2
- package/lib/v2/dorohedoro/news.js +3 -1
- package/lib/v2/douban/maintainer.js +4 -2
- package/lib/v2/douban/other/discussion.js +58 -0
- package/lib/v2/douban/other/doulist.js +9 -7
- package/lib/v2/douban/other/list.js +28 -19
- package/lib/v2/douban/other/recommended.js +68 -0
- package/lib/v2/douban/people/status.js +1 -1
- package/lib/v2/douban/radar.js +8 -0
- package/lib/v2/douban/router.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/dut/defaults.js +4 -0
- package/lib/v2/dut/index.js +21 -9
- package/lib/v2/dut/maintainer.js +8 -7
- package/lib/v2/dut/radar.js +37 -29
- package/lib/v2/dut/shortcuts.js +5 -0
- package/lib/v2/economist/full.js +4 -2
- package/lib/v2/egsea/flash.js +30 -0
- package/lib/v2/egsea/maintainer.js +3 -0
- package/lib/v2/egsea/radar.js +13 -0
- package/lib/v2/egsea/router.js +3 -0
- package/lib/v2/ehentai/ehapi.js +3 -1
- package/lib/v2/epicgames/index.js +18 -11
- package/lib/v2/epicgames/templates/description.art +1 -0
- 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/{routes → v2}/firefox/addons.js +3 -1
- package/lib/v2/firefox/breaches.js +38 -0
- package/lib/v2/firefox/maintainer.js +2 -0
- package/lib/v2/firefox/radar.js +17 -0
- package/lib/{routes → v2}/firefox/release.js +3 -3
- package/lib/v2/firefox/router.js +3 -1
- package/lib/v2/fisher-spb/news.js +1 -2
- 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/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/fosshub/radar.js +1 -1
- package/lib/v2/ft/myft.js +9 -2
- package/lib/v2/fuliba/latest.js +25 -0
- package/lib/v2/fuliba/maintainer.js +3 -0
- package/lib/v2/fuliba/radar.js +15 -0
- package/lib/v2/fuliba/router.js +3 -0
- 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/gcores/category.js +1 -0
- package/lib/v2/gcores/radio.js +1 -0
- package/lib/v2/gdsrx/index.js +72 -0
- package/lib/v2/gdsrx/maintainer.js +3 -0
- package/lib/v2/gdsrx/radar.js +61 -0
- package/lib/v2/gdsrx/router.js +3 -0
- package/lib/v2/getitfree/index.js +42 -34
- package/lib/v2/getitfree/maintainer.js +3 -1
- package/lib/v2/getitfree/radar.js +19 -2
- package/lib/v2/getitfree/router.js +10 -2
- package/lib/v2/getitfree/util.js +326 -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/github/topic.js +26 -10
- package/lib/v2/gocn/jobs.js +14 -9
- package/lib/v2/gocn/maintainer.js +3 -1
- package/lib/v2/gocn/news.js +31 -0
- package/lib/v2/gocn/radar.js +8 -2
- package/lib/v2/gocn/router.js +3 -1
- package/lib/v2/gocn/topics.js +15 -7
- package/lib/v2/gocn/utils.js +38 -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/google/alerts.js +33 -0
- package/lib/v2/google/maintainer.js +1 -0
- package/lib/v2/google/router.js +1 -0
- package/lib/v2/gov/chongqing/gzw.js +68 -0
- package/lib/v2/gov/chongqing/sydwgkzp.js +47 -0
- package/lib/v2/gov/forestry/gjlckjdjt.js +96 -0
- package/lib/v2/gov/forestry/templates/description.art +15 -0
- package/lib/v2/gov/maintainer.js +18 -3
- package/lib/v2/gov/mem/sgcc.js +64 -0
- package/lib/v2/gov/moa/zdscxx.js +104 -0
- package/lib/v2/gov/mot/index.js +66 -0
- package/lib/v2/gov/nea/ghs.js +58 -0
- package/lib/v2/gov/nifdc/index.js +40 -33
- package/lib/v2/gov/npc/index.js +47 -0
- package/lib/v2/gov/radar.js +354 -4
- package/lib/v2/gov/router.js +18 -2
- package/lib/v2/gov/safe/business.js +8 -0
- package/lib/v2/gov/safe/complaint.js +8 -0
- package/lib/v2/gov/safe/templates/message.art +25 -0
- package/lib/v2/gov/safe/util.js +87 -0
- package/lib/v2/gov/samr/templates/description.art +26 -0
- package/lib/v2/gov/samr/xgzlyhd.js +100 -0
- package/lib/v2/gov/shenzhen/zjj/index.js +45 -0
- package/lib/v2/gov/zhejiang/gwy.js +84 -0
- package/lib/v2/gov/zhengce/index.js +99 -0
- package/lib/v2/greasyfork/maintainer.js +1 -0
- package/lib/v2/greasyfork/router.js +1 -0
- package/lib/v2/greasyfork/scripts.js +25 -20
- package/lib/v2/grist/radar.js +4 -4
- package/lib/v2/grubstreet/maintainer.js +3 -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/guangdiu/maintainer.js +1 -0
- package/lib/v2/guangdiu/radar.js +6 -0
- package/lib/v2/guangdiu/router.js +1 -0
- package/lib/v2/guangdiu/search.js +40 -0
- package/lib/v2/guanhai/maintainer.js +0 -1
- 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/{routes/universities → v2}/harvard/health/blog.js +8 -7
- package/lib/v2/harvard/maintainer.js +3 -0
- package/lib/v2/harvard/radar.js +13 -0
- package/lib/v2/harvard/router.js +3 -0
- package/lib/v2/hebtv/maintainer.js +3 -0
- package/lib/v2/hebtv/nong-bo-shi-zai-xing-dong.js +109 -0
- package/lib/v2/hebtv/radar.js +13 -0
- package/lib/v2/hebtv/router.js +3 -0
- package/lib/v2/hebtv/templates/description.art +24 -0
- package/lib/v2/hostmonit/cloudflareyes.js +91 -0
- package/lib/v2/hostmonit/maintainer.js +3 -0
- package/lib/v2/hostmonit/radar.js +17 -0
- package/lib/v2/hostmonit/router.js +8 -0
- package/lib/v2/hostmonit/templates/description.art +28 -0
- package/lib/v2/hostmonit/templates/title.art +1 -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/huxiu/briefColumn.js +13 -25
- package/lib/v2/huxiu/channel.js +28 -0
- package/lib/v2/huxiu/club.js +30 -0
- package/lib/v2/huxiu/collection.js +14 -26
- package/lib/v2/huxiu/maintainer.js +8 -5
- package/lib/v2/huxiu/member.js +27 -0
- package/lib/v2/huxiu/moment.js +11 -25
- package/lib/v2/huxiu/radar.js +24 -16
- package/lib/v2/huxiu/router.js +7 -4
- package/lib/v2/huxiu/search.js +16 -21
- package/lib/v2/huxiu/tag.js +13 -25
- package/lib/v2/huxiu/templates/description.art +46 -0
- package/lib/v2/huxiu/util.js +460 -0
- package/lib/v2/ianspriggs/index.js +90 -0
- package/lib/v2/ianspriggs/maintainer.js +3 -0
- package/lib/v2/ianspriggs/radar.js +17 -0
- package/lib/v2/ianspriggs/router.js +3 -0
- package/lib/v2/ianspriggs/templates/description.art +13 -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/ifi-audio/maintainer.js +1 -1
- package/lib/v2/imiker/jinghua.js +87 -0
- package/lib/v2/imiker/maintainer.js +3 -0
- package/lib/v2/imiker/radar.js +13 -0
- package/lib/v2/imiker/router.js +3 -0
- package/lib/v2/imiker/templates/description.art +32 -0
- package/lib/v2/inoreader/maintainer.js +1 -1
- package/lib/v2/instagram/common-utils.js +7 -4
- package/lib/v2/instagram/templates/images.art +9 -2
- package/lib/v2/instagram/templates/video.art +4 -1
- package/lib/v2/instagram/web-api/index.js +30 -9
- package/lib/v2/instagram/web-api/utils.js +149 -25
- package/lib/v2/iqilu/maintainer.js +3 -0
- package/lib/v2/iqilu/program.js +98 -0
- package/lib/v2/iqilu/radar.js +107 -0
- package/lib/v2/iqilu/router.js +3 -0
- package/lib/v2/iqilu/templates/description.art +24 -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/javbus/index.js +6 -0
- package/lib/v2/javlibrary/maintainer.js +1 -0
- package/lib/v2/javlibrary/maker.js +10 -0
- package/lib/v2/javlibrary/router.js +1 -0
- package/lib/v2/javlibrary/utils.js +1 -0
- 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/kemono/index.js +28 -4
- package/lib/v2/kemono/radar.js +1 -1
- package/lib/v2/kepu/live.js +89 -0
- package/lib/v2/kepu/maintainer.js +3 -0
- package/lib/v2/kepu/radar.js +13 -0
- package/lib/v2/kepu/router.js +3 -0
- package/lib/v2/kepu/templates/description.art +33 -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 +14 -10
- package/lib/v2/leetcode/dailyquestion-solution-cn.js +6 -3
- package/lib/v2/leetcode/dailyquestion-solution-en.js +7 -4
- package/lib/v2/leetcode/maintainer.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/lightnovel/lightNovel.js +62 -0
- package/lib/v2/lightnovel/maintainer.js +3 -0
- package/lib/v2/lightnovel/radar.js +13 -0
- package/lib/v2/lightnovel/router.js +3 -0
- package/lib/v2/line/radar.js +1 -1
- package/lib/v2/liquipedia/cs_matches.js +52 -0
- package/lib/v2/liquipedia/dota2_matches.js +47 -0
- package/lib/v2/liquipedia/maintainer.js +4 -0
- package/lib/v2/liquipedia/radar.js +19 -0
- package/lib/v2/liquipedia/router.js +4 -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/logclub/index.js +134 -0
- package/lib/v2/logclub/maintainer.js +9 -0
- package/lib/v2/logclub/radar.js +139 -0
- package/lib/v2/logclub/report.js +98 -0
- package/lib/v2/logclub/router.js +5 -0
- package/lib/v2/logclub/templates/description.art +33 -0
- 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/magazinelib/maintainer.js +1 -1
- 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/metacritic/index.js +121 -0
- package/lib/v2/metacritic/maintainer.js +5 -0
- package/lib/v2/metacritic/radar.js +43 -0
- package/lib/v2/metacritic/router.js +3 -0
- package/lib/v2/metacritic/templates/description.art +19 -0
- package/lib/v2/metacritic/util.js +42 -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 +8 -2
- package/lib/v2/mihoyo/router.js +2 -1
- package/lib/v2/missav/maintainer.js +3 -0
- package/lib/v2/missav/new.js +36 -0
- package/lib/v2/missav/radar.js +13 -0
- package/lib/v2/missav/router.js +3 -0
- package/lib/v2/missav/templates/preview.art +3 -0
- package/lib/v2/mittrchina/index.js +104 -0
- package/lib/v2/mittrchina/maintainer.js +3 -0
- package/lib/v2/mittrchina/radar.js +31 -0
- package/lib/v2/mittrchina/router.js +3 -0
- package/lib/v2/mittrchina/templates/movie.art +5 -0
- package/lib/v2/mixcloud/index.js +5 -22
- package/lib/v2/mixcloud/queries.js +187 -179
- package/lib/v2/modb/maintainer.js +3 -0
- package/lib/v2/modb/radar.js +13 -0
- package/lib/v2/modb/router.js +3 -0
- package/lib/v2/modb/topic.js +59 -0
- 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/nature/cover.js +32 -42
- package/lib/v2/nature/highlight.js +2 -2
- package/lib/v2/nature/news-and-comment.js +2 -2
- package/lib/v2/nature/news.js +2 -2
- package/lib/v2/nature/research.js +2 -2
- package/lib/v2/nature/siteindex.js +5 -5
- package/lib/v2/nature/utils.js +124 -5
- package/lib/v2/nbd/index.js +4 -1
- package/lib/v2/nbd/maintainer.js +1 -1
- package/lib/v2/nbd/radar.js +3 -3
- package/lib/v2/nbd/router.js +1 -1
- package/lib/v2/ncu/jwc.js +33 -0
- package/lib/v2/ncu/maintainer.js +3 -0
- package/lib/v2/ncu/radar.js +13 -0
- package/lib/v2/ncu/router.js +3 -0
- package/lib/v2/netflav/index.js +39 -0
- package/lib/v2/netflav/maintainer.js +3 -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 +5 -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/nmtv/radar.js +1 -1
- package/lib/v2/npr/radar.js +2 -2
- 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/oo-software/radar.js +1 -1
- package/lib/v2/oreno3d/radar.js +1 -1
- package/lib/v2/oschina/news.js +1 -0
- 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/ouc/it-tx.js +44 -0
- package/lib/v2/ouc/it.js +2 -2
- package/lib/v2/ouc/maintainer.js +2 -1
- package/lib/v2/ouc/radar.js +6 -0
- package/lib/v2/ouc/router.js +1 -0
- package/lib/v2/patagonia/maintainer.js +1 -1
- package/lib/v2/paulgraham/article.js +62 -0
- package/lib/v2/paulgraham/maintainer.js +3 -0
- package/lib/v2/paulgraham/radar.js +13 -0
- package/lib/v2/paulgraham/router.js +5 -0
- package/lib/v2/people/index.js +15 -24
- package/lib/v2/people/router.js +1 -2
- package/lib/v2/phoronix/index.js +177 -48
- package/lib/v2/phoronix/maintainer.js +1 -1
- package/lib/v2/phoronix/radar.js +3 -3
- package/lib/v2/phoronix/router.js +1 -1
- package/lib/v2/picnob/maintainer.js +1 -1
- package/lib/v2/picnob/templates/desc.art +3 -3
- package/lib/v2/picnob/user.js +74 -37
- package/lib/v2/picnob/utils.js +24 -0
- package/lib/v2/pixiv/ranking.js +1 -0
- package/lib/v2/pixiv/user.js +2 -1
- package/lib/v2/pixiv/utils.js +2 -2
- package/lib/v2/pku/cls/announcement.js +42 -0
- package/lib/v2/pku/maintainer.js +1 -0
- package/lib/v2/pku/radar.js +6 -0
- package/lib/v2/pku/router.js +1 -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/qbitai/category.js +27 -0
- package/lib/v2/qbitai/maintainer.js +4 -0
- package/lib/v2/qbitai/radar.js +19 -0
- package/lib/v2/qbitai/router.js +4 -0
- package/lib/v2/qbitai/tag.js +27 -0
- package/lib/v2/qqorw/maintainer.js +1 -1
- package/lib/v2/questmobile/maintainer.js +3 -0
- package/lib/v2/questmobile/radar.js +18 -0
- package/lib/v2/questmobile/report.js +127 -0
- package/lib/v2/questmobile/router.js +3 -0
- package/lib/v2/questmobile/templates/description.art +17 -0
- package/lib/v2/radio-canada/latest.js +8 -1
- package/lib/v2/reactnewsletter/maintainer.js +0 -1
- package/lib/v2/readhub/daily.js +43 -0
- package/lib/v2/readhub/index.js +42 -86
- package/lib/v2/readhub/maintainer.js +2 -1
- package/lib/v2/readhub/radar.js +12 -2
- package/lib/v2/readhub/router.js +2 -4
- package/lib/v2/readhub/templates/description.art +40 -0
- package/lib/v2/readhub/util.js +69 -0
- package/lib/v2/reuters/common.js +66 -27
- package/lib/v2/reuters/maintainer.js +0 -2
- package/lib/v2/reuters/router.js +0 -2
- package/lib/v2/rfi/maintainer.js +1 -1
- package/lib/v2/rfi/news.js +36 -16
- package/lib/v2/rfi/radar.js +5 -5
- package/lib/v2/rfi/router.js +1 -1
- package/lib/v2/routledge/book-series.js +78 -0
- package/lib/v2/routledge/maintainer.js +3 -0
- package/lib/v2/routledge/radar.js +13 -0
- package/lib/v2/routledge/router.js +3 -0
- package/lib/v2/routledge/templates/description.art +7 -0
- 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/runtrail/maintainer.js +0 -1
- package/lib/v2/scau/maintainer.js +1 -0
- package/lib/v2/scau/radar.js +8 -0
- package/lib/v2/scau/router.js +1 -0
- package/lib/v2/scau/yjs.js +2 -2
- package/lib/v2/scau/yjsy.js +27 -0
- package/lib/v2/science/radar.js +2 -2
- package/lib/v2/science/utils.js +4 -4
- package/lib/v2/scmp/index.js +61 -85
- package/lib/v2/scmp/utils.js +60 -0
- 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/segmentfault/blogs.js +6 -23
- package/lib/v2/segmentfault/channel.js +18 -30
- package/lib/v2/segmentfault/user.js +6 -32
- package/lib/v2/segmentfault/utils.js +32 -0
- package/lib/v2/showstart/artist.js +15 -0
- package/lib/v2/showstart/brand.js +15 -0
- package/lib/v2/showstart/const.js +4 -0
- package/lib/v2/showstart/event.js +18 -0
- package/lib/v2/showstart/maintainer.js +6 -0
- package/lib/v2/showstart/radar.js +40 -0
- package/lib/v2/showstart/router.js +6 -0
- package/lib/v2/showstart/search.js +51 -0
- package/lib/v2/showstart/service.js +166 -0
- package/lib/v2/showstart/utils.js +92 -0
- package/lib/v2/snowpeak/maintainer.js +1 -1
- package/lib/v2/sohu/mp.js +48 -35
- package/lib/v2/sohu/templates/video.art +7 -0
- package/lib/v2/sony/maintainer.js +1 -1
- 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/sse/disclosure.js +4 -3
- package/lib/v2/stheadline/std/realtime.js +8 -6
- package/lib/v2/stockedge/daily-news.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/tableau/maintainer.js +3 -0
- package/lib/v2/tableau/radar.js +11 -0
- package/lib/v2/tableau/router.js +3 -0
- package/lib/v2/tableau/viz-of-the-day.js +26 -0
- package/lib/v2/techcrunch/maintainer.js +1 -1
- package/lib/v2/techpowerup/maintainer.js +0 -1
- package/lib/v2/telegram/maintainer.js +3 -3
- 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 +47 -1
- package/lib/v2/tfc-taiwan/index.js +36 -0
- package/lib/v2/tfc-taiwan/maintainer.js +9 -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/theatlantic/maintainer.js +1 -1
- package/lib/v2/thepaper/featured.js +1 -1
- package/lib/v2/thepaper/radar.js +2 -2
- package/lib/v2/thepaper/utils.js +19 -13
- package/lib/v2/thoughtco/index.js +95 -0
- package/lib/v2/thoughtco/maintainer.js +3 -0
- package/lib/v2/thoughtco/radar.js +155 -0
- package/lib/v2/thoughtco/router.js +3 -0
- package/lib/v2/thoughtco/templates/description.art +16 -0
- package/lib/v2/threads/index.js +20 -150
- package/lib/v2/threads/utils.js +147 -0
- 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/twitch/live.js +88 -0
- package/lib/v2/twitch/maintainer.js +5 -0
- package/lib/v2/twitch/radar.js +37 -0
- package/lib/v2/twitch/router.js +5 -0
- package/lib/v2/twitch/schedule.js +75 -0
- package/lib/v2/twitch/video.js +64 -0
- package/lib/v2/twitter/keyword.js +1 -3
- package/lib/v2/twitter/media.js +1 -5
- package/lib/v2/twitter/user.js +1 -3
- package/lib/v2/twitter/utils.js +5 -3
- package/lib/v2/twitter/web-api/constants.js +80 -68
- package/lib/v2/twitter/web-api/twitter-api.js +96 -103
- package/lib/v2/udn/breaking-news.js +14 -5
- package/lib/v2/uniqlo/maintainer.js +3 -0
- package/lib/v2/uniqlo/new.js +62 -0
- package/lib/v2/uniqlo/radar.js +12 -0
- package/lib/v2/uniqlo/router.js +3 -0
- package/lib/v2/ustc/eeis.js +5 -4
- package/lib/v2/ustc/sist.js +6 -5
- package/lib/v2/v1tx/maintainer.js +0 -1
- 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/wechat/maintainer.js +1 -1
- package/lib/v2/weekendhk/maintainer.js +0 -1
- package/lib/v2/weibo/maintainer.js +1 -1
- package/lib/v2/weibo/oasis/user.js +4 -3
- package/lib/v2/weibo/radar.js +1 -1
- package/lib/v2/weibo/router.js +1 -1
- package/lib/v2/weibo/search/hot.js +118 -7
- package/lib/v2/weibo/search/template/digest.art +17 -0
- package/lib/v2/whu/cs.js +71 -0
- package/lib/v2/whu/gs/index.js +85 -0
- package/lib/v2/whu/hyxt.js +50 -0
- package/lib/v2/whu/maintainer.js +6 -0
- package/lib/v2/whu/news.js +70 -0
- package/lib/v2/whu/radar.js +275 -0
- package/lib/v2/whu/router.js +6 -0
- package/lib/v2/whu/templates/description.art +39 -0
- package/lib/v2/whu/util.js +148 -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 +26 -20
- 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/xmnn/docs.js +0 -0
- package/lib/v2/xmnn/maintainer.js +1 -0
- package/lib/v2/xmnn/news.js +65 -0
- package/lib/v2/xmnn/radar.js +67 -1
- package/lib/v2/xmnn/router.js +1 -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/xsijishe/maintainer.js +1 -0
- package/lib/v2/xsijishe/radar.js +12 -0
- package/lib/v2/xsijishe/rank.js +60 -0
- package/lib/v2/xsijishe/router.js +1 -0
- package/lib/v2/yahoo/maintainer.js +2 -0
- package/lib/v2/yahoo/news/tw/index.js +24 -0
- package/lib/v2/yahoo/news/tw/provider-helper.js +22 -0
- package/lib/v2/yahoo/news/tw/provider.js +24 -0
- package/lib/v2/yahoo/news/tw/utils.js +129 -0
- package/lib/v2/yahoo/radar.js +29 -1
- package/lib/v2/yahoo/router.js +4 -1
- package/lib/v2/yahoo/templates/youtube.art +1 -0
- package/lib/v2/yomujp/level.js +101 -0
- package/lib/v2/yomujp/maintainer.js +3 -0
- package/lib/v2/yomujp/radar.js +13 -0
- package/lib/v2/yomujp/router.js +3 -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/book.js +6 -1
- package/lib/v2/yuque/utils.js +17 -0
- package/lib/v2/yyets/radar.js +2 -2
- package/lib/v2/zagg/maintainer.js +1 -1
- package/lib/v2/zcool/maintainer.js +1 -1
- 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/{routes → v2}/zimuxia/index.js +16 -8
- package/lib/v2/zimuxia/maintainer.js +4 -0
- package/lib/v2/zimuxia/portfolio.js +52 -0
- package/lib/v2/zimuxia/radar.js +19 -0
- package/lib/v2/zimuxia/router.js +4 -0
- package/lib/v2/zjuvag/blog.js +33 -0
- package/lib/v2/zjuvag/maintainer.js +3 -0
- package/lib/v2/zjuvag/radar.js +11 -0
- package/lib/v2/zjuvag/router.js +3 -0
- package/lib/v2/zodgame/forum.js +61 -23
- package/lib/v2/zodgame/templates/forum.art +1 -1
- package/lib/views/error.art +1 -1
- package/lib/views/rss3-ums.js +62 -0
- package/lib/views/welcome.art +1 -1
- package/package.json +78 -43
- package/lib/routes/abc/documentId.js +0 -7272
- package/lib/routes/abc/id.js +0 -7272
- package/lib/routes/abc/index.js +0 -74
- package/lib/routes/blogs/paulgraham.js +0 -46
- 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/egsea/flash.js +0 -40
- package/lib/routes/getitfree/category.js +0 -59
- package/lib/routes/getitfree/search.js +0 -25
- package/lib/routes/getitfree/utils.js +0 -47
- package/lib/routes/gov/moa/sjzxfb.js +0 -20
- 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/liquipedia/dota2_matches.js +0 -50
- package/lib/routes/mail/imap.js +0 -79
- package/lib/routes/mittrchina/index.js +0 -45
- 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/questmobile/report.js +0 -121
- package/lib/routes/uniqlo/stylingbook.js +0 -24
- package/lib/routes/universities/buaa/news/index.js +0 -66
- package/lib/routes/universities/buaa/utils.js +0 -57
- 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/routes/zimuxia/portfolio.js +0 -39
- package/lib/v2/abskoop/templates/description.art +0 -3
- package/lib/v2/appstore/update.js +0 -37
- package/lib/v2/chinafactcheck/templates/description.art +0 -1
- package/lib/v2/firefox/index.js +0 -74
- package/lib/v2/gocn/util.js +0 -17
- package/lib/v2/gov/zhengce/zuixin.js +0 -39
- package/lib/v2/hrbeu/uae/list.js +0 -57
- package/lib/v2/huxiu/article.js +0 -33
- package/lib/v2/huxiu/author.js +0 -36
- package/lib/v2/huxiu/templates/brief.art +0 -22
- package/lib/v2/huxiu/templates/img.art +0 -3
- package/lib/v2/huxiu/templates/moment.art +0 -16
- package/lib/v2/huxiu/templates/video.art +0 -7
- package/lib/v2/huxiu/utils.js +0 -154
- 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/nbd/article.js +0 -50
- package/lib/v2/newzmz/view.js +0 -57
- package/lib/v2/reuters/migration_prompt.js +0 -3
- 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/twitter/web-api/twitter-got.js +0 -113
- /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}/gov/moa/moa.js +0 -0
- /package/lib/{routes → v2}/grubstreet/index.js +0 -0
- /package/lib/{routes → v2}/metacritic/release.js +0 -0
- /package/lib/v2/yahoo/news/{index.js → us/index.js} +0 -0
package/README.md
CHANGED
|
@@ -21,25 +21,19 @@ 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
|
|
|
36
30
|
### Special Sponsors
|
|
37
31
|
|
|
38
32
|
<p>
|
|
39
|
-
<a href="https://xlog.app/" target="_blank"><img height="
|
|
33
|
+
<a href="https://rss3.io" target="_blank"><img height="50px" src="https://i.imgur.com/lb1dDGK.png"></a> <a href="https://xlog.app/" target="_blank"><img height="50px" 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
|
|
|
@@ -49,34 +43,28 @@ Logo designer [sheldonrrr](https://dribbble.com/sheldonrrr)
|
|
|
49
43
|
|
|
50
44
|
### Backers
|
|
51
45
|
|
|
52
|
-
<a href="https://www.cloudflare.com" target="_blank"><img height="50px" src="https://i.imgur.com/7Ph27Fq.png"></a> <a href="https://www.netlify.com" target="_blank"><img height="40px" src="https://i.imgur.com/cU01915.png"></a>
|
|
46
|
+
<a href="https://www.cloudflare.com" target="_blank"><img height="50px" src="https://i.imgur.com/7Ph27Fq.png"></a> <a href="https://www.netlify.com" target="_blank"><img height="40px" src="https://i.imgur.com/cU01915.png"></a> <a href="https://1password.com" target="_blank"><img height="40px" src="https://i.imgur.com/a2XjflO.png"></a>
|
|
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,10 +75,10 @@ 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
|
-
- Contact us directly: i@diygod.me
|
|
81
|
+
- Contact us directly: <i@diygod.me>
|
|
94
82
|
|
|
95
83
|
### One-time Donation
|
|
96
84
|
|
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
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
require('dotenv').config();
|
|
2
2
|
const randUserAgent = require('./utils/rand-user-agent');
|
|
3
|
+
const got = require('got');
|
|
3
4
|
let envs = process.env;
|
|
4
5
|
let value;
|
|
5
6
|
const TRUE_UA = 'RSSHub/1.0 (+http://github.com/DIYgod/RSSHub; like FeedFetcher-Google)';
|
|
6
7
|
|
|
7
8
|
const calculateValue = () => {
|
|
8
9
|
const bilibili_cookies = {};
|
|
9
|
-
const twitter_tokens = {};
|
|
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_')) {
|
|
16
17
|
const uid = name.slice(16);
|
|
17
18
|
bilibili_cookies[uid] = envs[name];
|
|
18
|
-
} else if (name.startsWith('TWITTER_TOKEN_')) {
|
|
19
|
-
const id = name.slice(14);
|
|
20
|
-
twitter_tokens[id] = envs[name];
|
|
21
19
|
} else if (name.startsWith('EMAIL_CONFIG_')) {
|
|
22
20
|
const id = name.slice(13);
|
|
23
21
|
email_config[id] = envs[name];
|
|
@@ -27,6 +25,9 @@ const calculateValue = () => {
|
|
|
27
25
|
} else if (name.startsWith('MEDIUM_COOKIE_')) {
|
|
28
26
|
const username = name.slice(14).toLowerCase();
|
|
29
27
|
medium_cookies[username] = envs[name];
|
|
28
|
+
} else if (name.startsWith('DISCOURSE_CONFIG_')) {
|
|
29
|
+
const id = name.slice('DISCOURSE_CONFIG_'.length);
|
|
30
|
+
discourse_config[id] = JSON.parse(envs[name]);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -81,8 +82,8 @@ const calculateValue = () => {
|
|
|
81
82
|
pass: envs.HTTP_BASIC_AUTH_PASS || 'passw0rd',
|
|
82
83
|
},
|
|
83
84
|
// access control
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
denylist: envs.DENYLIST && envs.DENYLIST.split(','),
|
|
86
|
+
allowlist: envs.ALLOWLIST && envs.ALLOWLIST.split(','),
|
|
86
87
|
allowLocalhost: envs.ALLOW_LOCALHOST,
|
|
87
88
|
accessKey: envs.ACCESS_KEY,
|
|
88
89
|
// logging
|
|
@@ -90,6 +91,7 @@ const calculateValue = () => {
|
|
|
90
91
|
debugInfo: envs.DEBUG_INFO || 'true',
|
|
91
92
|
loggerLevel: envs.LOGGER_LEVEL || 'info',
|
|
92
93
|
noLogfiles: envs.NO_LOGFILES,
|
|
94
|
+
showLoggerTimestamp: envs.SHOW_LOGGER_TIMESTAMP,
|
|
93
95
|
sentry: {
|
|
94
96
|
dsn: envs.SENTRY,
|
|
95
97
|
routeTimeout: parseInt(envs.SENTRY_ROUTE_TIMEOUT) || 30000,
|
|
@@ -107,6 +109,14 @@ const calculateValue = () => {
|
|
|
107
109
|
},
|
|
108
110
|
suffix: envs.SUFFIX,
|
|
109
111
|
titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 150,
|
|
112
|
+
openai: {
|
|
113
|
+
apiKey: envs.OPENAI_API_KEY,
|
|
114
|
+
model: envs.OPENAI_MODEL || 'gpt-3.5-turbo-16k',
|
|
115
|
+
temperature: envs.OPENAI_TEMPERATURE || 0.2,
|
|
116
|
+
maxTokens: envs.OPENAI_MAX_TOKENS || null,
|
|
117
|
+
endpoint: envs.OPENAI_API_ENDPOINT || 'https://api.openai.com/v1',
|
|
118
|
+
prompt: envs.OPENAI_PROMPT || 'Please summarize the following article and reply with markdown format.',
|
|
119
|
+
},
|
|
110
120
|
|
|
111
121
|
// Route-specific Configurations
|
|
112
122
|
bilibili: {
|
|
@@ -136,6 +146,9 @@ const calculateValue = () => {
|
|
|
136
146
|
discord: {
|
|
137
147
|
authorization: envs.DISCORD_AUTHORIZATION,
|
|
138
148
|
},
|
|
149
|
+
discourse: {
|
|
150
|
+
config: discourse_config,
|
|
151
|
+
},
|
|
139
152
|
discuz: {
|
|
140
153
|
cookies: discuz_cookies,
|
|
141
154
|
},
|
|
@@ -206,6 +219,9 @@ const calculateValue = () => {
|
|
|
206
219
|
lastfm: {
|
|
207
220
|
api_key: envs.LASTFM_API_KEY,
|
|
208
221
|
},
|
|
222
|
+
lightnovel: {
|
|
223
|
+
cookie: envs.SECURITY_KEY,
|
|
224
|
+
},
|
|
209
225
|
manhuagui: {
|
|
210
226
|
cookie: envs.MHGUI_COOKIE,
|
|
211
227
|
},
|
|
@@ -247,7 +263,7 @@ const calculateValue = () => {
|
|
|
247
263
|
},
|
|
248
264
|
pixiv: {
|
|
249
265
|
refreshToken: envs.PIXIV_REFRESHTOKEN,
|
|
250
|
-
bypassCdn: envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
|
|
266
|
+
bypassCdn: envs.PIXIV_BYPASS_CDN && envs.PIXIV_BYPASS_CDN !== '0' && envs.PIXIV_BYPASS_CDN !== 'false',
|
|
251
267
|
bypassCdnHostname: envs.PIXIV_BYPASS_HOSTNAME || 'public-api.secure.pixiv.net',
|
|
252
268
|
bypassCdnDoh: envs.PIXIV_BYPASS_DOH || 'https://1.1.1.1/dns-query',
|
|
253
269
|
imgProxy: envs.PIXIV_IMG_PROXY || 'https://i.pixiv.re',
|
|
@@ -275,11 +291,12 @@ const calculateValue = () => {
|
|
|
275
291
|
telegram: {
|
|
276
292
|
token: envs.TELEGRAM_TOKEN,
|
|
277
293
|
},
|
|
294
|
+
tophub: {
|
|
295
|
+
cookie: envs.TOPHUB_COOKIE,
|
|
296
|
+
},
|
|
278
297
|
twitter: {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
tokens: twitter_tokens,
|
|
282
|
-
authorization: envs.TWITTER_WEBAPI_AUTHORIZAION && envs.TWITTER_WEBAPI_AUTHORIZAION.split(','),
|
|
298
|
+
oauthTokens: envs.TWITTER_OAUTH_TOKEN?.split(','),
|
|
299
|
+
oauthTokenSecrets: envs.TWITTER_OAUTH_TOKEN_SECRET?.split(','),
|
|
283
300
|
},
|
|
284
301
|
weibo: {
|
|
285
302
|
app_key: envs.WEIBO_APP_KEY,
|
|
@@ -316,6 +333,21 @@ const calculateValue = () => {
|
|
|
316
333
|
};
|
|
317
334
|
calculateValue();
|
|
318
335
|
|
|
336
|
+
if (envs.REMOTE_CONFIG) {
|
|
337
|
+
got.get(envs.REMOTE_CONFIG)
|
|
338
|
+
.then((response) => {
|
|
339
|
+
const data = JSON.parse(response.body);
|
|
340
|
+
if (data) {
|
|
341
|
+
envs = Object.assign(envs, data);
|
|
342
|
+
calculateValue();
|
|
343
|
+
require('@/utils/logger').info('Remote config loaded.');
|
|
344
|
+
}
|
|
345
|
+
})
|
|
346
|
+
.catch((error) => {
|
|
347
|
+
require('@/utils/logger').error('Remote config load failed.', error);
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
|
|
319
351
|
module.exports = {
|
|
320
352
|
set: (env) => {
|
|
321
353
|
envs = Object.assign(process.env, env);
|
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
|
}
|
package/lib/maintainer.js
CHANGED
|
@@ -37,7 +37,7 @@ for (const dir in maintainerPath) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
for (const key in routes) {
|
|
40
|
-
maintainers['/' + dir + key] = routes[key];
|
|
40
|
+
maintainers['/' + dir + (key.endsWith('/') ? key.substring(0, key.length - 1) : key)] = routes[key];
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -49,4 +49,9 @@ router.stack.forEach((e) => {
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
module.exports = maintainers
|
|
52
|
+
module.exports = Object.keys(maintainers)
|
|
53
|
+
.sort()
|
|
54
|
+
.reduce((obj, path) => {
|
|
55
|
+
obj[path] = maintainers[path];
|
|
56
|
+
return obj;
|
|
57
|
+
}, {});
|
|
@@ -15,7 +15,7 @@ module.exports = async (ctx, next) => {
|
|
|
15
15
|
const accessKey = ctx.query.key;
|
|
16
16
|
const accessCode = ctx.query.code;
|
|
17
17
|
|
|
18
|
-
const isControlled = config.accessKey || config.
|
|
18
|
+
const isControlled = config.accessKey || config.allowlist || config.denylist;
|
|
19
19
|
|
|
20
20
|
const allowLocalhost = config.allowLocalhost && (await isLocalhost(ip));
|
|
21
21
|
|
|
@@ -38,14 +38,14 @@ module.exports = async (ctx, next) => {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
if (config.
|
|
42
|
-
if (config.
|
|
41
|
+
if (config.allowlist) {
|
|
42
|
+
if (config.allowlist.find((item) => ip.includes(item) || requestPath.includes(item) || requestUA.includes(item))) {
|
|
43
43
|
return grant();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
if (config.
|
|
48
|
-
if (!config.
|
|
47
|
+
if (config.denylist) {
|
|
48
|
+
if (!config.denylist.find((item) => ip.includes(item) || requestPath.includes(item) || requestUA.includes(item))) {
|
|
49
49
|
return grant();
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const xxhash = require('xxhash-wasm');
|
|
2
2
|
const config = require('@/config').value;
|
|
3
3
|
const logger = require('@/utils/logger');
|
|
4
4
|
const { RequestInProgressError } = require('@/errors');
|
|
@@ -81,8 +81,9 @@ module.exports = function (app) {
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
return async (ctx, next) => {
|
|
84
|
-
const
|
|
85
|
-
const
|
|
84
|
+
const { h64ToString } = await xxhash();
|
|
85
|
+
const key = 'rsshub:koa-redis-cache:' + h64ToString(ctx.request.path);
|
|
86
|
+
const controlKey = 'rsshub:path-requested:' + h64ToString(ctx.request.path);
|
|
86
87
|
|
|
87
88
|
if (!status.available) {
|
|
88
89
|
return next();
|
|
@@ -19,10 +19,10 @@ redisClient.on('connect', () => {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
const getCacheTtlKey = (key) => {
|
|
22
|
-
if (key.startsWith('cacheTtl:')) {
|
|
23
|
-
throw Error('"cacheTtl:" prefix is reserved for the internal usage, please change your cache key'); // blocking any attempt to get/set the cacheTtl
|
|
22
|
+
if (key.startsWith('rsshub:cacheTtl:')) {
|
|
23
|
+
throw Error('"rsshub:cacheTtl:" prefix is reserved for the internal usage, please change your cache key'); // blocking any attempt to get/set the cacheTtl
|
|
24
24
|
}
|
|
25
|
-
return `cacheTtl:${key}`;
|
|
25
|
+
return `rsshub:cacheTtl:${key}`;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
module.exports = {
|
|
@@ -39,6 +39,14 @@ module.exports = async (ctx, next) => {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
} catch (err) {
|
|
42
|
+
if (err instanceof Error && !err.stack.split('\n')[1].includes('lib/middleware/parameter.js')) {
|
|
43
|
+
// Append v2 route path if a route throws an error
|
|
44
|
+
// since koa-mount will remove the mount path from ctx.request.path
|
|
45
|
+
// https://github.com/koajs/mount/issues/62
|
|
46
|
+
ctx.request.path = (ctx.mountPath ?? '') + ctx.request.path;
|
|
47
|
+
ctx._matchedRoute = ctx._matchedRoute ? (ctx.mountPath ?? '') + ctx._matchedRoute : ctx._matchedRoute;
|
|
48
|
+
}
|
|
49
|
+
|
|
42
50
|
let message = err;
|
|
43
51
|
if (err.name && (err.name === 'HTTPError' || err.name === 'RequestError')) {
|
|
44
52
|
message = `${err.message}: target website might be blocking our access, you can <a href="https://docs.rsshub.app/install/">host your own RSSHub instance</a> for a better usability.`;
|
|
@@ -3,8 +3,11 @@ 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
|
|
6
|
+
const { RE2JS } = require('re2js');
|
|
7
|
+
const md = require('markdown-it')({
|
|
8
|
+
html: true,
|
|
9
|
+
});
|
|
10
|
+
const htmlToText = require('html-to-text');
|
|
8
11
|
|
|
9
12
|
let mercury_parser;
|
|
10
13
|
|
|
@@ -24,21 +27,30 @@ const resolveRelativeLink = ($, elem, attr, baseUrl) => {
|
|
|
24
27
|
}
|
|
25
28
|
};
|
|
26
29
|
|
|
30
|
+
const summarizeArticle = async (articleText) => {
|
|
31
|
+
const apiUrl = `${config.openai.endpoint}/chat/completions`;
|
|
32
|
+
const response = await got.post(apiUrl, {
|
|
33
|
+
json: {
|
|
34
|
+
model: config.openai.model,
|
|
35
|
+
max_tokens: config.openai.maxTokens,
|
|
36
|
+
messages: [
|
|
37
|
+
{ role: 'system', content: config.openai.prompt },
|
|
38
|
+
{ role: 'user', content: articleText },
|
|
39
|
+
],
|
|
40
|
+
temperature: config.openai.temperature,
|
|
41
|
+
},
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: `Bearer ${config.openai.apiKey}`,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
return response.data.choices[0].message.content;
|
|
48
|
+
};
|
|
49
|
+
|
|
27
50
|
module.exports = async (ctx, next) => {
|
|
28
51
|
await next();
|
|
29
52
|
|
|
30
53
|
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
54
|
throw Error('wrong path');
|
|
43
55
|
}
|
|
44
56
|
|
|
@@ -148,53 +160,50 @@ module.exports = async (ctx, next) => {
|
|
|
148
160
|
});
|
|
149
161
|
}
|
|
150
162
|
}
|
|
163
|
+
|
|
164
|
+
// handle category
|
|
165
|
+
if (item.category) {
|
|
166
|
+
// convert single string to array, and filter only string type category
|
|
167
|
+
Array.isArray(item.category) || (item.category = [item.category]);
|
|
168
|
+
item.category = item.category.filter((e) => typeof e === 'string');
|
|
169
|
+
}
|
|
151
170
|
return item;
|
|
152
171
|
};
|
|
153
172
|
|
|
154
173
|
ctx.state.data.item = await Promise.all(ctx.state.data.item.map(handleItem));
|
|
155
174
|
|
|
156
175
|
if (ctx.query) {
|
|
157
|
-
// limit
|
|
158
|
-
if (ctx.query.limit) {
|
|
159
|
-
ctx.state.data.item = ctx.state.data.item.slice(0, parseInt(ctx.query.limit));
|
|
160
|
-
}
|
|
161
|
-
|
|
162
176
|
// filter
|
|
177
|
+
const engine = config.feature.filter_regex_engine;
|
|
163
178
|
const makeRegex = (string) => {
|
|
179
|
+
if (!string) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
164
182
|
// 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
|
-
}
|
|
183
|
+
const insensitive = ctx.query.filter_case_sensitive === 'false';
|
|
184
|
+
switch (engine) {
|
|
185
|
+
case 'regexp':
|
|
186
|
+
return new RegExp(string, insensitive ? 'i' : '');
|
|
187
|
+
case 're2':
|
|
188
|
+
return RE2JS.compile(string, insensitive ? RE2JS.CASE_INSENSITIVE : 0);
|
|
189
|
+
default:
|
|
190
|
+
throw Error(`Invalid Engine Value: ${engine}, please check your config.`);
|
|
184
191
|
}
|
|
185
192
|
};
|
|
186
193
|
|
|
187
194
|
if (ctx.query.filter) {
|
|
188
|
-
|
|
189
|
-
resolve('node_modules/re2-wasm/build/wasm/re2.wasm');
|
|
195
|
+
const regex = makeRegex(ctx.query.filter);
|
|
190
196
|
|
|
191
197
|
ctx.state.data.item = ctx.state.data.item.filter((item) => {
|
|
192
198
|
const title = item.title || '';
|
|
193
199
|
const description = item.description || title;
|
|
194
200
|
const author = item.author || '';
|
|
195
|
-
const category = item.category
|
|
201
|
+
const category = item.category || [];
|
|
196
202
|
const isFilter =
|
|
197
|
-
|
|
203
|
+
engine === 're2'
|
|
204
|
+
? regex.matcher(title).find() || regex.matcher(description).find() || regex.matcher(author).find() || category.some((c) => regex.matcher(c).find())
|
|
205
|
+
: title.match(regex) || description.match(regex) || author.match(regex) || category.some((c) => c.match(regex));
|
|
206
|
+
|
|
198
207
|
return isFilter;
|
|
199
208
|
});
|
|
200
209
|
}
|
|
@@ -205,12 +214,19 @@ module.exports = async (ctx, next) => {
|
|
|
205
214
|
const title = item.title || '';
|
|
206
215
|
const description = item.description || title;
|
|
207
216
|
const author = item.author || '';
|
|
208
|
-
const category = item.category
|
|
217
|
+
const category = item.category || [];
|
|
209
218
|
let isFilter = true;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
219
|
+
|
|
220
|
+
const titleRegex = makeRegex(ctx.query.filter_title);
|
|
221
|
+
const descriptionRegex = makeRegex(ctx.query.filter_description);
|
|
222
|
+
const authorRegex = makeRegex(ctx.query.filter_author);
|
|
223
|
+
const categoryRegex = makeRegex(ctx.query.filter_category);
|
|
224
|
+
|
|
225
|
+
ctx.query.filter_title && (isFilter = engine === 're2' ? titleRegex.matcher(title).find() : title.match(titleRegex));
|
|
226
|
+
ctx.query.filter_description && (isFilter = isFilter && (engine === 're2' ? descriptionRegex.matcher(description).find() : description.match(descriptionRegex)));
|
|
227
|
+
ctx.query.filter_author && (isFilter = isFilter && (engine === 're2' ? authorRegex.matcher(author).find() : author.match(authorRegex)));
|
|
228
|
+
ctx.query.filter_category && (isFilter = isFilter && category.some((c) => (engine === 're2' ? categoryRegex.matcher(c).find() : c.match(categoryRegex))));
|
|
229
|
+
|
|
214
230
|
return isFilter;
|
|
215
231
|
});
|
|
216
232
|
}
|
|
@@ -224,12 +240,19 @@ module.exports = async (ctx, next) => {
|
|
|
224
240
|
const title = item.title;
|
|
225
241
|
const description = item.description || title;
|
|
226
242
|
const author = item.author || '';
|
|
227
|
-
const category = item.category
|
|
243
|
+
const category = item.category || [];
|
|
228
244
|
let isFilter = true;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
245
|
+
|
|
246
|
+
const titleRegex = makeRegex(ctx.query.filterout_title);
|
|
247
|
+
const descriptionRegex = makeRegex(ctx.query.filterout_description);
|
|
248
|
+
const authorRegex = makeRegex(ctx.query.filterout_author);
|
|
249
|
+
const categoryRegex = makeRegex(ctx.query.filterout_category);
|
|
250
|
+
|
|
251
|
+
ctx.query.filterout_title && (isFilter = engine === 're2' ? !titleRegex.matcher(title).find() : !title.match(titleRegex));
|
|
252
|
+
ctx.query.filterout_description && (isFilter = isFilter && (engine === 're2' ? !descriptionRegex.matcher(description).find() : !description.match(descriptionRegex)));
|
|
253
|
+
ctx.query.filterout_author && (isFilter = isFilter && (engine === 're2' ? !authorRegex.matcher(author).find() : !author.match(authorRegex)));
|
|
254
|
+
ctx.query.filterout_category && (isFilter = isFilter && !category.some((c) => (engine === 're2' ? categoryRegex.matcher(c).find() : c.match(categoryRegex))));
|
|
255
|
+
|
|
233
256
|
return isFilter;
|
|
234
257
|
});
|
|
235
258
|
}
|
|
@@ -247,6 +270,11 @@ module.exports = async (ctx, next) => {
|
|
|
247
270
|
});
|
|
248
271
|
}
|
|
249
272
|
|
|
273
|
+
// limit
|
|
274
|
+
if (ctx.query.limit) {
|
|
275
|
+
ctx.state.data.item = ctx.state.data.item.slice(0, parseInt(ctx.query.limit));
|
|
276
|
+
}
|
|
277
|
+
|
|
250
278
|
// telegram instant view
|
|
251
279
|
if (ctx.query.tgiv) {
|
|
252
280
|
ctx.state.data.item.map((item) => {
|
|
@@ -282,6 +310,33 @@ module.exports = async (ctx, next) => {
|
|
|
282
310
|
await Promise.all(tasks);
|
|
283
311
|
}
|
|
284
312
|
|
|
313
|
+
// openai
|
|
314
|
+
if (ctx.query.chatgpt && config.openai.apiKey) {
|
|
315
|
+
ctx.state.data.item = await Promise.all(
|
|
316
|
+
ctx.state.data.item.map(async (item) => {
|
|
317
|
+
if (item.description) {
|
|
318
|
+
try {
|
|
319
|
+
const summary = await ctx.cache.tryGet(`openai:${item.link}`, async () => {
|
|
320
|
+
const text = htmlToText.htmlToText(item.description);
|
|
321
|
+
if (text.length < 300) {
|
|
322
|
+
return '';
|
|
323
|
+
}
|
|
324
|
+
const summary_md = await summarizeArticle(text);
|
|
325
|
+
return md.render(summary_md);
|
|
326
|
+
});
|
|
327
|
+
// 将总结结果添加到文章数据中
|
|
328
|
+
if (summary !== '') {
|
|
329
|
+
item.description = summary + '<hr/><br/>' + item.description;
|
|
330
|
+
}
|
|
331
|
+
} catch (e) {
|
|
332
|
+
// when openai failed, return default description and not write cache
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return item;
|
|
336
|
+
})
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
|
|
285
340
|
// scihub
|
|
286
341
|
if (ctx.query.scihub) {
|
|
287
342
|
ctx.state.data.item.map((item) => {
|
|
@@ -308,7 +363,7 @@ module.exports = async (ctx, next) => {
|
|
|
308
363
|
if (item.description) {
|
|
309
364
|
text = item.description.replace(/<\/?[^>]+(>|$)/g, '');
|
|
310
365
|
}
|
|
311
|
-
if (text
|
|
366
|
+
if (text?.length) {
|
|
312
367
|
if (text.length > ctx.query.brief) {
|
|
313
368
|
item.description = `<p>${text.substring(0, ctx.query.brief)}…</p>`;
|
|
314
369
|
} else {
|