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
package/package.json
CHANGED
|
@@ -1,98 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsshub",
|
|
3
|
-
"version": "1.0.0-master.
|
|
3
|
+
"version": "1.0.0-master.f7bfacc",
|
|
4
4
|
"description": "Make RSS Great Again!",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"lib"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"start": "node lib/index.js",
|
|
11
|
-
"dev": "cross-env NODE_ENV=dev nodemon --inspect lib/index.js",
|
|
12
|
-
"profiling": "NODE_ENV=production node --prof lib/index.js",
|
|
13
|
-
"docs:dev": "vuepress dev docs",
|
|
14
|
-
"docs:build": "vuepress build docs",
|
|
15
|
-
"build:all": "npm run build:radar && npm run build:maintainer",
|
|
16
|
-
"build:radar": "node scripts/workflow/build-radar.js",
|
|
17
|
-
"build:maintainer": "node scripts/workflow/build-maintainer.js",
|
|
18
|
-
"lint": "eslint .",
|
|
19
|
-
"format": "eslint \"**/*.{js,yml}\" --fix && node docs/.format/format.js && prettier \"**/*.{js,json}\" --write",
|
|
20
|
-
"format:staged": "eslint \"**/*.{js,yml}\" --fix && node docs/.format/format.js --staged && pretty-quick --staged --verbose --pattern \"**/*.{js,json}\"",
|
|
21
|
-
"format:check": "eslint \"**/*.{js,yml}\" && prettier-check \"**/*.{js,json}\"",
|
|
22
|
-
"jest": "cross-env NODE_ENV=test jest --runInBand --forceExit --detectOpenHandles",
|
|
23
|
-
"jest:coverage": "cross-env NODE_ENV=test jest --coverage --reporters=default --reporters=jest-junit --runInBand --forceExit --detectOpenHandles",
|
|
24
|
-
"jest:watch": "cross-env NODE_ENV=test jest --watch",
|
|
25
|
-
"test": "npm run format:check && npm run jest:coverage"
|
|
26
|
-
},
|
|
27
|
-
"reporters": [
|
|
28
|
-
"default",
|
|
29
|
-
"jest-junit"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"RSS"
|
|
30
7
|
],
|
|
31
|
-
"
|
|
32
|
-
|
|
8
|
+
"homepage": "https://github.com/DIYgod/RSSHub#readme",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/DIYgod/RSSHub/issues"
|
|
33
11
|
},
|
|
34
12
|
"repository": {
|
|
35
13
|
"type": "git",
|
|
36
14
|
"url": "git+https://github.com/DIYgod/RSSHub.git"
|
|
37
15
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "DIYgod",
|
|
18
|
+
"main": "lib/pkg.js",
|
|
19
|
+
"files": [
|
|
20
|
+
"lib"
|
|
40
21
|
],
|
|
41
|
-
"
|
|
42
|
-
"
|
|
22
|
+
"nodemonConfig": {
|
|
23
|
+
"ext": "art,js,mjs,json",
|
|
24
|
+
"watch": [
|
|
25
|
+
".env",
|
|
26
|
+
"lib",
|
|
27
|
+
"test"
|
|
28
|
+
]
|
|
43
29
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
30
|
+
"jest": {
|
|
31
|
+
"bail": true,
|
|
32
|
+
"collectCoverageFrom": [
|
|
33
|
+
"lib/**/*.js",
|
|
34
|
+
"!lib/routes/**/*.js",
|
|
35
|
+
"!lib/v2/**/*.js",
|
|
36
|
+
"!lib/router.js",
|
|
37
|
+
"!lib/maintainer.js",
|
|
38
|
+
"!lib/radar.js",
|
|
39
|
+
"!lib/radar-rules.js"
|
|
40
|
+
],
|
|
41
|
+
"coverageReporters": [
|
|
42
|
+
"text-summary",
|
|
43
|
+
"lcov"
|
|
44
|
+
],
|
|
45
|
+
"moduleNameMapper": {
|
|
46
|
+
"@/(.*)": "<rootDir>/lib/$1"
|
|
47
|
+
},
|
|
48
|
+
"testEnvironment": "node",
|
|
49
|
+
"testMatch": [
|
|
50
|
+
"**/test/**/*.js"
|
|
51
|
+
],
|
|
52
|
+
"testPathIgnorePatterns": [
|
|
53
|
+
"/node_modules/",
|
|
54
|
+
"/lib/"
|
|
55
|
+
]
|
|
48
56
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
"@microsoft/eslint-formatter-sarif": "3.0.0",
|
|
52
|
-
"@napi-rs/pinyin": "1.7.1",
|
|
53
|
-
"@types/koa": "2.13.6",
|
|
54
|
-
"@vercel/nft": "0.22.6",
|
|
55
|
-
"@vuepress/plugin-back-to-top": "1.9.9",
|
|
56
|
-
"@vuepress/plugin-google-analytics": "1.9.9",
|
|
57
|
-
"@vuepress/plugin-pwa": "1.9.9",
|
|
58
|
-
"@vuepress/shared-utils": "1.9.9",
|
|
59
|
-
"cross-env": "7.0.3",
|
|
60
|
-
"eslint": "8.38.0",
|
|
61
|
-
"eslint-config-prettier": "8.8.0",
|
|
62
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
63
|
-
"eslint-plugin-yml": "1.5.0",
|
|
64
|
-
"fs-extra": "11.1.1",
|
|
65
|
-
"jest": "29.5.0",
|
|
66
|
-
"jest-junit": "16.0.0",
|
|
67
|
-
"meilisearch": "0.32.3",
|
|
68
|
-
"mockdate": "3.0.5",
|
|
69
|
-
"nock": "13.3.0",
|
|
70
|
-
"nodemon": "2.0.22",
|
|
71
|
-
"prettier": "2.8.7",
|
|
72
|
-
"prettier-check": "2.0.0",
|
|
73
|
-
"pretty-quick": "3.1.3",
|
|
74
|
-
"remark": "13.0.0",
|
|
75
|
-
"remark-frontmatter": "3.0.0",
|
|
76
|
-
"remark-gfm": "1.0.0",
|
|
77
|
-
"remark-pangu": "2.2.0",
|
|
78
|
-
"remark-parse": "9.0.0",
|
|
79
|
-
"remark-preset-prettier": "0.5.1",
|
|
80
|
-
"remark-stringify": "9.0.1",
|
|
81
|
-
"request-promise-native": "1.0.9",
|
|
82
|
-
"staged-git-files": "1.3.0",
|
|
83
|
-
"string-width": "4.2.3",
|
|
84
|
-
"supertest": "6.3.3",
|
|
85
|
-
"tosource": "2.0.0-alpha.3",
|
|
86
|
-
"unified": "9.2.2",
|
|
87
|
-
"vuepress": "1.9.9",
|
|
88
|
-
"vuepress-plugin-meilisearch": "0.13.0",
|
|
89
|
-
"vuepress-plugin-sitemap": "2.3.1",
|
|
90
|
-
"yorkie": "2.0.0"
|
|
57
|
+
"jest-junit": {
|
|
58
|
+
"outputDirectory": "coverage"
|
|
91
59
|
},
|
|
92
60
|
"dependencies": {
|
|
93
61
|
"@koa/router": "12.0.0",
|
|
62
|
+
"@notionhq/client": "2.2.5",
|
|
94
63
|
"@postlight/parser": "2.2.3",
|
|
95
|
-
"@sentry/node": "7.
|
|
64
|
+
"@sentry/node": "7.53.1",
|
|
96
65
|
"aes-js": "3.1.2",
|
|
97
66
|
"art-template": "4.13.2",
|
|
98
67
|
"bbcodejs": "0.0.4",
|
|
@@ -104,88 +73,110 @@
|
|
|
104
73
|
"dayjs": "1.11.7",
|
|
105
74
|
"dotenv": "16.0.3",
|
|
106
75
|
"emailjs-imap-client": "3.1.0",
|
|
107
|
-
"entities": "
|
|
76
|
+
"entities": "4.5.0",
|
|
108
77
|
"etag": "1.8.1",
|
|
109
78
|
"fanfou-sdk": "4.2.0",
|
|
110
79
|
"git-rev-sync": "3.0.2",
|
|
111
80
|
"googleapis": "118.0.0",
|
|
112
81
|
"got": "11.8.6",
|
|
113
|
-
"https-proxy-agent": "
|
|
82
|
+
"https-proxy-agent": "7.0.0",
|
|
114
83
|
"iconv-lite": "0.6.3",
|
|
115
84
|
"instagram-private-api": "1.45.3",
|
|
116
85
|
"ioredis": "5.3.2",
|
|
117
86
|
"ip-regex": "4.3.0",
|
|
118
87
|
"is-localhost-ip": "2.0.0",
|
|
119
|
-
"jsdom": "
|
|
88
|
+
"jsdom": "22.1.0",
|
|
120
89
|
"json-bigint": "1.0.0",
|
|
121
90
|
"json5": "2.2.3",
|
|
122
91
|
"koa": "2.14.2",
|
|
123
92
|
"koa-basic-auth": "4.0.0",
|
|
124
93
|
"koa-favicon": "2.1.0",
|
|
125
94
|
"koa-mount": "4.0.0",
|
|
126
|
-
"
|
|
95
|
+
"koa-static": "5.0.0",
|
|
96
|
+
"lru-cache": "9.1.1",
|
|
127
97
|
"lz-string": "1.5.0",
|
|
128
98
|
"mailparser": "3.6.4",
|
|
129
99
|
"markdown-it": "13.0.1",
|
|
130
100
|
"module-alias": "2.2.2",
|
|
101
|
+
"notion-to-md": "3.0.1",
|
|
131
102
|
"pidusage": "3.0.2",
|
|
132
103
|
"plist": "3.0.6",
|
|
133
104
|
"proxy-chain": "2.3.0",
|
|
134
|
-
"puppeteer": "
|
|
105
|
+
"puppeteer": "20.4.0",
|
|
135
106
|
"puppeteer-extra": "3.3.6",
|
|
136
107
|
"puppeteer-extra-plugin-stealth": "2.11.2",
|
|
108
|
+
"puppeteer-extra-plugin-user-data-dir": "2.4.1",
|
|
109
|
+
"puppeteer-extra-plugin-user-preferences": "2.4.1",
|
|
137
110
|
"query-string": "7.1.3",
|
|
138
111
|
"rand-user-agent": "1.0.109",
|
|
139
|
-
"re2": "1.
|
|
112
|
+
"re2": "1.19.0",
|
|
140
113
|
"require-all": "3.0.0",
|
|
141
114
|
"rss-parser": "3.13.0",
|
|
142
115
|
"showdown": "2.1.0",
|
|
143
116
|
"simplecc-wasm": "0.1.5",
|
|
144
|
-
"socks-proxy-agent": "
|
|
117
|
+
"socks-proxy-agent": "8.0.1",
|
|
145
118
|
"source-map": "0.7.4",
|
|
146
|
-
"string-similarity": "4.0.4",
|
|
147
119
|
"tiny-async-pool": "2.1.0",
|
|
148
120
|
"tough-cookie": "4.1.2",
|
|
149
|
-
"twitter-api-v2": "1.14.
|
|
150
|
-
"winston": "3.
|
|
121
|
+
"twitter-api-v2": "1.14.3",
|
|
122
|
+
"winston": "3.9.0",
|
|
151
123
|
"xml2js": "0.5.0"
|
|
152
124
|
},
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"ext": "art,js,mjs,json"
|
|
125
|
+
"devDependencies": {
|
|
126
|
+
"@microsoft/eslint-formatter-sarif": "3.0.0",
|
|
127
|
+
"@types/koa": "2.13.6",
|
|
128
|
+
"@vercel/nft": "0.22.6",
|
|
129
|
+
"cross-env": "7.0.3",
|
|
130
|
+
"eslint": "8.41.0",
|
|
131
|
+
"eslint-config-prettier": "8.8.0",
|
|
132
|
+
"eslint-plugin-n": "16.0.0",
|
|
133
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
134
|
+
"eslint-plugin-yml": "1.7.0",
|
|
135
|
+
"fs-extra": "11.1.1",
|
|
136
|
+
"husky": "8.0.3",
|
|
137
|
+
"jest": "29.5.0",
|
|
138
|
+
"jest-junit": "16.0.0",
|
|
139
|
+
"mockdate": "3.0.5",
|
|
140
|
+
"nock": "13.3.1",
|
|
141
|
+
"nodemon": "2.0.22",
|
|
142
|
+
"prettier": "2.8.8",
|
|
143
|
+
"prettier-check": "2.0.0",
|
|
144
|
+
"pretty-quick": "3.1.3",
|
|
145
|
+
"remark": "13.0.0",
|
|
146
|
+
"remark-frontmatter": "3.0.0",
|
|
147
|
+
"remark-gfm": "1.0.0",
|
|
148
|
+
"remark-pangu": "2.2.0",
|
|
149
|
+
"remark-parse": "9.0.0",
|
|
150
|
+
"remark-preset-prettier": "0.5.1",
|
|
151
|
+
"remark-stringify": "9.0.1",
|
|
152
|
+
"request-promise-native": "1.0.9",
|
|
153
|
+
"staged-git-files": "1.3.0",
|
|
154
|
+
"string-width": "4.2.3",
|
|
155
|
+
"supertest": "6.3.3",
|
|
156
|
+
"tosource": "2.0.0-alpha.3",
|
|
157
|
+
"unified": "9.2.2"
|
|
187
158
|
},
|
|
188
159
|
"engines": {
|
|
189
160
|
"node": ">=16"
|
|
161
|
+
},
|
|
162
|
+
"reporters": [
|
|
163
|
+
"default",
|
|
164
|
+
"jest-junit"
|
|
165
|
+
],
|
|
166
|
+
"scripts": {
|
|
167
|
+
"build:all": "npm run build:radar && npm run build:maintainer",
|
|
168
|
+
"build:maintainer": "node scripts/workflow/build-maintainer.js",
|
|
169
|
+
"build:radar": "node scripts/workflow/build-radar.js",
|
|
170
|
+
"dev": "cross-env NODE_ENV=dev nodemon --inspect lib/index.js",
|
|
171
|
+
"format": "eslint \"**/*.{js,yml}\" --fix && node docs/.format/format.js && prettier \"**/*.{js,json}\" --write",
|
|
172
|
+
"format:check": "eslint \"**/*.{js,yml}\" && prettier-check \"**/*.{js,json}\"",
|
|
173
|
+
"format:staged": "eslint --cache \"**/*.{js,yml}\" --fix && node docs/.format/format.js --staged && pretty-quick --staged --verbose --pattern \"**/*.{js,json}\"",
|
|
174
|
+
"jest": "cross-env NODE_ENV=test jest --runInBand --forceExit --detectOpenHandles",
|
|
175
|
+
"jest:coverage": "cross-env NODE_ENV=test jest --coverage --reporters=default --reporters=jest-junit --runInBand --forceExit --detectOpenHandles",
|
|
176
|
+
"jest:watch": "cross-env NODE_ENV=test jest --watch",
|
|
177
|
+
"lint": "eslint .",
|
|
178
|
+
"profiling": "NODE_ENV=production node --prof lib/index.js",
|
|
179
|
+
"start": "node lib/index.js",
|
|
180
|
+
"test": "npm run format:check && npm run jest:coverage"
|
|
190
181
|
}
|
|
191
|
-
}
|
|
182
|
+
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
|
|
4
|
-
module.exports = async (ctx) => {
|
|
5
|
-
const type = ctx.params.type || 'new';
|
|
6
|
-
const key = type === 'day' ? ctx.params.key.slice(0, 4) + '/' + ctx.params.key.slice(4, 6) + '/' + ctx.params.key.slice(6, 8) : ctx.params.key || '';
|
|
7
|
-
const link = 'https://www.141jav.com' + `/${type === 'day' ? '' : type}${type === 'new' ? '' : '/' + key}`.replace('//', '/');
|
|
8
|
-
const response = await got({
|
|
9
|
-
method: 'get',
|
|
10
|
-
url: link,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
const $ = cheerio.load(response.data);
|
|
14
|
-
const list = $('div.columns');
|
|
15
|
-
|
|
16
|
-
let itemPicUrl;
|
|
17
|
-
|
|
18
|
-
ctx.state.data = {
|
|
19
|
-
title: `141jav - ${type} ${key}`,
|
|
20
|
-
link,
|
|
21
|
-
item:
|
|
22
|
-
list &&
|
|
23
|
-
list
|
|
24
|
-
.map((index, item) => {
|
|
25
|
-
item = $(item);
|
|
26
|
-
itemPicUrl = item.find('img').attr('src');
|
|
27
|
-
return {
|
|
28
|
-
title: '【' + item.find('div.card-content.is-flex > h5 > a').text() + '】' + item.find('div.card-content.is-flex > h5 > span').text(),
|
|
29
|
-
description: `<img src="${itemPicUrl}"/><br/>Time: ${item.find('p.subtitle.is-6 > a').text()}<br/>Desc: ${item.find('p.level.has-text-grey-dark').text()}`,
|
|
30
|
-
link: item.find('div.card-content.is-flex > h5 > a').attr('href'),
|
|
31
|
-
enclosure_url: item.find('div.card-content.is-flex > a').attr('href'),
|
|
32
|
-
enclosure_type: 'application/x-bittorrent',
|
|
33
|
-
};
|
|
34
|
-
})
|
|
35
|
-
.get(),
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
|
|
4
|
-
module.exports = async (ctx) => {
|
|
5
|
-
const type = ctx.params.type || 'new';
|
|
6
|
-
const key = type === 'day' ? ctx.params.key.slice(0, 4) + '/' + ctx.params.key.slice(4, 6) + '/' + ctx.params.key.slice(6, 8) : ctx.params.key || '';
|
|
7
|
-
const link = 'https://www.141ppv.com' + `/${type === 'day' ? '' : type}${type === 'new' ? '' : '/' + key}`.replace('//', '/');
|
|
8
|
-
const response = await got({
|
|
9
|
-
method: 'get',
|
|
10
|
-
url: link,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
const $ = cheerio.load(response.data);
|
|
14
|
-
const list = $('div.columns');
|
|
15
|
-
|
|
16
|
-
let itemPicUrl;
|
|
17
|
-
|
|
18
|
-
ctx.state.data = {
|
|
19
|
-
title: `141ppv - ${type} ${key}`,
|
|
20
|
-
link,
|
|
21
|
-
item:
|
|
22
|
-
list &&
|
|
23
|
-
list
|
|
24
|
-
.map((index, item) => {
|
|
25
|
-
item = $(item);
|
|
26
|
-
itemPicUrl = item.find('img').attr('src');
|
|
27
|
-
return {
|
|
28
|
-
title: '【' + item.find('div.card-content.is-flex > h5 > a').text() + '】' + item.find('div.card-content.is-flex > h5 > span').text(),
|
|
29
|
-
description: `<img src="${itemPicUrl}"/><br/>Time: ${item.find('p.subtitle.is-6 > a').text()}<br/>Desc: ${item.find('p.level.has-text-grey-dark').text()}`,
|
|
30
|
-
link: item.find('div.card-content.is-flex > h5 > a').attr('href'),
|
|
31
|
-
enclosure_url: item.find('div.card-content.is-flex > a').attr('href'),
|
|
32
|
-
enclosure_type: 'application/x-bittorrent',
|
|
33
|
-
};
|
|
34
|
-
})
|
|
35
|
-
.get(),
|
|
36
|
-
};
|
|
37
|
-
};
|
package/lib/routes/3dm/game.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
|
|
4
|
-
module.exports = async (ctx) => {
|
|
5
|
-
const name = ctx.params.name;
|
|
6
|
-
const type = ctx.params.type;
|
|
7
|
-
const url = `http://www.3dmgame.com/games/${name}/${type}`;
|
|
8
|
-
|
|
9
|
-
const response = await got({
|
|
10
|
-
method: 'get',
|
|
11
|
-
url,
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
const data = response.data;
|
|
15
|
-
|
|
16
|
-
const $ = cheerio.load(data);
|
|
17
|
-
let list;
|
|
18
|
-
if (type === 'resource') {
|
|
19
|
-
list = $('.ZQ_Left .Llis_4 .lis:first-of-type li').get();
|
|
20
|
-
} else {
|
|
21
|
-
list = $('.ZQ_Left .lis').slice(0, 10).get();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const items = list.map((i) => {
|
|
25
|
-
const item = $(i);
|
|
26
|
-
const url = item.find('.bt').attr('href');
|
|
27
|
-
|
|
28
|
-
const single = {
|
|
29
|
-
title: item.find('.bt').text(),
|
|
30
|
-
pubDate: item.find('p').text(),
|
|
31
|
-
link: url,
|
|
32
|
-
guid: url,
|
|
33
|
-
};
|
|
34
|
-
return single;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
ctx.state.data = {
|
|
38
|
-
title: $('title').text().split('_')[0],
|
|
39
|
-
link: url,
|
|
40
|
-
item: items,
|
|
41
|
-
};
|
|
42
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
|
|
4
|
-
const sourceTimezoneOffset = -8;
|
|
5
|
-
module.exports = async (ctx) => {
|
|
6
|
-
const url = 'http://www.3dmgame.com/news/';
|
|
7
|
-
const res = await got({
|
|
8
|
-
method: 'get',
|
|
9
|
-
url,
|
|
10
|
-
});
|
|
11
|
-
const $ = cheerio.load(res.data);
|
|
12
|
-
const list = $('.Revision_list .selectpost').get();
|
|
13
|
-
const out = await Promise.all(
|
|
14
|
-
list.map(async (i) => {
|
|
15
|
-
const item = $(i);
|
|
16
|
-
const itemUrl = $(item).find('.text').find('a').attr('href');
|
|
17
|
-
const cache = await ctx.cache.get(itemUrl);
|
|
18
|
-
if (cache) {
|
|
19
|
-
return Promise.resolve(JSON.parse(cache));
|
|
20
|
-
}
|
|
21
|
-
const title = $(item).find('.text').find('.bt').text();
|
|
22
|
-
|
|
23
|
-
const category = $(item).find('.text').find('.bq').find('a').text();
|
|
24
|
-
|
|
25
|
-
const itemReponse = await got.get(itemUrl);
|
|
26
|
-
const itemElement = cheerio.load(itemReponse.data);
|
|
27
|
-
const description = itemElement('.news_warp_center').html();
|
|
28
|
-
|
|
29
|
-
const pageInfo = $(item).find('.time').text();
|
|
30
|
-
const regex = /\d{4}-\d{2}-\d{2} \d{2}:\d{2}/;
|
|
31
|
-
const regRes = regex.exec(pageInfo);
|
|
32
|
-
const time = regRes === null ? new Date() : new Date(regRes[0]);
|
|
33
|
-
time.setTime(time.getTime() + (sourceTimezoneOffset - time.getTimezoneOffset() / 60) * 60 * 60 * 1000);
|
|
34
|
-
|
|
35
|
-
const single = {
|
|
36
|
-
title,
|
|
37
|
-
category,
|
|
38
|
-
description,
|
|
39
|
-
pubDate: time.toUTCString(),
|
|
40
|
-
link: itemUrl,
|
|
41
|
-
guid: itemUrl,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
ctx.cache.set(itemUrl, JSON.stringify(single));
|
|
45
|
-
return Promise.resolve(single);
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
ctx.state.data = {
|
|
50
|
-
title: '3DM - ' + $('title').text().split('_')[0],
|
|
51
|
-
link: url,
|
|
52
|
-
item: out,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
const cheerio = require('cheerio');
|
|
2
|
-
const got = require('@/utils/got');
|
|
3
|
-
|
|
4
|
-
module.exports = async (ctx) => {
|
|
5
|
-
const url = `https://aeon.co/${ctx.params.cid}`;
|
|
6
|
-
|
|
7
|
-
const res = await got.get(url);
|
|
8
|
-
const $ = cheerio.load(res.data);
|
|
9
|
-
const list = $('.cYolgs > a').get();
|
|
10
|
-
|
|
11
|
-
const out = await Promise.all(
|
|
12
|
-
list.map(async (item) => {
|
|
13
|
-
const $ = cheerio.load(item);
|
|
14
|
-
const title = $('.styled__Title-sc-14lmmht-10').text();
|
|
15
|
-
const partial = $('a').attr('href');
|
|
16
|
-
const address = `https://aeon.co${partial}`;
|
|
17
|
-
const author = $('.styled__Author-sc-14lmmht-12').text();
|
|
18
|
-
|
|
19
|
-
const cache = await ctx.cache.get(address);
|
|
20
|
-
if (cache) {
|
|
21
|
-
return Promise.resolve(JSON.parse(cache));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const res = await got.get(address);
|
|
25
|
-
const capture = cheerio.load(res.data);
|
|
26
|
-
const time = capture('.article__PublishedDate-br4ey4-14').text();
|
|
27
|
-
|
|
28
|
-
capture('div.newsletter-signup').remove();
|
|
29
|
-
capture('p.pullquote').remove();
|
|
30
|
-
capture('div.article__related').remove();
|
|
31
|
-
capture('div.article__shares').remove();
|
|
32
|
-
|
|
33
|
-
let bio;
|
|
34
|
-
const authorInfo = '.VEKKL';
|
|
35
|
-
if (capture(authorInfo).html() !== null) {
|
|
36
|
-
bio =
|
|
37
|
-
`<br><br><hr><span><p>` +
|
|
38
|
-
capture(authorInfo)
|
|
39
|
-
.html()
|
|
40
|
-
.replace(/<\/?span[^>]*>/g, '')
|
|
41
|
-
.replace(/<\/?p[^>]*>/g, ' ') +
|
|
42
|
-
`</p></span><hr>`;
|
|
43
|
-
} else {
|
|
44
|
-
bio = '';
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const imgLink = capture("head meta[property='og:image']").attr('content');
|
|
48
|
-
const banner = `<img src="${imgLink}">`;
|
|
49
|
-
|
|
50
|
-
// Currently this route is not perfectly compatible with '/videos'
|
|
51
|
-
|
|
52
|
-
const contents = banner + capture('.has-dropcap').html() + bio;
|
|
53
|
-
const single = {
|
|
54
|
-
title,
|
|
55
|
-
author,
|
|
56
|
-
pubDate: new Date(time).toUTCString(),
|
|
57
|
-
description: contents,
|
|
58
|
-
link: address,
|
|
59
|
-
guid: address,
|
|
60
|
-
};
|
|
61
|
-
ctx.cache.set(address, JSON.stringify(single));
|
|
62
|
-
return Promise.resolve(single);
|
|
63
|
-
})
|
|
64
|
-
);
|
|
65
|
-
ctx.state.data = {
|
|
66
|
-
title: $('title').text(),
|
|
67
|
-
link: url,
|
|
68
|
-
item: out,
|
|
69
|
-
};
|
|
70
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
const iconv = require('iconv-lite');
|
|
4
|
-
|
|
5
|
-
const util = require('./utils');
|
|
6
|
-
|
|
7
|
-
module.exports = async (ctx) => {
|
|
8
|
-
const { id } = ctx.params;
|
|
9
|
-
|
|
10
|
-
const host = `http://www.aisixiang.com/data/search.php?lanmu=${id}`;
|
|
11
|
-
|
|
12
|
-
const response = await got.get(host, {
|
|
13
|
-
responseType: 'buffer',
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
response.data = iconv.decode(response.data, 'gbk');
|
|
17
|
-
|
|
18
|
-
const $ = cheerio.load(response.data);
|
|
19
|
-
|
|
20
|
-
const list = $('.search_list > ul > li > a:nth-child(2)').slice(0, 10).get();
|
|
21
|
-
|
|
22
|
-
const columnName = $('.search_list > ul > li:nth-child(1) > a:nth-child(1)').text();
|
|
23
|
-
|
|
24
|
-
const items = await Promise.all(
|
|
25
|
-
list.map((e) => {
|
|
26
|
-
const link = $(e).attr('href');
|
|
27
|
-
return ctx.cache.tryGet(link, () => util.ProcessFeed(link));
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
ctx.state.data = {
|
|
32
|
-
title: `爱思想栏目 - ${columnName}`,
|
|
33
|
-
link: host,
|
|
34
|
-
description: `爱思想栏目 - ${columnName}`,
|
|
35
|
-
item: items,
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
const iconv = require('iconv-lite');
|
|
4
|
-
|
|
5
|
-
const util = require('./utils');
|
|
6
|
-
|
|
7
|
-
module.exports = async (ctx) => {
|
|
8
|
-
const { type = 1, range = 1 } = ctx.params;
|
|
9
|
-
|
|
10
|
-
const host = `http://www.aisixiang.com/toplist/index.php?id=${type}&period=${range}`;
|
|
11
|
-
|
|
12
|
-
const response = await got.get(host, {
|
|
13
|
-
responseType: 'buffer',
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
response.data = iconv.decode(response.data, 'gbk');
|
|
17
|
-
|
|
18
|
-
const $ = cheerio.load(response.data);
|
|
19
|
-
|
|
20
|
-
const list = $('.tops_list > .tips > a').slice(0, 10).get();
|
|
21
|
-
|
|
22
|
-
const columnName = $('.tops_text > h3')[0].firstChild.nodeValue;
|
|
23
|
-
|
|
24
|
-
const items = await Promise.all(
|
|
25
|
-
list.map((e) => {
|
|
26
|
-
const link = $(e).attr('href');
|
|
27
|
-
return ctx.cache.tryGet(link, () => util.ProcessFeed(link));
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
ctx.state.data = {
|
|
32
|
-
title: `爱思想 - ${columnName}`,
|
|
33
|
-
link: host,
|
|
34
|
-
description: `爱思想 - ${columnName}`,
|
|
35
|
-
item: items,
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
|
-
const iconv = require('iconv-lite');
|
|
4
|
-
const util = require('./utils');
|
|
5
|
-
|
|
6
|
-
module.exports = async (ctx) => {
|
|
7
|
-
const { name, type = 'lunw' } = ctx.params;
|
|
8
|
-
|
|
9
|
-
const host = `http://www.aisixiang.com/thinktank/${name}.html`;
|
|
10
|
-
|
|
11
|
-
const response = await got.get(host, {
|
|
12
|
-
responseType: 'buffer',
|
|
13
|
-
});
|
|
14
|
-
response.data = iconv.decode(response.data, 'gbk');
|
|
15
|
-
|
|
16
|
-
const $ = cheerio.load(response.data);
|
|
17
|
-
|
|
18
|
-
const tds = $('td > img').filter(function () {
|
|
19
|
-
return $(this).attr('src') === `images/${type}.gif`;
|
|
20
|
-
});
|
|
21
|
-
if (tds.length === 0) {
|
|
22
|
-
throw `Type Not Found - ${type}`;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const list = tds.parent().next().find('a').slice(0, 5).get();
|
|
26
|
-
|
|
27
|
-
const items = await Promise.all(
|
|
28
|
-
list.map((e) => {
|
|
29
|
-
const link = $(e).attr('href');
|
|
30
|
-
return ctx.cache.tryGet(link, () => util.ProcessFeed(link));
|
|
31
|
-
})
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
ctx.state.data = {
|
|
35
|
-
title: $('title').text(),
|
|
36
|
-
link: host,
|
|
37
|
-
description: $('meta[name="description"]').attr('content'),
|
|
38
|
-
item: items,
|
|
39
|
-
};
|
|
40
|
-
};
|