rsshub 1.0.0-master.c034cfb → 1.0.0-master.c06353f
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 +3 -3
- package/lib/config.js +28 -10
- package/lib/maintainer.js +7 -2
- package/lib/middleware/access-control.js +5 -5
- package/lib/middleware/parameter.js +66 -11
- package/lib/middleware/template.js +79 -85
- package/lib/router.js +20 -20
- package/lib/routes/index.js +6 -13
- package/lib/routes/universities/ynnu/edu/news.js +3 -3
- package/lib/utils/rand-user-agent.js +2 -1
- package/lib/utils/render.js +2 -0
- package/lib/v2/2048/index.js +18 -13
- 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/aliyun/notice.js +1 -1
- package/lib/v2/aljazeera/index.js +1 -1
- package/lib/v2/apnews/topics.js +1 -0
- package/lib/v2/apple/apps.js +88 -17
- package/lib/v2/apple/maintainer.js +1 -1
- package/lib/v2/apple/radar.js +3 -3
- package/lib/v2/apple/router.js +1 -1
- 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/bangumi/maintainer.js +2 -0
- package/lib/v2/bangumi/radar.js +12 -0
- package/lib/v2/bangumi/router.js +2 -0
- package/lib/v2/bangumi/tv/other/followrank.js +42 -0
- package/lib/v2/bangumi/tv/user/wish.js +38 -0
- package/lib/v2/bilibili/cache.js +10 -7
- package/lib/v2/bilibili/fav.js +2 -0
- package/lib/v2/bilibili/maintainer.js +1 -0
- package/lib/v2/bilibili/platform.js +43 -0
- package/lib/v2/bilibili/radar.js +8 -0
- package/lib/v2/bilibili/router.js +1 -0
- package/lib/v2/bilibili/userFav.js +2 -0
- package/lib/v2/bilibili/video.js +8 -1
- package/lib/v2/bnu/dwxgb.js +17 -22
- 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/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/cbc/topics.js +3 -1
- 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/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 +1 -0
- package/lib/v2/cna/maintainer.js +1 -0
- package/lib/v2/cna/radar.js +6 -0
- package/lib/v2/cna/router.js +1 -0
- package/lib/v2/cna/web/index.js +62 -0
- 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/cyzone/maintainer.js +1 -1
- package/lib/v2/deadline/maintainer.js +0 -1
- package/lib/v2/dlsite/ci-en/article.js +1 -1
- package/lib/v2/dongqiudi/special.js +13 -21
- package/lib/v2/dongqiudi/utils.js +26 -2
- 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/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/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/{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/foresightnews/maintainer.js +0 -1
- 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/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/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/radar.js +1 -1
- package/lib/v2/gogoanimehd/recent-releases.js +1 -1
- 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/forestry/gjlckjdjt.js +96 -0
- package/lib/v2/gov/forestry/templates/description.art +15 -0
- package/lib/v2/gov/maintainer.js +12 -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/nifdc/index.js +40 -33
- package/lib/v2/gov/npc/index.js +47 -0
- package/lib/v2/gov/radar.js +290 -2
- package/lib/v2/gov/router.js +12 -2
- package/lib/v2/gov/samr/templates/description.art +26 -0
- package/lib/v2/gov/samr/xgzlyhd.js +100 -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/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/{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/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/instagram/templates/images.art +8 -2
- package/lib/v2/instagram/templates/video.art +4 -1
- package/lib/v2/instagram/web-api/index.js +21 -11
- package/lib/v2/instagram/web-api/utils.js +86 -15
- 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/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/news.js +1 -1
- package/lib/v2/kemono/index.js +28 -4
- package/lib/v2/kemono/radar.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/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/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/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/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/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/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/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/niaogebiji/maintainer.js +0 -1
- package/lib/v2/npr/radar.js +2 -2
- package/lib/v2/oschina/news.js +1 -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/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/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/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/reactnewsletter/maintainer.js +0 -1
- package/lib/v2/readhub/index.js +92 -83
- package/lib/v2/readhub/maintainer.js +1 -1
- package/lib/v2/readhub/radar.js +6 -2
- package/lib/v2/readhub/router.js +1 -4
- package/lib/v2/readhub/templates/description.art +40 -0
- package/lib/v2/reuters/common.js +19 -6
- 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 +35 -22
- package/lib/v2/rfi/radar.js +5 -5
- package/lib/v2/rfi/router.js +1 -1
- 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/utils.js +4 -4
- package/lib/v2/scmp/index.js +61 -85
- package/lib/v2/scmp/utils.js +60 -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/sohu/mp.js +48 -35
- package/lib/v2/sohu/templates/video.art +7 -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/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 +46 -0
- package/lib/v2/tfc-taiwan/maintainer.js +0 -1
- package/lib/v2/thepaper/featured.js +1 -1
- package/lib/v2/thepaper/utils.js +18 -12
- 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/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 +6 -2
- 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/v1tx/maintainer.js +0 -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/hyxt.js +50 -0
- package/lib/v2/whu/maintainer.js +2 -1
- package/lib/v2/whu/news.js +48 -80
- package/lib/v2/whu/radar.js +252 -4
- package/lib/v2/whu/router.js +2 -1
- 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/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/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/yuque/utils.js +1 -0
- package/lib/v2/zcool/maintainer.js +1 -1
- 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/views/rss3-ums.js +62 -0
- package/package.json +60 -60
- 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/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/liquipedia/dota2_matches.js +0 -50
- package/lib/routes/mittrchina/index.js +0 -45
- package/lib/routes/npc/index.js +0 -42
- 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/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/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/nbd/article.js +0 -50
- package/lib/v2/reuters/migration_prompt.js +0 -3
- package/lib/v2/twitter/web-api/twitter-got.js +0 -113
- /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
|
@@ -5,63 +5,109 @@ const { art } = require('@/utils/render');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
|
|
7
7
|
module.exports = async (ctx) => {
|
|
8
|
-
const category = ctx.params
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const urls = {
|
|
12
|
-
'': '',
|
|
13
|
-
category: `/category-${keyword}`,
|
|
14
|
-
tag: `/tag-${keyword}`,
|
|
15
|
-
search: `/search/${keyword}`,
|
|
16
|
-
};
|
|
8
|
+
const { category } = ctx.params;
|
|
9
|
+
const limit = ctx.query.limit ? parseInt(ctx.query.limit, 10) : 24;
|
|
17
10
|
|
|
18
11
|
const rootUrl = 'https://asiantolick.com';
|
|
19
|
-
const
|
|
12
|
+
const apiUrl = new URL('ajax/buscar_posts.php', rootUrl).href;
|
|
13
|
+
const currentUrl = new URL(category?.replace(/^(tag|category)?\/(\d+)/, '$1-$2') ?? '', rootUrl).href;
|
|
14
|
+
|
|
15
|
+
const searchParams = {};
|
|
16
|
+
const matches = category?.match(/^(tag|category|search|page)?(?:-|\/)?(\w+)/) ?? undefined;
|
|
17
|
+
|
|
18
|
+
if (matches) {
|
|
19
|
+
const key = matches[1] === 'category' ? 'cat' : matches[1];
|
|
20
|
+
const value = matches[2];
|
|
21
|
+
searchParams[key] = value;
|
|
22
|
+
} else if (category) {
|
|
23
|
+
searchParams.page = 'news';
|
|
24
|
+
}
|
|
20
25
|
|
|
21
|
-
const response = await got({
|
|
22
|
-
|
|
23
|
-
url: currentUrl,
|
|
26
|
+
const { data: response } = await got(apiUrl, {
|
|
27
|
+
searchParams,
|
|
24
28
|
});
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
let $ = cheerio.load(response);
|
|
27
31
|
|
|
28
|
-
let items = $('.miniatura')
|
|
32
|
+
let items = $('a.miniatura')
|
|
33
|
+
.slice(0, limit)
|
|
29
34
|
.toArray()
|
|
30
35
|
.map((item) => {
|
|
31
36
|
item = $(item);
|
|
32
37
|
|
|
38
|
+
const image = item.find('div.background_miniatura img');
|
|
39
|
+
|
|
33
40
|
return {
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
title: item.find('div.base_tt').text(),
|
|
42
|
+
link: item.prop('href'),
|
|
43
|
+
description: art(path.join(__dirname, 'templates/description.art'), {
|
|
44
|
+
images: image
|
|
45
|
+
? [
|
|
46
|
+
{
|
|
47
|
+
src: image.prop('data-src').split(/\?/)[0],
|
|
48
|
+
alt: image.prop('alt'),
|
|
49
|
+
},
|
|
50
|
+
]
|
|
51
|
+
: undefined,
|
|
52
|
+
}),
|
|
53
|
+
author: item.find('.author').text(),
|
|
54
|
+
category: item
|
|
55
|
+
.find('.category')
|
|
56
|
+
.toArray()
|
|
57
|
+
.map((c) => $(c).text()),
|
|
58
|
+
guid: image ? image.prop('post-id') : item.link.match(/\/(\d+)/)[1],
|
|
36
59
|
};
|
|
37
60
|
});
|
|
38
61
|
|
|
39
62
|
items = await Promise.all(
|
|
40
63
|
items.map((item) =>
|
|
41
64
|
ctx.cache.tryGet(item.link, async () => {
|
|
42
|
-
const detailResponse = await got(
|
|
43
|
-
method: 'get',
|
|
44
|
-
url: item.link,
|
|
45
|
-
});
|
|
65
|
+
const { data: detailResponse } = await got(item.link);
|
|
46
66
|
|
|
47
|
-
const content = cheerio.load(detailResponse
|
|
67
|
+
const content = cheerio.load(detailResponse);
|
|
48
68
|
|
|
69
|
+
item.title = content('h1').first().text();
|
|
49
70
|
item.description = art(path.join(__dirname, 'templates/description.art'), {
|
|
50
|
-
|
|
71
|
+
description: content('#metadata_qrcode').html(),
|
|
72
|
+
images: content('div.miniatura')
|
|
51
73
|
.toArray()
|
|
52
|
-
.map((i) =>
|
|
74
|
+
.map((i) => ({
|
|
75
|
+
src: content(i).prop('data-src'),
|
|
76
|
+
alt: content(i).find('img').prop('alt'),
|
|
77
|
+
})),
|
|
53
78
|
});
|
|
79
|
+
item.author = content('.author').text();
|
|
80
|
+
item.category = content('#categoria_tags_post a')
|
|
81
|
+
.toArray()
|
|
82
|
+
.map((c) => content(c).text().trim().replace(/^#/, ''));
|
|
83
|
+
item.pubDate = parseDate(detailResponse.match(/"pubDate":\s"((?!http)[^"]*)"/)[1]);
|
|
84
|
+
item.updated = parseDate(detailResponse.match(/"upDate":\s"((?!http)[^"]*)"/)[1]);
|
|
85
|
+
item.enclosure_url = new URL(`ajax/download_post.php?ver=3&dir=/down/new_${item.guid}&post_id=${item.guid}&post_name=${detailResponse.match(/"title":\s"((?!http)[^"]*)"/)[1]}`, rootUrl).href;
|
|
54
86
|
|
|
55
|
-
item.
|
|
87
|
+
item.guid = `asiantolick-${item.guid}`;
|
|
56
88
|
|
|
57
89
|
return item;
|
|
58
90
|
})
|
|
59
91
|
)
|
|
60
92
|
);
|
|
61
93
|
|
|
94
|
+
const { data: currentResponse } = await got(currentUrl);
|
|
95
|
+
|
|
96
|
+
$ = cheerio.load(currentResponse);
|
|
97
|
+
|
|
98
|
+
const title = $('title').text().split(/-/)[0].trim();
|
|
99
|
+
const icon = $('link[rel="icon"]').first().prop('href');
|
|
100
|
+
|
|
62
101
|
ctx.state.data = {
|
|
63
|
-
title: $('title').text(),
|
|
64
|
-
link: currentUrl,
|
|
65
102
|
item: items,
|
|
103
|
+
title: title === 'Asian To Lick' ? title : `Asian To Lick - ${title}`,
|
|
104
|
+
link: currentUrl,
|
|
105
|
+
description: $('meta[property="og:description"]').prop('content'),
|
|
106
|
+
language: $('html').prop('lang'),
|
|
107
|
+
image: $('meta[name="msapplication-TileImage"]').prop('content'),
|
|
108
|
+
icon,
|
|
109
|
+
logo: icon,
|
|
110
|
+
subtitle: title,
|
|
111
|
+
allowEmpty: true,
|
|
66
112
|
};
|
|
67
113
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
'/': ['nczitzk'],
|
|
3
|
-
'/category/:id
|
|
4
|
-
'/
|
|
5
|
-
'/
|
|
3
|
+
'/category/:id': ['nczitzk'],
|
|
4
|
+
'/page/news': ['nczitzk'],
|
|
5
|
+
'/page/:id': ['nczitzk'],
|
|
6
|
+
'/search/:keyword': ['nczitzk'],
|
|
7
|
+
'/tag/:id': ['nczitzk'],
|
|
6
8
|
};
|
|
@@ -3,28 +3,50 @@ module.exports = {
|
|
|
3
3
|
_name: 'Asian to lick',
|
|
4
4
|
'.': [
|
|
5
5
|
{
|
|
6
|
-
title: '
|
|
7
|
-
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-
|
|
6
|
+
title: 'Top rated',
|
|
7
|
+
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-top-rated',
|
|
8
8
|
source: ['/'],
|
|
9
9
|
target: '/asiantolick',
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
title: '
|
|
13
|
-
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-
|
|
12
|
+
title: 'News',
|
|
13
|
+
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-news',
|
|
14
|
+
source: ['/page/news'],
|
|
15
|
+
target: '/asiantolick/page/news',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: 'Category',
|
|
19
|
+
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-category',
|
|
14
20
|
source: ['/'],
|
|
15
|
-
target: (params, url) =>
|
|
21
|
+
target: (params, url) => {
|
|
22
|
+
url = new URL(url);
|
|
23
|
+
const id = url.href.match(/\/category\/(\w+)/)[1];
|
|
24
|
+
|
|
25
|
+
return `/asiantolick${id ? `/category/${id}` : ''}`;
|
|
26
|
+
},
|
|
16
27
|
},
|
|
17
28
|
{
|
|
18
|
-
title: '
|
|
19
|
-
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-
|
|
29
|
+
title: 'Tag',
|
|
30
|
+
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-tag',
|
|
20
31
|
source: ['/'],
|
|
21
|
-
target: (params, url) =>
|
|
32
|
+
target: (params, url) => {
|
|
33
|
+
url = new URL(url);
|
|
34
|
+
const id = url.href.match(/\/tag\/(\w+)/)[1];
|
|
35
|
+
|
|
36
|
+
return `/asiantolick${id ? `/tag/${id}` : ''}`;
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: 'Search',
|
|
41
|
+
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-search',
|
|
42
|
+
source: ['/search/:keyword'],
|
|
43
|
+
target: '/asiantolick/search/:keyword',
|
|
22
44
|
},
|
|
23
45
|
{
|
|
24
|
-
title: '
|
|
25
|
-
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-
|
|
26
|
-
source: ['/
|
|
27
|
-
target: '/asiantolick/
|
|
46
|
+
title: 'Page',
|
|
47
|
+
docs: 'https://docs.rsshub.app/routes/picture#asian-to-lick-page',
|
|
48
|
+
source: ['/page/:id'],
|
|
49
|
+
target: '/asiantolick/page/:id',
|
|
28
50
|
},
|
|
29
51
|
],
|
|
30
52
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports =
|
|
2
|
-
router.get('/:category
|
|
1
|
+
module.exports = (router) => {
|
|
2
|
+
router.get('/:category*', require('./'));
|
|
3
3
|
};
|
|
@@ -6,6 +6,7 @@ module.exports = {
|
|
|
6
6
|
'/online': ['devinmugen'],
|
|
7
7
|
// bangumi.tv
|
|
8
8
|
'/tv/calendar/today': ['magic-akari'],
|
|
9
|
+
'/tv/followrank': ['honue'],
|
|
9
10
|
'/tv/group/:id': ['SettingDust'],
|
|
10
11
|
'/tv/person/:id': ['ylc395'],
|
|
11
12
|
'/tv/subject/:id': ['SettingDust'],
|
|
@@ -15,4 +16,5 @@ module.exports = {
|
|
|
15
16
|
'/tv/subject/:id/:type?/:showOriginalName?': ['JimenezLi'],
|
|
16
17
|
'/tv/topic/:id': ['ylc395'],
|
|
17
18
|
'/tv/user/blog/:id': ['nczitzk'],
|
|
19
|
+
'/tv/user/wish/:id': ['honue'],
|
|
18
20
|
};
|
package/lib/v2/bangumi/radar.js
CHANGED
|
@@ -55,6 +55,18 @@ const bangumiTV = {
|
|
|
55
55
|
source: '/calendar',
|
|
56
56
|
target: '/bangumi/tv/calendar/today',
|
|
57
57
|
},
|
|
58
|
+
{
|
|
59
|
+
title: '成员关注动画榜',
|
|
60
|
+
docs: 'https://docs.rsshub.app/routes/anime#bangumi-fan-zu-ji-hua',
|
|
61
|
+
source: '/anime',
|
|
62
|
+
target: '/bangumi/tv/followrank',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: '用户想看',
|
|
66
|
+
docs: 'https://docs.rsshub.app/routes/anime#bangumi-fan-zu-ji-hua',
|
|
67
|
+
source: '/anime/list/:id/wish',
|
|
68
|
+
target: '/bangumi/tv/user/wish/:id',
|
|
69
|
+
},
|
|
58
70
|
],
|
|
59
71
|
};
|
|
60
72
|
|
package/lib/v2/bangumi/router.js
CHANGED
|
@@ -5,9 +5,11 @@ module.exports = function (router) {
|
|
|
5
5
|
router.get('/online', require('./online/online'));
|
|
6
6
|
// bangumi.tv
|
|
7
7
|
router.get('/tv/calendar/today', require('./tv/calendar/today'));
|
|
8
|
+
router.get('/tv/followrank', require('./tv/other/followrank'));
|
|
8
9
|
router.get('/tv/group/:id', require('./tv/group/topic'));
|
|
9
10
|
router.get('/tv/person/:id', require('./tv/person'));
|
|
10
11
|
router.get('/tv/subject/:id/:type?/:showOriginalName?', require('./tv/subject'));
|
|
11
12
|
router.get('/tv/topic/:id', require('./tv/group/reply'));
|
|
12
13
|
router.get('/tv/user/blog/:id', require('./tv/user/blog'));
|
|
14
|
+
router.get('/tv/user/wish/:id', require('./tv/user/wish'));
|
|
13
15
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const config = require('@/config').value;
|
|
4
|
+
module.exports = async (ctx) => {
|
|
5
|
+
const url = 'https://bgm.tv/anime';
|
|
6
|
+
const response = await got({
|
|
7
|
+
url,
|
|
8
|
+
method: 'get',
|
|
9
|
+
headers: {
|
|
10
|
+
'User-Agent': config.trueUA,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const $ = cheerio.load(response.body);
|
|
15
|
+
|
|
16
|
+
const items = $('#columnB > div:nth-child(4) > table > tbody')
|
|
17
|
+
.find('tr')
|
|
18
|
+
.toArray()
|
|
19
|
+
.map((item) => {
|
|
20
|
+
const aTag = $(item).children('td').next().find('a');
|
|
21
|
+
return {
|
|
22
|
+
title: aTag.html(),
|
|
23
|
+
link: 'https://bgm.tv' + aTag.attr('href'),
|
|
24
|
+
};
|
|
25
|
+
})
|
|
26
|
+
.concat(
|
|
27
|
+
$('#chl_subitem > ul')
|
|
28
|
+
.find('li')
|
|
29
|
+
.toArray()
|
|
30
|
+
.map((item) => ({
|
|
31
|
+
title: $(item).children('a').attr('title'),
|
|
32
|
+
link: 'https://bgm.tv' + $(item).children('a').attr('href'),
|
|
33
|
+
}))
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
ctx.state.data = {
|
|
37
|
+
title: 'Bangumi 成员关注动画榜',
|
|
38
|
+
link: url,
|
|
39
|
+
item: items,
|
|
40
|
+
description: `Bangumi 首页-成员关注动画榜`,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const timezone = require('@/utils/timezone');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
5
|
+
const config = require('@/config').value;
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const userid = ctx.params.id;
|
|
8
|
+
const url = `https://bgm.tv/anime/list/${userid}/wish`;
|
|
9
|
+
const response = await got({
|
|
10
|
+
url,
|
|
11
|
+
method: 'get',
|
|
12
|
+
headers: {
|
|
13
|
+
'User-Agent': config.trueUA,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const $ = cheerio.load(response.body);
|
|
17
|
+
|
|
18
|
+
const username = $('.name').find('a').html();
|
|
19
|
+
const items = $('#browserItemList')
|
|
20
|
+
.find('li')
|
|
21
|
+
.toArray()
|
|
22
|
+
.map((item) => {
|
|
23
|
+
const aTag = $(item).find('h3').children('a');
|
|
24
|
+
const jdate = $(item).find('.collectInfo').find('span').html();
|
|
25
|
+
return {
|
|
26
|
+
title: aTag.html(),
|
|
27
|
+
link: 'https://bgm.tv' + aTag.attr('href'),
|
|
28
|
+
pubDate: timezone(parseDate(jdate), 0),
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
ctx.state.data = {
|
|
33
|
+
title: `${username}想看的动画`,
|
|
34
|
+
link: url,
|
|
35
|
+
item: items,
|
|
36
|
+
description: `${username}想看的动画列表`,
|
|
37
|
+
};
|
|
38
|
+
};
|
package/lib/v2/bilibili/cache.js
CHANGED
|
@@ -13,20 +13,23 @@ module.exports = {
|
|
|
13
13
|
return ctx.cache.tryGet(key, async () => {
|
|
14
14
|
// default Referer: https://www.bilibili.com is limited
|
|
15
15
|
// Bilibili return cookies with multiple set-cookie
|
|
16
|
-
let response = await got('https://space.bilibili.com/1');
|
|
17
|
-
const setCookie = response.headers['set-cookie']; // should contain buvid3 and b_nut
|
|
18
|
-
if (typeof setCookie === 'undefined') {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
const cookie = setCookie.map((cookie) => cookie.split(';')[0]);
|
|
16
|
+
// let response = await got('https://space.bilibili.com/1');
|
|
17
|
+
// const setCookie = response.headers['set-cookie']; // should contain buvid3 and b_nut
|
|
18
|
+
// if (typeof setCookie === 'undefined') {
|
|
19
|
+
// return '';
|
|
20
|
+
// }
|
|
21
|
+
// const cookie = setCookie.map((cookie) => cookie.split(';')[0]);
|
|
22
|
+
const cookie = [];
|
|
22
23
|
cookie.push(['b_lsid', utils.lsid()].join('='));
|
|
23
24
|
cookie.push(['_uuid', utils._uuid()].join('='));
|
|
24
|
-
|
|
25
|
+
cookie.push(['b_nut', Date.now().toString()].join('='));
|
|
26
|
+
let response = await got('https://api.bilibili.com/x/frontend/finger/spi', {
|
|
25
27
|
headers: {
|
|
26
28
|
Referer: 'https://www.bilibili.com/',
|
|
27
29
|
Cookie: cookie.join('; '),
|
|
28
30
|
},
|
|
29
31
|
});
|
|
32
|
+
cookie.push(['buvid3', encodeURIComponent(response.data.data.b_3)].join('='));
|
|
30
33
|
cookie.push(['bvuid4', encodeURIComponent(response.data.data.b_4)].join('='));
|
|
31
34
|
const e = Math.floor(Date.now() / 1000);
|
|
32
35
|
const hexsign = utils.hexsign(e);
|
package/lib/v2/bilibili/fav.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const utils = require('./utils');
|
|
3
3
|
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const config = require('@/config').value;
|
|
4
5
|
|
|
5
6
|
module.exports = async (ctx) => {
|
|
6
7
|
const fid = ctx.params.fid;
|
|
@@ -11,6 +12,7 @@ module.exports = async (ctx) => {
|
|
|
11
12
|
url: `https://api.bilibili.com/x/v3/fav/resource/list?media_id=${fid}&ps=20`,
|
|
12
13
|
headers: {
|
|
13
14
|
Referer: `https://space.bilibili.com/${uid}/`,
|
|
15
|
+
Cookie: config.bilibili.cookies[uid],
|
|
14
16
|
},
|
|
15
17
|
});
|
|
16
18
|
const { data, code, message } = response.data;
|
|
@@ -21,6 +21,7 @@ module.exports = {
|
|
|
21
21
|
'/online/:disableEmbed?': ['TigerCubDen'],
|
|
22
22
|
'/partion/:tid/:disableEmbed?': ['DIYgod'],
|
|
23
23
|
'/partion/ranking/:tid/:days?/:disableEmbed?': ['lengthmin'],
|
|
24
|
+
'/platform/:area?/:p_type?/:uid?': ['nightmare-mio'],
|
|
24
25
|
'/popular/all': ['ziminliu'],
|
|
25
26
|
'/ranking/:rid?/:day?/:arc_type?/:disableEmbed?': ['DIYgod'],
|
|
26
27
|
'/readlist/:listid': ['hoilc'],
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
3
|
+
const config = require('@/config').value;
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const { area = -1, type = '全部类型', uid } = ctx.params;
|
|
7
|
+
const cookie = config.bilibili.cookies[uid];
|
|
8
|
+
const link = 'https://show.bilibili.com/api/ticket/project/listV2';
|
|
9
|
+
|
|
10
|
+
const headers = {
|
|
11
|
+
Referer: 'https://space.bilibili.com',
|
|
12
|
+
Cookie: cookie ? `SESSDATA=${cookie}` : undefined,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const { data: response } = await got({
|
|
16
|
+
method: 'get',
|
|
17
|
+
url: `${link}?version=134&page=1&pagesize=16&area=${area}&filter=&platform=web&p_type=${type}`,
|
|
18
|
+
headers,
|
|
19
|
+
});
|
|
20
|
+
// 列表
|
|
21
|
+
const list = response.data.result;
|
|
22
|
+
|
|
23
|
+
const items = list.map((item) => {
|
|
24
|
+
const bodyHtml = `<img src="${item.cover}"></img>`;
|
|
25
|
+
const coordinate = `<div>活动地点: ${item.city} ${item.venue_name}</div>`;
|
|
26
|
+
const liveTime = `<div>活动时间: ${item.tlabel}</div>`;
|
|
27
|
+
const staff = `<div>参展览嘉宾: ${item.staff}</div>`;
|
|
28
|
+
const countdown = `<div>结束日期: ${item.countdown}</div>`;
|
|
29
|
+
const price = `<div>最低价: ${item.price_low / 100} ; 最高价: ${item.price_high / 100}</div>`;
|
|
30
|
+
return {
|
|
31
|
+
title: item.project_name,
|
|
32
|
+
link: item.url,
|
|
33
|
+
description: bodyHtml + coordinate + liveTime + staff + countdown + price,
|
|
34
|
+
pubDate: parseDate(item.sale_start_time * 1000),
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
ctx.state.data = {
|
|
39
|
+
title: `bilibili会员购票务-${area}`,
|
|
40
|
+
link,
|
|
41
|
+
item: items,
|
|
42
|
+
};
|
|
43
|
+
};
|
package/lib/v2/bilibili/radar.js
CHANGED
|
@@ -143,5 +143,13 @@ module.exports = {
|
|
|
143
143
|
target: '/bilibili/live/room/:roomID',
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
|
+
show: [
|
|
147
|
+
{
|
|
148
|
+
title: '会员购票务',
|
|
149
|
+
docs: 'https://docs.rsshub.app/routes/social-media#bilibili-hui-yuan-gou-zuo-pin',
|
|
150
|
+
source: '/platform',
|
|
151
|
+
target: '/bilibili/platform/:area?/:p_type?/:uid?',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
146
154
|
},
|
|
147
155
|
};
|
|
@@ -21,6 +21,7 @@ module.exports = (router) => {
|
|
|
21
21
|
router.get('/online/:disableEmbed?', require('./online'));
|
|
22
22
|
router.get('/partion/:tid/:disableEmbed?', require('./partion'));
|
|
23
23
|
router.get('/partion/ranking/:tid/:days?/:disableEmbed?', require('./partion-ranking'));
|
|
24
|
+
router.get('/platform/:area?/:p_type?/:uid?', require('./platform'));
|
|
24
25
|
router.get('/popular/all', require('./popular'));
|
|
25
26
|
router.get('/ranking/:rid?/:day?/:arc_type?/:disableEmbed?', require('./ranking'));
|
|
26
27
|
router.get('/readlist/:listid', require('./readlist'));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const cache = require('./cache');
|
|
3
3
|
const utils = require('./utils');
|
|
4
|
+
const config = require('@/config').value;
|
|
4
5
|
|
|
5
6
|
module.exports = async (ctx) => {
|
|
6
7
|
const uid = ctx.params.uid;
|
|
@@ -12,6 +13,7 @@ module.exports = async (ctx) => {
|
|
|
12
13
|
url: `https://api.bilibili.com/x/v2/fav/video?vmid=${uid}&ps=30&tid=0&keyword=&pn=1&order=fav_time`,
|
|
13
14
|
headers: {
|
|
14
15
|
Referer: `https://space.bilibili.com/${uid}/#/favlist`,
|
|
16
|
+
Cookie: config.bilibili.cookies[uid],
|
|
15
17
|
},
|
|
16
18
|
});
|
|
17
19
|
const data = response.data;
|
package/lib/v2/bilibili/video.js
CHANGED
|
@@ -16,7 +16,14 @@ module.exports = async (ctx) => {
|
|
|
16
16
|
// Cookie: cookie,
|
|
17
17
|
// },
|
|
18
18
|
// });
|
|
19
|
-
const params = utils.addVerifyInfo(
|
|
19
|
+
const params = utils.addVerifyInfo(
|
|
20
|
+
`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=[]&dm_img_str=${Buffer.from('no webgl').toString('base64').slice(0, -2)}&dm_cover_img_str=${Buffer.from(
|
|
21
|
+
'no webgl'
|
|
22
|
+
)
|
|
23
|
+
.toString('base64')
|
|
24
|
+
.slice(0, -2)}`,
|
|
25
|
+
verifyString
|
|
26
|
+
);
|
|
20
27
|
const response = await got(`https://api.bilibili.com/x/space/wbi/arc/search?${params}`, {
|
|
21
28
|
headers: {
|
|
22
29
|
Referer: `https://space.bilibili.com/${uid}/video?tid=0&page=1&keyword=&order=pubdate`,
|
package/lib/v2/bnu/dwxgb.js
CHANGED
|
@@ -6,44 +6,39 @@ module.exports = async (ctx) => {
|
|
|
6
6
|
const { category, type } = ctx.params;
|
|
7
7
|
|
|
8
8
|
const rootUrl = 'https://dwxgb.bnu.edu.cn';
|
|
9
|
-
|
|
9
|
+
const currentUrl = `${rootUrl}/${category}/${type}/index.html`;
|
|
10
10
|
|
|
11
11
|
let response;
|
|
12
12
|
try {
|
|
13
|
-
response = await got(
|
|
14
|
-
method: 'get',
|
|
15
|
-
url: currentUrl,
|
|
16
|
-
});
|
|
13
|
+
response = await got(currentUrl);
|
|
17
14
|
} catch (e) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
15
|
+
try {
|
|
16
|
+
response = await got(`${rootUrl}/${category}/${type}/index.htm`);
|
|
17
|
+
} catch (error) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
const $ = cheerio.load(response.data);
|
|
26
23
|
|
|
27
24
|
const list = $('ul.container.list > li')
|
|
28
|
-
.map((_, item) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
.map((_, item) => {
|
|
26
|
+
const link = $(item).find('a').attr('href');
|
|
27
|
+
const absoluteLink = new URL(link, currentUrl).href;
|
|
28
|
+
return {
|
|
29
|
+
title: $(item).find('a').text().trim(),
|
|
30
|
+
pubDate: parseDate($(item).find('span').text()),
|
|
31
|
+
link: absoluteLink,
|
|
32
|
+
};
|
|
33
|
+
})
|
|
33
34
|
.get();
|
|
34
35
|
|
|
35
36
|
const items = await Promise.all(
|
|
36
37
|
list.map((item) =>
|
|
37
38
|
ctx.cache.tryGet(item.link, async () => {
|
|
38
|
-
const detailResponse = await got(
|
|
39
|
-
method: 'get',
|
|
40
|
-
url: item.link,
|
|
41
|
-
});
|
|
42
|
-
|
|
39
|
+
const detailResponse = await got(item.link);
|
|
43
40
|
const content = cheerio.load(detailResponse.data);
|
|
44
|
-
|
|
45
41
|
item.description = content('div.article.typo').html();
|
|
46
|
-
|
|
47
42
|
return item;
|
|
48
43
|
})
|
|
49
44
|
)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const queryString = require('query-string');
|
|
3
|
+
const cheerio = require('cheerio');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const baseUrl = 'https://mmda.booru.org';
|
|
7
|
+
const tags = ctx.params.tags;
|
|
8
|
+
|
|
9
|
+
const query = queryString.stringify(
|
|
10
|
+
{
|
|
11
|
+
tags,
|
|
12
|
+
page: 'post',
|
|
13
|
+
s: 'list',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
skipNull: true,
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const { data: response } = await got(`${baseUrl}/index.php`, {
|
|
21
|
+
searchParams: query,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const $ = cheerio.load(response);
|
|
25
|
+
const list = $('#post-list > div.content > div > div:nth-child(3) span')
|
|
26
|
+
.toArray()
|
|
27
|
+
.map((item) => {
|
|
28
|
+
item = $(item);
|
|
29
|
+
const a = item.find('a').first();
|
|
30
|
+
|
|
31
|
+
const scriptStr = item.find('script[type="text/javascript"]').first().text();
|
|
32
|
+
const user = scriptStr.match(/user':'(.*?)'/)?.[1] ?? '';
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
title: a.find('img').first().attr('title'),
|
|
36
|
+
link: `${baseUrl}/${a.attr('href')}`,
|
|
37
|
+
author: user,
|
|
38
|
+
description: a.html(),
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
ctx.state.data = {
|
|
43
|
+
title: tags,
|
|
44
|
+
link: `${baseUrl}/index.php?${query}`,
|
|
45
|
+
item: list,
|
|
46
|
+
};
|
|
47
|
+
};
|