rsshub 1.0.0-master.f7add90 → 1.0.0-master.f7bfacc
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 +0 -8
- package/lib/app.js +2 -0
- package/lib/config.js +17 -1
- package/lib/middleware/cache/memory.js +2 -2
- package/lib/middleware/template.js +14 -1
- package/lib/radar-rules.js +0 -76
- package/lib/radar.js +22 -3
- package/lib/router.js +27 -30
- package/lib/routes/axis-studios/work.js +0 -0
- package/lib/routes/blow-studio/work.js +0 -0
- package/lib/routes/blur-studio/index.js +0 -0
- package/lib/routes/digic-pictures/index.js +0 -0
- package/lib/routes/gov/hunan/notice.js +1 -1
- package/lib/routes/method-studios/index.js +0 -0
- package/lib/routes/ps/product.js +0 -0
- package/lib/routes/unit-image/films.js +0 -0
- package/lib/static/logo.png +0 -0
- package/lib/utils/puppeteer.js +2 -2
- package/lib/utils/request-wrapper.js +2 -2
- package/lib/v2/141jav/index.js +71 -0
- package/lib/v2/141jav/maintainer.js +3 -0
- package/lib/v2/141jav/radar.js +40 -0
- package/lib/v2/141jav/router.js +3 -0
- package/lib/v2/141jav/templates/description.art +47 -0
- package/lib/v2/141ppv/index.js +71 -0
- package/lib/v2/141ppv/maintainer.js +3 -0
- package/lib/v2/141ppv/radar.js +40 -0
- package/lib/v2/141ppv/router.js +3 -0
- package/lib/v2/141ppv/templates/description.art +47 -0
- package/lib/v2/3dmgame/game.js +39 -0
- package/lib/v2/3dmgame/maintainer.js +4 -0
- package/lib/v2/3dmgame/news_center.js +42 -0
- package/lib/v2/3dmgame/radar.js +19 -0
- package/lib/v2/3dmgame/router.js +4 -0
- package/lib/v2/3dmgame/utils.js +30 -0
- package/lib/v2/4ksj/forum.js +128 -0
- package/lib/v2/4ksj/maintainer.js +3 -0
- package/lib/v2/4ksj/radar.js +13 -0
- package/lib/v2/4ksj/router.js +3 -0
- package/lib/v2/4ksj/templates/description.art +56 -0
- package/lib/v2/5eplay/index.js +100 -0
- package/lib/v2/5eplay/maintainer.js +3 -0
- package/lib/v2/5eplay/radar.js +13 -0
- package/lib/v2/5eplay/router.js +3 -0
- package/lib/v2/5eplay/utils.js +35 -0
- package/lib/v2/aeon/category.js +27 -0
- package/lib/v2/aeon/maintainer.js +4 -0
- package/lib/v2/aeon/radar.js +19 -0
- package/lib/v2/aeon/router.js +4 -0
- package/lib/v2/aeon/templates/essay.art +3 -0
- package/lib/v2/aeon/templates/video.art +10 -0
- package/lib/v2/aeon/type.js +29 -0
- package/lib/v2/aeon/utils.js +50 -0
- package/lib/v2/aisixiang/column.js +36 -0
- package/lib/v2/aisixiang/maintainer.js +6 -0
- package/lib/v2/aisixiang/radar.js +29 -0
- package/lib/v2/aisixiang/router.js +6 -0
- package/lib/v2/aisixiang/thinktank.js +49 -0
- package/lib/v2/aisixiang/toplist.js +37 -0
- package/lib/v2/aisixiang/utils.js +37 -0
- package/lib/v2/aliresearch/information.js +57 -0
- package/lib/v2/aliresearch/maintainer.js +3 -0
- package/lib/v2/aliresearch/radar.js +13 -0
- package/lib/v2/aliresearch/router.js +3 -0
- package/lib/v2/amazon/kindle-software-updates.js +1 -0
- package/lib/v2/atcoder/radar.js +1 -1
- package/lib/v2/bad/index.js +58 -0
- package/lib/v2/bad/maintainer.js +3 -0
- package/lib/v2/bad/radar.js +13 -0
- package/lib/v2/bad/router.js +3 -0
- package/lib/v2/baozimh/index.js +1 -1
- package/lib/v2/bilibili/cache.js +17 -5
- package/lib/v2/bilibili/hotSearch.js +5 -1
- package/lib/v2/bilibili/userChannel.js +2 -1
- package/lib/v2/bilibili/userCollection.js +3 -1
- package/lib/v2/bilibili/utils.js +3 -3
- package/lib/v2/bilibili/video-all.js +7 -2
- package/lib/v2/bilibili/video.js +1 -1
- package/lib/v2/bilibili/vsearch.js +1 -1
- package/lib/v2/bjsk/keti.js +54 -0
- package/lib/v2/bjsk/maintainer.js +1 -0
- package/lib/v2/bjsk/radar.js +8 -0
- package/lib/v2/bjsk/router.js +1 -0
- package/lib/v2/bmkg/earthquake.js +29 -0
- package/lib/v2/bmkg/maintainer.js +4 -0
- package/lib/v2/bmkg/news.js +42 -0
- package/lib/v2/bmkg/radar.js +19 -0
- package/lib/v2/bmkg/router.js +4 -0
- package/lib/v2/chinathinktanks/radar.js +1 -1
- package/lib/v2/cls/depth.js +34 -32
- package/lib/v2/cls/hot.js +38 -29
- package/lib/v2/cls/maintainer.js +1 -1
- package/lib/v2/cls/radar.js +1 -1
- package/lib/v2/cls/telegraph.js +25 -23
- package/lib/v2/cls/templates/depth.art +3 -3
- package/lib/v2/cls/templates/telegraph.art +5 -5
- package/lib/v2/cls/utils.js +12 -6
- package/lib/v2/cneb/maintainer.js +4 -0
- package/lib/v2/cneb/radar.js +19 -0
- package/lib/v2/cneb/router.js +5 -0
- package/lib/v2/cneb/yjxw.js +72 -0
- package/lib/v2/cneb/yjxx.js +50 -0
- package/lib/v2/cnki/author.js +38 -26
- package/lib/v2/cnki/maintainer.js +1 -1
- package/lib/v2/comicat/maintainer.js +3 -0
- package/lib/v2/comicat/radar.js +11 -0
- package/lib/v2/comicat/router.js +3 -0
- package/lib/v2/comicat/search.js +42 -0
- package/lib/v2/coomer/utils.js +3 -1
- package/lib/v2/cqgas/maintainer.js +3 -0
- package/lib/v2/cqgas/radar.js +13 -0
- package/lib/v2/cqgas/router.js +3 -0
- package/lib/v2/cqgas/tqtz.js +36 -0
- package/lib/v2/cssn/iolaw.js +38 -0
- package/lib/v2/cssn/maintainer.js +3 -0
- package/lib/v2/cssn/radar.js +11 -0
- package/lib/v2/cssn/router.js +3 -0
- package/lib/v2/daily/discussed.js +73 -0
- package/lib/v2/daily/index.js +83 -0
- package/lib/v2/daily/maintainer.js +5 -0
- package/lib/v2/daily/radar.js +25 -0
- package/lib/v2/daily/router.js +5 -0
- package/lib/v2/daily/upvoted.js +77 -0
- package/lib/v2/daily/utils.js +39 -0
- package/lib/v2/dblp/maintainer.js +3 -0
- package/lib/v2/dblp/publication.js +70 -0
- package/lib/v2/dblp/radar.js +13 -0
- package/lib/v2/dblp/router.js +3 -0
- package/lib/v2/deadline/maintainer.js +4 -0
- package/lib/v2/deadline/posts.js +53 -0
- package/lib/v2/deadline/radar.js +13 -0
- package/lib/v2/deadline/router.js +3 -0
- package/lib/v2/deadline/templates/desc.art +10 -0
- package/lib/v2/devolverdigital/blog.js +50 -0
- package/lib/v2/devolverdigital/maintainer.js +3 -0
- package/lib/v2/devolverdigital/radar.js +13 -0
- package/lib/v2/devolverdigital/router.js +3 -0
- package/lib/v2/dhu/maintainer.js +1 -0
- package/lib/v2/dhu/radar.js +6 -0
- package/lib/v2/dhu/router.js +1 -0
- package/lib/v2/dhu/yjs/zs.js +46 -0
- package/lib/v2/discord/channel.js +8 -8
- package/lib/v2/discord/maintainer.js +1 -1
- package/lib/v2/discord/radar.js +2 -2
- package/lib/v2/discord/router.js +1 -1
- package/lib/v2/domp4/detail.js +26 -0
- package/lib/v2/dorohedoro/maintainer.js +3 -0
- package/lib/v2/dorohedoro/news.js +69 -0
- package/lib/v2/dorohedoro/radar.js +13 -0
- package/lib/v2/dorohedoro/router.js +3 -0
- package/lib/v2/duozhuayu/maintainer.js +3 -0
- package/lib/v2/duozhuayu/radar.js +13 -0
- package/lib/v2/duozhuayu/router.js +3 -0
- package/lib/{routes → v2}/duozhuayu/search.js +23 -32
- package/lib/v2/duozhuayu/templates/book.art +10 -0
- package/lib/v2/dxy/maintainer.js +4 -0
- package/lib/v2/dxy/profile/thread.js +82 -0
- package/lib/v2/dxy/radar.js +21 -0
- package/lib/v2/dxy/router.js +4 -0
- package/lib/v2/dxy/special.js +79 -0
- package/lib/v2/dxy/utils.js +72 -0
- package/lib/v2/eastmoney/maintainer.js +1 -0
- package/lib/v2/eastmoney/radar.js +8 -0
- package/lib/v2/eastmoney/report/index.js +41 -0
- package/lib/v2/eastmoney/router.js +2 -1
- package/lib/v2/embassy/radar.js +1 -1
- package/lib/v2/embassy/supportedList.js +4 -4
- package/lib/v2/firecore/index.js +37 -0
- package/lib/v2/firecore/maintainer.js +3 -0
- package/lib/v2/firecore/radar.js +13 -0
- package/lib/v2/firecore/router.js +3 -0
- package/lib/v2/flyert/creditcard.js +3 -0
- package/lib/v2/flyert/utils.js +14 -8
- package/lib/v2/followin/index.js +35 -0
- package/lib/v2/followin/kol.js +25 -0
- package/lib/v2/followin/maintainer.js +7 -0
- package/lib/v2/followin/news.js +21 -0
- package/lib/v2/followin/radar.js +37 -0
- package/lib/v2/followin/router.js +7 -0
- package/lib/v2/followin/tag.js +44 -0
- package/lib/v2/followin/templates/thread.art +15 -0
- package/lib/v2/followin/topic.js +25 -0
- package/lib/v2/followin/utils.js +84 -0
- package/lib/v2/freebuf/index.js +41 -0
- package/lib/v2/freebuf/maintainer.js +3 -0
- package/lib/v2/freebuf/radar.js +13 -0
- package/lib/v2/freebuf/router.js +3 -0
- package/lib/v2/freecomputerbooks/index.js +41 -13
- package/lib/v2/freecomputerbooks/templates/desc.art +3 -0
- package/lib/v2/futunn/main.js +67 -0
- package/lib/v2/futunn/maintainer.js +3 -0
- package/lib/v2/futunn/radar.js +13 -0
- package/lib/v2/futunn/router.js +5 -0
- package/lib/v2/futunn/templates/description.art +6 -0
- package/lib/v2/fzmtr/announcements.js +38 -0
- package/lib/v2/fzmtr/maintainer.js +3 -0
- package/lib/v2/fzmtr/radar.js +11 -0
- package/lib/v2/fzmtr/router.js +3 -0
- package/lib/v2/github/gist.js +35 -0
- package/lib/v2/github/maintainer.js +1 -0
- package/lib/v2/github/radar.js +8 -0
- package/lib/v2/github/router.js +1 -0
- package/lib/v2/gov/cac/index.js +64 -0
- package/lib/v2/gov/ccdi/index.js +1 -1
- package/lib/v2/gov/ccdi/utils.js +1 -1
- package/lib/v2/gov/chongqing/rsks.js +38 -0
- package/lib/v2/gov/maintainer.js +2 -0
- package/lib/v2/gov/news/index.js +10 -5
- package/lib/v2/gov/radar.js +23 -1
- package/lib/v2/gov/router.js +2 -0
- package/lib/v2/gq/tw/index.js +1 -1
- package/lib/v2/guangzhoumetro/maintainer.js +3 -0
- package/lib/v2/guangzhoumetro/news.js +37 -0
- package/lib/v2/guangzhoumetro/radar.js +11 -0
- package/lib/v2/guangzhoumetro/router.js +3 -0
- package/lib/v2/hnu/careers.js +33 -0
- package/lib/v2/hnu/maintainer.js +3 -0
- package/lib/v2/hnu/radar.js +12 -0
- package/lib/v2/hnu/router.js +3 -0
- package/lib/v2/hust/aia/news.js +0 -0
- package/lib/v2/hust/aia/notice.js +0 -0
- package/lib/v2/i-cable/category.js +74 -0
- package/lib/v2/i-cable/maintainer.js +3 -0
- package/lib/v2/i-cable/radar.js +13 -0
- package/lib/v2/i-cable/router.js +3 -0
- package/lib/v2/i-cable/templates/desc.art +8 -0
- package/lib/v2/ibc/maintainer.js +4 -0
- package/lib/{routes/maitta/index.js → v2/ibc/maitta.js} +11 -8
- package/lib/v2/ibc/radar.js +19 -0
- package/lib/v2/ibc/radio.js +73 -0
- package/lib/v2/ibc/router.js +4 -0
- package/lib/v2/ibc/templates/description.art +6 -0
- package/lib/v2/instructables/projects.js +1 -1
- package/lib/v2/ithome/radar.js +3 -3
- package/lib/v2/iwara/index.js +36 -24
- package/lib/v2/iwara/radar.js +1 -1
- package/lib/v2/iwara/subscriptions.js +131 -32
- package/lib/v2/iwara/templates/subscriptions.art +1 -1
- package/lib/v2/line/publisher.js +1 -1
- package/lib/v2/mdpi/maintainer.js +0 -0
- package/lib/v2/mdpi/radar.js +0 -0
- package/lib/v2/mdpi/router.js +0 -0
- package/lib/v2/mdpi/templates/description.art +0 -0
- package/lib/v2/medium/following.js +31 -0
- package/lib/v2/medium/for-you.js +31 -0
- package/lib/v2/medium/graphql.js +190 -0
- package/lib/v2/medium/list.js +32 -0
- package/lib/v2/medium/maintainer.js +6 -0
- package/lib/v2/medium/parse-article.js +60 -0
- package/lib/v2/medium/radar.js +23 -0
- package/lib/v2/medium/router.js +6 -0
- package/lib/v2/medium/tag.js +32 -0
- package/lib/v2/mihoyo/maintainer.js +1 -0
- package/lib/v2/mihoyo/radar.js +16 -0
- package/lib/v2/mihoyo/router.js +1 -0
- package/lib/v2/mihoyo/sr/news.js +71 -0
- package/lib/v2/mihoyo/templates/ys.art +4 -0
- package/lib/v2/mihoyo/ys/news.js +132 -52
- package/lib/v2/nationalgeographic/latest-stories.js +56 -0
- package/lib/v2/nationalgeographic/maintainer.js +3 -0
- package/lib/v2/nationalgeographic/radar.js +13 -0
- package/lib/v2/nationalgeographic/router.js +3 -0
- package/lib/v2/nationalgeographic/templates/stories.art +44 -0
- package/lib/v2/nenu/maintainer.js +4 -0
- package/lib/v2/nenu/radar.js +21 -0
- package/lib/v2/nenu/router.js +4 -0
- package/lib/v2/nenu/sohac.js +60 -0
- package/lib/v2/nenu/yjsy.js +64 -0
- package/lib/v2/newzmz/index.js +55 -44
- package/lib/v2/newzmz/maintainer.js +1 -1
- package/lib/v2/newzmz/radar.js +1 -1
- package/lib/v2/newzmz/router.js +2 -1
- package/lib/v2/newzmz/templates/description.art +7 -0
- package/lib/v2/newzmz/view.js +32 -17
- package/lib/v2/nhentai/util.js +2 -1
- package/lib/v2/nikkei/cn/index.js +2 -2
- package/lib/v2/nju/zcc.js +7 -13
- package/lib/v2/notateslaapp/maintainer.js +3 -0
- package/lib/v2/notateslaapp/radar.js +13 -0
- package/lib/v2/notateslaapp/router.js +3 -0
- package/lib/{routes/tesla → v2/notateslaapp}/update.js +6 -12
- package/lib/v2/notefolio/maintainer.js +3 -0
- package/lib/v2/notefolio/radar.js +13 -0
- package/lib/v2/notefolio/router.js +3 -0
- package/lib/v2/notefolio/search.js +145 -0
- package/lib/v2/notefolio/templates/search.art +9 -0
- package/lib/v2/notion/database.js +161 -0
- package/lib/v2/notion/maintainer.js +3 -0
- package/lib/v2/notion/radar.js +13 -0
- package/lib/v2/notion/router.js +3 -0
- package/lib/v2/nytimes/author.js +1 -1
- package/lib/v2/oeeee/app/channel.js +36 -0
- package/lib/v2/oeeee/app/reporter.js +30 -0
- package/lib/v2/oeeee/maintainer.js +5 -0
- package/lib/v2/oeeee/radar.js +12 -0
- package/lib/v2/oeeee/router.js +5 -0
- package/lib/v2/oeeee/templates/description.art +7 -0
- package/lib/v2/oeeee/utils.js +41 -0
- package/lib/v2/oeeee/web.js +36 -0
- package/lib/v2/openai/blog.js +3 -56
- package/lib/v2/openai/common.js +72 -0
- package/lib/v2/openai/maintainer.js +1 -0
- package/lib/v2/openai/radar.js +8 -0
- package/lib/v2/openai/research.js +32 -0
- package/lib/v2/openai/router.js +1 -0
- package/lib/v2/pumc/maintainer.js +3 -0
- package/lib/v2/pumc/mdadmission.js +62 -0
- package/lib/v2/pumc/radar.js +13 -0
- package/lib/v2/pumc/router.js +3 -0
- package/lib/v2/rattibha/maintainer.js +3 -0
- package/lib/v2/rattibha/radar.js +13 -0
- package/lib/v2/rattibha/router.js +3 -0
- package/lib/v2/rattibha/user.js +45 -0
- package/lib/v2/readhub/index.js +1 -1
- package/lib/{routes → v2}/right/forum.js +21 -23
- package/lib/v2/right/maintainer.js +3 -0
- package/lib/v2/right/radar.js +13 -0
- package/lib/v2/right/router.js +3 -0
- package/lib/v2/rsshub/radar.js +2 -2
- package/lib/v2/sdust/maintainer.js +3 -0
- package/lib/v2/sdust/radar.js +13 -0
- package/lib/v2/sdust/router.js +3 -0
- package/lib/v2/sdust/yjsy/zhaosheng.js +52 -0
- package/lib/v2/sehuatang/maintainer.js +1 -0
- package/lib/v2/sehuatang/router.js +1 -0
- package/lib/v2/sehuatang/user.js +113 -0
- package/lib/v2/shiep/config.js +64 -0
- package/lib/v2/shiep/index.js +13 -34
- package/lib/v2/shiep/radar.js +303 -15
- package/lib/v2/shuiguopai/index.js +1 -1
- package/lib/v2/sina/chuangshiji.js +17 -0
- package/lib/v2/sina/discovery.js +32 -0
- package/lib/v2/sina/finance/china.js +25 -0
- package/lib/v2/sina/finance/stock/usstock.js +37 -0
- package/lib/v2/sina/maintainer.js +8 -0
- package/lib/v2/sina/radar.js +49 -0
- package/lib/v2/sina/rollnews.js +31 -0
- package/lib/v2/sina/router.js +8 -0
- package/lib/v2/sina/sports.js +43 -0
- package/lib/v2/sina/templates/slide.art +3 -0
- package/lib/v2/sina/templates/video.art +5 -0
- package/lib/v2/sina/utils.js +104 -0
- package/lib/v2/sony/downloads.js +1 -0
- package/lib/v2/springer/maintainer.js +0 -0
- package/lib/v2/springer/radar.js +0 -0
- package/lib/v2/springer/router.js +0 -0
- package/lib/v2/springer/templates/description.art +0 -0
- package/lib/v2/sspai/radar.js +1 -1
- package/lib/v2/stbu/jsjxy.js +51 -0
- package/lib/v2/stbu/maintainer.js +4 -0
- package/lib/v2/stbu/radar.js +21 -0
- package/lib/v2/stbu/router.js +4 -0
- package/lib/v2/stbu/xyxw.js +52 -0
- package/lib/v2/storyfm/episodes.js +63 -0
- package/lib/v2/storyfm/maintainer.js +4 -0
- package/lib/v2/storyfm/radar.js +19 -0
- package/lib/v2/storyfm/router.js +4 -0
- package/lib/v2/storyfm/templates/description.art +6 -0
- package/lib/v2/sysu/maintainer.js +1 -0
- package/lib/v2/sysu/radar.js +8 -0
- package/lib/v2/sysu/router.js +1 -0
- package/lib/v2/sysu/ygafz.js +69 -0
- package/lib/v2/techpowerup/index.js +69 -0
- package/lib/v2/techpowerup/maintainer.js +5 -0
- package/lib/v2/techpowerup/radar.js +19 -0
- package/lib/v2/techpowerup/review.js +69 -0
- package/lib/v2/techpowerup/router.js +4 -0
- package/lib/v2/techpowerup/utils.js +84 -0
- package/lib/v2/telecompaper/maintainer.js +4 -0
- package/lib/{routes → v2}/telecompaper/news.js +1 -0
- package/lib/v2/telecompaper/radar.js +15 -0
- package/lib/v2/telecompaper/router.js +4 -0
- package/lib/v2/tencent/news/author.js +12 -8
- package/lib/v2/tiktok/user.js +5 -5
- package/lib/v2/tingshuitz/maintainer.js +1 -0
- package/lib/v2/tingshuitz/radar.js +11 -0
- package/lib/v2/tingshuitz/router.js +1 -0
- package/lib/v2/tingshuitz/shenzhen.js +29 -0
- package/lib/v2/tingshuitz/templates/shenzhen.art +8 -0
- package/lib/v2/tingtingfm/maintainer.js +3 -0
- package/lib/v2/tingtingfm/program.js +104 -0
- package/lib/v2/tingtingfm/radar.js +13 -0
- package/lib/v2/tingtingfm/router.js +3 -0
- package/lib/v2/tingtingfm/templates/audio.art +5 -0
- package/lib/v2/tingtingfm/utils.js +32 -0
- package/lib/v2/twitter/maintainer.js +1 -0
- package/lib/v2/twitter/radar.js +10 -0
- package/lib/v2/twitter/router.js +1 -0
- package/lib/v2/twitter/tweet.js +5 -0
- package/lib/v2/twitter/web-api/tweet.js +25 -0
- package/lib/v2/twitter/web-api/twitter-api.js +41 -2
- package/lib/v2/ustb/maintainer.js +2 -22
- package/lib/v2/ustb/radar.js +8 -0
- package/lib/v2/ustb/router.js +1 -0
- package/lib/{routes/universities → v2}/ustb/tj/news.js +11 -12
- package/lib/v2/utgd/category.js +68 -0
- package/lib/v2/utgd/maintainer.js +5 -0
- package/lib/v2/utgd/radar.js +25 -0
- package/lib/v2/utgd/router.js +5 -0
- package/lib/v2/utgd/templates/description.art +7 -0
- package/lib/v2/utgd/timeline.js +54 -0
- package/lib/v2/utgd/topic.js +70 -0
- package/lib/v2/v1tx/index.js +41 -22
- package/lib/v2/wechat/feeddd.js +12 -3
- package/lib/v2/wechat/mp.js +0 -0
- package/lib/v2/wechat/radar.js +2 -2
- package/lib/v2/weibo/group.js +93 -0
- package/lib/v2/weibo/keyword.js +1 -10
- package/lib/v2/weibo/maintainer.js +4 -3
- package/lib/v2/weibo/router.js +1 -0
- package/lib/v2/weibo/super_index.js +1 -10
- package/lib/v2/weibo/timeline.js +5 -5
- package/lib/v2/weibo/user.js +2 -8
- package/lib/v2/weibo/utils.js +15 -3
- package/lib/v2/winstall/maintainer.js +3 -0
- package/lib/v2/winstall/radar.js +13 -0
- package/lib/v2/winstall/router.js +3 -0
- package/lib/v2/winstall/templates/desc.art +5 -0
- package/lib/v2/winstall/update.js +43 -0
- package/lib/v2/wnacg/index.js +1 -1
- package/lib/v2/wnacg/templates/manga.art +4 -4
- package/lib/v2/wtu/index.js +37 -0
- package/lib/v2/wtu/job.js +80 -0
- package/lib/v2/wtu/maintainer.js +4 -0
- package/lib/v2/wtu/radar.js +22 -0
- package/lib/v2/wtu/router.js +4 -0
- package/lib/v2/xiaohongshu/maintainer.js +1 -1
- package/lib/v2/xiaohongshu/notes.js +16 -0
- package/lib/v2/xiaohongshu/router.js +1 -0
- package/lib/v2/xiaohongshu/util.js +122 -0
- package/lib/v2/yomiuri/maintainer.js +1 -1
- package/lib/v2/yomiuri/news.js +50 -100
- package/lib/v2/yomiuri/radar.js +3 -3
- package/lib/v2/youtube/user.js +1 -1
- package/lib/v2/zcool/radar.js +6 -6
- package/lib/v2/zhihu/answers.js +13 -9
- package/lib/v2/zhihu/radar.js +2 -2
- package/lib/v2/zhubai/maintainer.js +1 -0
- package/lib/v2/zhubai/radar.js +7 -0
- package/lib/v2/zhubai/router.js +1 -0
- package/lib/v2/zhubai/templates/description.art +31 -0
- package/lib/v2/zhubai/top20.js +57 -0
- package/lib/v2/zju/radar.js +1 -1
- package/lib/v2/zyw/hot.js +63 -0
- package/lib/v2/zyw/maintainer.js +3 -0
- package/lib/v2/zyw/radar.js +16 -0
- package/lib/v2/zyw/router.js +3 -0
- package/lib/views/error.art +7 -3
- package/lib/views/rss.art +1 -1
- package/lib/views/welcome.art +2 -2
- package/package.json +115 -124
- package/lib/routes/141jav/141jav.js +0 -37
- package/lib/routes/141ppv/141ppv.js +0 -37
- package/lib/routes/3dm/game.js +0 -42
- package/lib/routes/3dm/news_center.js +0 -54
- package/lib/routes/aeon/category.js +0 -70
- package/lib/routes/aisixiang/column.js +0 -37
- package/lib/routes/aisixiang/ranking.js +0 -37
- package/lib/routes/aisixiang/thinktank.js +0 -40
- package/lib/routes/aisixiang/utils.js +0 -39
- package/lib/routes/cneb/guoneinews.js +0 -27
- package/lib/routes/cneb/yjxx.js +0 -36
- package/lib/routes/futunn/highlights.js +0 -58
- package/lib/routes/icable/category.js +0 -64
- package/lib/routes/notefolio/index.js +0 -67
- package/lib/routes/rss3/blog.js +0 -46
- package/lib/routes/sina/chuangshiji.js +0 -38
- package/lib/routes/sina/discovery.js +0 -52
- package/lib/routes/sina/finance.js +0 -37
- package/lib/routes/sina/rollnews.js +0 -41
- package/lib/routes/sina/sports.js +0 -54
- package/lib/routes/universities/wtu/index.js +0 -34
- /package/lib/{routes → v2}/storyfm/index.js +0 -0
- /package/lib/{routes → v2}/telecompaper/search.js +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const getAcwScV2ByArg1 = (arg1) => {
|
|
2
|
+
const pwd = '3000176000856006061501533003690027800375';
|
|
3
|
+
const hexXor = function (box, pwd) {
|
|
4
|
+
let res = '';
|
|
5
|
+
for (let i = 0x0; i < box.length && i < pwd.length; i += 2) {
|
|
6
|
+
const tmp1 = parseInt(box.slice(i, i + 2), 16);
|
|
7
|
+
const tmp2 = parseInt(pwd.slice(i, i + 2), 16);
|
|
8
|
+
let tmp = (tmp1 ^ tmp2).toString(16);
|
|
9
|
+
if (tmp.length === 1) {
|
|
10
|
+
tmp = '0' + tmp;
|
|
11
|
+
}
|
|
12
|
+
res += tmp;
|
|
13
|
+
}
|
|
14
|
+
return res;
|
|
15
|
+
};
|
|
16
|
+
const unsbox = function (str) {
|
|
17
|
+
const code = [15, 35, 29, 24, 33, 16, 1, 38, 10, 9, 19, 31, 40, 27, 22, 23, 25, 13, 6, 11, 39, 18, 20, 8, 14, 21, 32, 26, 2, 30, 7, 4, 17, 5, 3, 28, 34, 37, 12, 36];
|
|
18
|
+
const res = [];
|
|
19
|
+
for (let i = 0; i < str.length; i++) {
|
|
20
|
+
const cur = str[i];
|
|
21
|
+
for (let j = 0; j < code.length; j++) {
|
|
22
|
+
if (code[j] === i + 1) {
|
|
23
|
+
res[j] = cur;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return res.join('');
|
|
28
|
+
};
|
|
29
|
+
const box = unsbox(arg1);
|
|
30
|
+
return hexXor(box, pwd);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
module.exports = {
|
|
34
|
+
getAcwScV2ByArg1,
|
|
35
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const cheerio = require('cheerio');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
const { getData } = require('./utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const url = `https://aeon.co/${ctx.params.category}`;
|
|
7
|
+
const { data: response } = await got(url);
|
|
8
|
+
const $ = cheerio.load(response);
|
|
9
|
+
|
|
10
|
+
const data = JSON.parse($('script#__NEXT_DATA__').text());
|
|
11
|
+
|
|
12
|
+
const list = data.props.pageProps.section.articles.edges.map((item) => ({
|
|
13
|
+
title: item.node.title,
|
|
14
|
+
author: item.node.authors.map((author) => author.displayName).join(', '),
|
|
15
|
+
link: `https://aeon.co/${item.node.type.toLowerCase()}s/${item.node.slug}`,
|
|
16
|
+
pubDate: item.node.createdAt,
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
const items = await getData(ctx, list);
|
|
20
|
+
|
|
21
|
+
ctx.state.data = {
|
|
22
|
+
title: `AEON | ${data.props.pageProps.section.title}`,
|
|
23
|
+
link: url,
|
|
24
|
+
description: data.props.pageProps.section.metaDescription,
|
|
25
|
+
item: items,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'aeon.co': {
|
|
3
|
+
_name: 'AEON',
|
|
4
|
+
aeon: [
|
|
5
|
+
{
|
|
6
|
+
title: 'Types (Essays, Videos, or Audio)',
|
|
7
|
+
docs: 'https://docs.rsshub.app/new-media.html##aeon',
|
|
8
|
+
source: ['/:type'],
|
|
9
|
+
target: '/aeon/:type',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: 'Category',
|
|
13
|
+
docs: 'https://docs.rsshub.app/new-media.html##aeon',
|
|
14
|
+
source: ['/:category'],
|
|
15
|
+
target: '/aeon/category/:category',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{ set video = article.hosterId }}
|
|
2
|
+
{{ if article.hoster === 'vimeo' }}
|
|
3
|
+
{{ set video = "https://player.vimeo.com/video/" + video + "?dnt=1"}}
|
|
4
|
+
{{ else if article.hoster == 'youtube' }}
|
|
5
|
+
{{ set video = "https://www.youtube-nocookie.com/embed/" + video }}
|
|
6
|
+
{{ /if }}
|
|
7
|
+
|
|
8
|
+
<iframe width="672" height="377" src="{{ video }}" frameborder="0" allowfullscreen></iframe>
|
|
9
|
+
{{@ article.credits}}
|
|
10
|
+
{{@ article.description}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const cheerio = require('cheerio');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
const { getData } = require('./utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const type = ctx.params.type;
|
|
7
|
+
const binaryType = type === 'videos' ? 'videos' : 'essays';
|
|
8
|
+
const capitalizedType = type.charAt(0).toUpperCase() + type.slice(1);
|
|
9
|
+
|
|
10
|
+
const url = `https://aeon.co/${type}`;
|
|
11
|
+
const { data: response } = await got(url);
|
|
12
|
+
const $ = cheerio.load(response);
|
|
13
|
+
|
|
14
|
+
const data = JSON.parse($('script#__NEXT_DATA__').text());
|
|
15
|
+
|
|
16
|
+
const list = data.props.pageProps.articles.map((item) => ({
|
|
17
|
+
title: item.title,
|
|
18
|
+
link: `https://aeon.co/${binaryType}/${item.slug}`,
|
|
19
|
+
pubDate: item.createdAt,
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
const items = await getData(ctx, list);
|
|
23
|
+
|
|
24
|
+
ctx.state.data = {
|
|
25
|
+
title: `AEON | ${capitalizedType}`,
|
|
26
|
+
link: url,
|
|
27
|
+
item: items,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const cheerio = require('cheerio');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
const { art } = require('@/utils/render');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const getData = async (ctx, list) => {
|
|
7
|
+
const items = await Promise.all(
|
|
8
|
+
list.map((item) =>
|
|
9
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
10
|
+
const { data: response } = await got(item.link);
|
|
11
|
+
const $ = cheerio.load(response);
|
|
12
|
+
|
|
13
|
+
const data = JSON.parse($('script#__NEXT_DATA__').text());
|
|
14
|
+
const type = data.props.pageProps.article.type.toLowerCase();
|
|
15
|
+
if (type === 'video') {
|
|
16
|
+
item.description = art(path.join(__dirname, 'templates/video.art'), { article: data.props.pageProps.article });
|
|
17
|
+
} else {
|
|
18
|
+
// Essay or Audio
|
|
19
|
+
// But unfortunately, the method based on __NEXT_DATA__
|
|
20
|
+
// does not include the information of the audio link.
|
|
21
|
+
|
|
22
|
+
// Besides, it seems that the method based on __NEXT_DATA__
|
|
23
|
+
// does not include the information of the two-column
|
|
24
|
+
// images in the article body,
|
|
25
|
+
// e.g. https://aeon.co/essays/how-to-mourn-a-forest-a-lesson-from-west-papua .
|
|
26
|
+
// But that's very rare.
|
|
27
|
+
|
|
28
|
+
item.author = data.props.pageProps.article.authors.map((author) => author.displayName).join(', ');
|
|
29
|
+
|
|
30
|
+
const article = data.props.pageProps.article;
|
|
31
|
+
const capture = cheerio.load(article.body);
|
|
32
|
+
const banner = article.thumbnail.urls.header;
|
|
33
|
+
capture('p.pullquote').remove();
|
|
34
|
+
|
|
35
|
+
const authorsBio = article.authors.map((author) => '<p>' + author.displayName + author.authorBio.replace(/^<p>/g, ' ')).join('');
|
|
36
|
+
|
|
37
|
+
item.description = art(path.join(__dirname, 'templates/essay.art'), { banner, authorsBio, content: capture.html() });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return item;
|
|
41
|
+
})
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
return items;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
module.exports = {
|
|
49
|
+
getData,
|
|
50
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { rootUrl, ProcessFeed } = require('./utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const id = ctx.params.id;
|
|
7
|
+
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : 30;
|
|
8
|
+
|
|
9
|
+
const currentUrl = `${rootUrl}/data/search?column=${id}`;
|
|
10
|
+
|
|
11
|
+
const response = await got({
|
|
12
|
+
method: 'get',
|
|
13
|
+
url: currentUrl,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const $ = cheerio.load(response.data);
|
|
17
|
+
|
|
18
|
+
const title = $('div.article-title a').first().text().replace(/\[|\]/g, '');
|
|
19
|
+
|
|
20
|
+
const items = $('div.search_list a[title]')
|
|
21
|
+
.toArray()
|
|
22
|
+
.map((item) => {
|
|
23
|
+
item = $(item);
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
title: item.text().split(':').pop(),
|
|
27
|
+
link: new URL(item.attr('href'), rootUrl).href,
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
ctx.state.data = {
|
|
32
|
+
title: `爱思想 - ${title}`,
|
|
33
|
+
link: currentUrl,
|
|
34
|
+
item: await ProcessFeed(limit, ctx.cache.tryGet, items),
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'aisixiang.com': {
|
|
3
|
+
_name: '爱思想',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '栏目',
|
|
7
|
+
docs: 'https://docs.rsshub.app/reading.html#ai-si-xiang',
|
|
8
|
+
source: ['/data/search', '/'],
|
|
9
|
+
target: (params, url) => `/aisixiang/column/${new URL(url).searchParams.get('column')}`,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: '排行',
|
|
13
|
+
docs: 'https://docs.rsshub.app/reading.html#ai-si-xiang',
|
|
14
|
+
source: ['/toplist', '/'],
|
|
15
|
+
target: (params, url) => {
|
|
16
|
+
const id = new URL(url).searchParams.get('id');
|
|
17
|
+
const period = new URL(url).searchParams.get('period');
|
|
18
|
+
return `/aisixiang/toplist${id ? `/${id}${(id === '1' || !id) && period ? `/${period}` : ''}` : ''}`;
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: '思想库(专栏)',
|
|
23
|
+
docs: 'https://docs.rsshub.app/reading.html#ai-si-xiang',
|
|
24
|
+
source: ['/thinktank', '/'],
|
|
25
|
+
target: (params, url) => `/aisixiang/thinktank/${new URL(url).href.match(/thinktank\/(.*)\.html/)[1]}`,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
module.exports = function (router) {
|
|
2
|
+
router.get('/column/:id', require('./column'));
|
|
3
|
+
router.get('/ranking/:id?/:period?', require('./toplist'));
|
|
4
|
+
router.get('/toplist/:id?/:period?', require('./toplist'));
|
|
5
|
+
router.get('/thinktank/:id/:type?', require('./thinktank'));
|
|
6
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { rootUrl, ProcessFeed } = require('./utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const id = ctx.params.id;
|
|
7
|
+
const type = ctx.params.type ?? '';
|
|
8
|
+
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : 30;
|
|
9
|
+
|
|
10
|
+
const currentUrl = `${rootUrl}/thinktank/${id}.html`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
const title = `${$('h2').first().text().trim()}${type}`;
|
|
20
|
+
|
|
21
|
+
let items = [];
|
|
22
|
+
|
|
23
|
+
const targetList = $('h3')
|
|
24
|
+
.toArray()
|
|
25
|
+
.filter((h) => (type ? $(h).text() === type : true));
|
|
26
|
+
if (!targetList) {
|
|
27
|
+
throw `Not found ${type} in ${id}: ${currentUrl}`;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
for (const l of targetList) {
|
|
31
|
+
items = [...items, ...$(l).parent().find('ul li a').toArray()];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
items = items.map((item) => {
|
|
35
|
+
item = $(item);
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
title: item.text().split(':').pop(),
|
|
39
|
+
link: new URL(item.attr('href'), rootUrl).href,
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
ctx.state.data = {
|
|
44
|
+
title: `爱思想 - ${title}`,
|
|
45
|
+
link: currentUrl,
|
|
46
|
+
item: await ProcessFeed(limit, ctx.cache.tryGet, items),
|
|
47
|
+
description: $('div.thinktank-author-description-box p').text(),
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { rootUrl, ProcessFeed } = require('./utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const id = ctx.params.id ?? '1';
|
|
7
|
+
const period = ctx.params.period ?? '1';
|
|
8
|
+
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : 30;
|
|
9
|
+
|
|
10
|
+
const currentUrl = `${rootUrl}/toplist${id ? `?id=${id}${id === '1' ? `&period=${period}` : ''}` : ''}`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: currentUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
const title = `${$('.hl').text() || ''}${$('title').text().split('_')[0]}`;
|
|
20
|
+
|
|
21
|
+
const items = $('div.tips a')
|
|
22
|
+
.toArray()
|
|
23
|
+
.map((item) => {
|
|
24
|
+
item = $(item);
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
title: item.text().split(':').pop(),
|
|
28
|
+
link: new URL(item.attr('href'), rootUrl).href,
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
ctx.state.data = {
|
|
33
|
+
title: `爱思想 - ${title}`,
|
|
34
|
+
link: currentUrl,
|
|
35
|
+
item: await ProcessFeed(limit, ctx.cache.tryGet, items),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
|
|
6
|
+
const rootUrl = 'http://www.aisixiang.com';
|
|
7
|
+
|
|
8
|
+
const ProcessFeed = (limit, tryGet, items) =>
|
|
9
|
+
Promise.all(
|
|
10
|
+
items.slice(0, limit).map((item) =>
|
|
11
|
+
tryGet(item.link, async () => {
|
|
12
|
+
const detailResponse = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: item.link,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const content = cheerio.load(detailResponse.data);
|
|
18
|
+
|
|
19
|
+
item.author = content('strong').first().text();
|
|
20
|
+
item.description = content('.article-content').html();
|
|
21
|
+
item.pubDate = timezone(parseDate(content('.info').text().split('时间:').pop()), +8);
|
|
22
|
+
item.category = content('u')
|
|
23
|
+
.first()
|
|
24
|
+
.parent()
|
|
25
|
+
.find('u')
|
|
26
|
+
.toArray()
|
|
27
|
+
.map((a) => content(a).text());
|
|
28
|
+
|
|
29
|
+
return item;
|
|
30
|
+
})
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
module.exports = {
|
|
35
|
+
rootUrl,
|
|
36
|
+
ProcessFeed,
|
|
37
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const timezone = require('@/utils/timezone');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const type = ctx.params.type ?? '新闻';
|
|
7
|
+
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : 50;
|
|
8
|
+
|
|
9
|
+
const rootUrl = 'http://www.aliresearch.com';
|
|
10
|
+
const currentUrl = `${rootUrl}/cn/information`;
|
|
11
|
+
const apiUrl = `${rootUrl}/ch/listArticle`;
|
|
12
|
+
|
|
13
|
+
const response = await got({
|
|
14
|
+
method: 'post',
|
|
15
|
+
url: apiUrl,
|
|
16
|
+
json: {
|
|
17
|
+
pageNo: 1,
|
|
18
|
+
pageSize: 10,
|
|
19
|
+
type,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
let items = response.data.data.slice(0, limit).map((item) => ({
|
|
24
|
+
title: item.articleCode,
|
|
25
|
+
author: item.author,
|
|
26
|
+
pubDate: timezone(parseDate(item.gmtCreated), +8),
|
|
27
|
+
link: `${rootUrl}/ch/information/informationdetails?articleCode=${item.articleCode}`,
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
items = await Promise.all(
|
|
31
|
+
items.map((item) =>
|
|
32
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
33
|
+
const detailResponse = await got({
|
|
34
|
+
method: 'post',
|
|
35
|
+
url: `${rootUrl}/ch/getArticle`,
|
|
36
|
+
json: {
|
|
37
|
+
articleCode: item.title,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const data = detailResponse.data.data;
|
|
42
|
+
|
|
43
|
+
item.title = data.title;
|
|
44
|
+
item.description = data.content;
|
|
45
|
+
item.category = data.special.split(',');
|
|
46
|
+
|
|
47
|
+
return item;
|
|
48
|
+
})
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
ctx.state.data = {
|
|
53
|
+
title: `阿里研究院 - ${type}`,
|
|
54
|
+
link: currentUrl,
|
|
55
|
+
item: items,
|
|
56
|
+
};
|
|
57
|
+
};
|
package/lib/v2/atcoder/radar.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
{
|
|
12
12
|
title: 'Contests',
|
|
13
13
|
docs: 'https://docs.rsshub.app/programming.html#atcoder-contests',
|
|
14
|
-
source: ['/contests/archive', '/contests'
|
|
14
|
+
source: ['/contests/archive', '/contests'],
|
|
15
15
|
target: (params, url) =>
|
|
16
16
|
`/atcoder/content/${new URL(url).searchParams.get('lang') ?? 'en'}/${new URL(url).searchParams.get('ratedType') ?? '0'}/${new URL(url).searchParams.get('category') ?? '0'}/${
|
|
17
17
|
new URL(url).searchParams.get('keyword') ?? ''
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const rootUrl = 'https://bad.news';
|
|
8
|
+
const currentUrl = `${rootUrl}${ctx.path === '/' ? '' : ctx.path}`;
|
|
9
|
+
|
|
10
|
+
const response = await got({
|
|
11
|
+
method: 'get',
|
|
12
|
+
url: currentUrl,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const $ = cheerio.load(response.data);
|
|
16
|
+
|
|
17
|
+
$('.option, .pagination').remove();
|
|
18
|
+
|
|
19
|
+
const items = $('.entry')
|
|
20
|
+
.toArray()
|
|
21
|
+
.map((item) => {
|
|
22
|
+
item = $(item);
|
|
23
|
+
|
|
24
|
+
const a = item.find('a.title');
|
|
25
|
+
|
|
26
|
+
item.find('img').each(function () {
|
|
27
|
+
$(this).attr('src', $(this).attr('data-echo'));
|
|
28
|
+
$(this).removeClass('lazy');
|
|
29
|
+
$(this).removeAttr('data-echo');
|
|
30
|
+
$(this).removeAttr('id');
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
item.find('video').each(function () {
|
|
34
|
+
$(this).attr('poster', $(this).attr('data-echo'));
|
|
35
|
+
$(this).removeAttr('data-echo');
|
|
36
|
+
$(this).removeAttr('onerror');
|
|
37
|
+
$(this).removeAttr('id');
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
title: a.text(),
|
|
42
|
+
link: a.attr('href'),
|
|
43
|
+
description: item.find('.coverdiv').html(),
|
|
44
|
+
author: item.find('.author').text().trim(),
|
|
45
|
+
pubDate: timezone(parseDate(item.find('time').attr('datetime')), +8),
|
|
46
|
+
category: item
|
|
47
|
+
.find('.label')
|
|
48
|
+
.toArray()
|
|
49
|
+
.map((l) => $(l).text().trim()),
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
ctx.state.data = {
|
|
54
|
+
title: `Bad.news - ${$('.active').text()}${$('.selected').text()}`,
|
|
55
|
+
link: currentUrl,
|
|
56
|
+
item: items,
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'bad.news': {
|
|
3
|
+
_name: 'Bad.news',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '通用',
|
|
7
|
+
docs: 'https://docs.rsshub.app/new-media.html#bad-news-tong-yong',
|
|
8
|
+
source: ['/'],
|
|
9
|
+
target: (params, url) => `/bad${new URL(url).href.match(/bad\.news(.*?)/)[1]}`,
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
};
|
package/lib/v2/baozimh/index.js
CHANGED
|
@@ -12,7 +12,7 @@ module.exports = async (ctx) => {
|
|
|
12
12
|
const response = await got.get(url);
|
|
13
13
|
const $ = cheerio.load(response.data);
|
|
14
14
|
const comicTitle = $('div > div.pure-u-1-1.pure-u-sm-2-3.pure-u-md-3-4 > div > h1').text();
|
|
15
|
-
const list = $('#layout > div.comics-detail > div:nth-child(3) > div > div:nth-child(
|
|
15
|
+
const list = $('#layout > div.comics-detail > div:nth-child(3) > div > div:nth-child(4) > div')
|
|
16
16
|
.map((_, item) => {
|
|
17
17
|
const title = $(item).find('span').text();
|
|
18
18
|
const link = rootUrl + $(item).find('a').attr('href');
|