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 got = require('@/utils/got');
|
|
2
|
+
const config = require('@/config').value;
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const { gistId } = ctx.params;
|
|
7
|
+
|
|
8
|
+
const headers = { Accept: 'application/vnd.github.v3+json' };
|
|
9
|
+
if (config.github && config.github.access_token) {
|
|
10
|
+
headers.Authorization = `Bearer ${config.github.access_token}`;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const host = 'https://gist.github.com';
|
|
14
|
+
const apiUrl = `https://api.github.com/gists/${gistId}`;
|
|
15
|
+
|
|
16
|
+
const { data: response } = await got(apiUrl, {
|
|
17
|
+
headers,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const items = response.history.map((item, index) => ({
|
|
21
|
+
title: `${item.user.login} ${index === response.history.length - 1 ? 'created' : 'revised'} this gist`,
|
|
22
|
+
description: item.change_status.total ? `${item.change_status.additions} additions and ${item.change_status.deletions} deletions` : null,
|
|
23
|
+
link: `${host}/${gistId}/${item.version}`,
|
|
24
|
+
pubDate: parseDate(item.committed_at), // e.g. 2022-09-02T11:09:56Z
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
ctx.state.data = {
|
|
28
|
+
allowEmpty: true,
|
|
29
|
+
title: `${response.owner.login} / ${Object.values(response.files)[0].filename}`,
|
|
30
|
+
description: response.description,
|
|
31
|
+
image: response.owner.avatar_url,
|
|
32
|
+
link: `${response.html_url}/revisions`,
|
|
33
|
+
item: items,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -3,6 +3,7 @@ module.exports = {
|
|
|
3
3
|
'/comments/:user/:repo/:number': ['TonyRL'],
|
|
4
4
|
'/contributors/:user/:repo/:order?/:anon?': ['zoenglinghou'],
|
|
5
5
|
'/file/:user/:repo/:branch/:filepath+': ['zengxs'],
|
|
6
|
+
'/gist/:gistId': ['TonyRL'],
|
|
6
7
|
'/issue/:user/:repo/:state?/:labels?': ['HenryQW', 'AndreyMZ'],
|
|
7
8
|
'/notifications': ['zhzy0077'],
|
|
8
9
|
'/pull/:user/:repo/:state?': ['hashman', 'TonyRL'],
|
package/lib/v2/github/radar.js
CHANGED
|
@@ -87,5 +87,13 @@ module.exports = {
|
|
|
87
87
|
target: '/github/notifications',
|
|
88
88
|
},
|
|
89
89
|
],
|
|
90
|
+
gist: [
|
|
91
|
+
{
|
|
92
|
+
title: 'Gist Commits',
|
|
93
|
+
docs: 'https://docs.rsshub.app/programming.html#github',
|
|
94
|
+
source: ['/:owner/:gistId/revisions', '/:owner/:gistId/stargazers', '/:owner/:gistId/forks', '/:owner/:gistId'],
|
|
95
|
+
target: '/github/gist/:gistId',
|
|
96
|
+
},
|
|
97
|
+
],
|
|
90
98
|
},
|
|
91
99
|
};
|
package/lib/v2/github/router.js
CHANGED
|
@@ -4,6 +4,7 @@ module.exports = function (router) {
|
|
|
4
4
|
router.get('/comments/:user/:repo/:number', require('./comments'));
|
|
5
5
|
router.get('/contributors/:user/:repo/:order?/:anon?', require('./contributors'));
|
|
6
6
|
router.get('/file/:user/:repo/:branch/:filepath+', require('./file'));
|
|
7
|
+
router.get('/gist/:gistId', require('./gist'));
|
|
7
8
|
router.get('/issue/:user/:repo/:state?/:labels?', require('./issue'));
|
|
8
9
|
router.get('/notifications', require('./notifications'));
|
|
9
10
|
router.get('/pull/:user/:repo/:state?/:labels?', require('./pulls'));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const timezone = require('@/utils/timezone');
|
|
5
|
+
const config = require('@/config').value;
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const path = ctx.params[0];
|
|
9
|
+
const host = 'http://www.cac.gov.cn';
|
|
10
|
+
const homepage = `${host}/index.htm`;
|
|
11
|
+
// 在首页查找出所有的目录完整路径,比如http://www.cac.gov.cn/xxh/A0906index_1.htm
|
|
12
|
+
// xxh --> {"path": "/xxh", "completeUrl": "http://www.cac.gov.cn/xxh/A0906index_1.htm"}
|
|
13
|
+
const pathList = await ctx.cache.tryGet(
|
|
14
|
+
'gov:cac:pathList',
|
|
15
|
+
async () => {
|
|
16
|
+
const { data: homepageResponse } = await got(homepage);
|
|
17
|
+
const $ = cheerio.load(homepageResponse);
|
|
18
|
+
return $('a')
|
|
19
|
+
.toArray()
|
|
20
|
+
.map((item) => {
|
|
21
|
+
const href = $(item).attr('href');
|
|
22
|
+
if (href && href.startsWith('http://www.cac.gov.cn/')) {
|
|
23
|
+
const matchArray = href.match(/http:\/\/www\.cac\.gov\.cn(.*?)\/(A.*?\.htm)/);
|
|
24
|
+
if (matchArray && matchArray.length > 2) {
|
|
25
|
+
const path = matchArray[1];
|
|
26
|
+
const htmlName = matchArray[2];
|
|
27
|
+
return {
|
|
28
|
+
path,
|
|
29
|
+
completeUrl: `${host}${path}/${htmlName}`,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
})
|
|
35
|
+
.filter((item) => item);
|
|
36
|
+
},
|
|
37
|
+
config.cache.routeExpire,
|
|
38
|
+
false
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
const completeUrl = pathList.find((item) => item && item.path === path).completeUrl;
|
|
42
|
+
const { data: channelResponse } = await got(completeUrl);
|
|
43
|
+
const $1 = cheerio.load(channelResponse);
|
|
44
|
+
const items = $1('li.clearfix')
|
|
45
|
+
.toArray()
|
|
46
|
+
.map((item) => {
|
|
47
|
+
const c = $1(item);
|
|
48
|
+
const a = c.find('a');
|
|
49
|
+
const articleHref = a.attr('href');
|
|
50
|
+
const title = a.text();
|
|
51
|
+
const date = parseDate(c.find('span.times').text());
|
|
52
|
+
return {
|
|
53
|
+
link: articleHref,
|
|
54
|
+
pubDate: timezone(date),
|
|
55
|
+
title,
|
|
56
|
+
description: title,
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
ctx.state.data = {
|
|
60
|
+
title: $1('head title').text(),
|
|
61
|
+
link: completeUrl,
|
|
62
|
+
item: items,
|
|
63
|
+
};
|
|
64
|
+
};
|
package/lib/v2/gov/ccdi/index.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = async (ctx) => {
|
|
|
7
7
|
pathname = pathname === '' ? defaultPath : pathname.endsWith('/') ? pathname : pathname + '/';
|
|
8
8
|
const currentUrl = `${rootUrl}${pathname}`;
|
|
9
9
|
|
|
10
|
-
const { list, title } = await parseNewsList(currentUrl, '.
|
|
10
|
+
const { list, title } = await parseNewsList(currentUrl, '.list_news_dl2 li', ctx);
|
|
11
11
|
const items = await Promise.all(list.map((item) => parseArticle(item, ctx)));
|
|
12
12
|
|
|
13
13
|
ctx.state.data = {
|
package/lib/v2/gov/ccdi/utils.js
CHANGED
|
@@ -38,7 +38,7 @@ const parseNewsList = async (url, selector, ctx) => {
|
|
|
38
38
|
return {
|
|
39
39
|
title: item.find('a').first().text().trim(),
|
|
40
40
|
link: new URL(item.find('a').first().attr('href'), url).href,
|
|
41
|
-
pubDate: parseDate(item.find('
|
|
41
|
+
pubDate: parseDate(item.find('.more').text(), 'YYYY-MM-DD'),
|
|
42
42
|
};
|
|
43
43
|
});
|
|
44
44
|
const title = $('.other_Location')
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const rsksUrl = 'https://rlsbj.cq.gov.cn/ywzl/rsks/tzgg_109374/';
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const { data: response } = await got(rsksUrl);
|
|
7
|
+
const $ = cheerio.load(response);
|
|
8
|
+
// 获取考试信息标题
|
|
9
|
+
const list = $('div.page-list .tab-item > li')
|
|
10
|
+
.toArray()
|
|
11
|
+
.map((item) => {
|
|
12
|
+
item = $(item);
|
|
13
|
+
const title = item.find('a').first();
|
|
14
|
+
return {
|
|
15
|
+
title: title.text(),
|
|
16
|
+
link: `${rsksUrl}${title.attr('href')}`,
|
|
17
|
+
pubDate: parseDate(item.find('span').text()),
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// 获取考试信息正文
|
|
22
|
+
const items = await Promise.all(
|
|
23
|
+
list.map((item) =>
|
|
24
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
25
|
+
const { data: response } = await got(item.link);
|
|
26
|
+
const $ = cheerio.load(response);
|
|
27
|
+
item.pubDate = parseDate($('meta[name="PubDate"]').attr('content')) ?? item.pubDate;
|
|
28
|
+
item.description = $('.view.TRS_UEDITOR.trs_paper_default.trs_word').first().html();
|
|
29
|
+
return item;
|
|
30
|
+
})
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
ctx.state.data = {
|
|
34
|
+
title: '重庆人事考试通知公告',
|
|
35
|
+
link: rsksUrl,
|
|
36
|
+
item: items,
|
|
37
|
+
};
|
|
38
|
+
};
|
package/lib/v2/gov/maintainer.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
// ministry
|
|
3
|
+
'/cac/:path+': ['drgnchan'],
|
|
3
4
|
'/ccdi/:path+': ['bigfei'],
|
|
4
5
|
'/cmse/xwzx/zhxw': ['nczitzk'],
|
|
5
6
|
'/cmse/xwzx/yzjz': ['nczitzk'],
|
|
@@ -50,6 +51,7 @@ module.exports = {
|
|
|
50
51
|
'/beijing/bphc/:channel': ['bigfei'],
|
|
51
52
|
'/beijing/jw/tzgg': ['nczitzk'],
|
|
52
53
|
'/beijing/kw/:channel': ['Fatpandac'],
|
|
54
|
+
'/chongqing/rsks': ['Mai19930513'],
|
|
53
55
|
'/dianbai/:path+': ['ShuiHuo'],
|
|
54
56
|
'/gaozhou/:path+': ['ShuiHuo'],
|
|
55
57
|
'/guangdong/tqyb/sncsyjxh': ['Fatpandac'],
|
package/lib/v2/gov/news/index.js
CHANGED
|
@@ -4,24 +4,26 @@ const logger = require('@/utils/logger');
|
|
|
4
4
|
|
|
5
5
|
module.exports = async (ctx) => {
|
|
6
6
|
const uid = ctx.params.uid;
|
|
7
|
+
const originDomain = 'https://www.gov.cn';
|
|
7
8
|
let url = '';
|
|
8
9
|
let title = '';
|
|
9
10
|
let list = '';
|
|
10
11
|
switch (uid) {
|
|
11
12
|
case 'bm':
|
|
12
|
-
url =
|
|
13
|
+
url = `${originDomain}/lianbo/bumen/index.htm`;
|
|
13
14
|
title = '中国政府网 - 部门政务';
|
|
14
15
|
break;
|
|
15
16
|
case 'yw':
|
|
16
|
-
url =
|
|
17
|
+
url = `${originDomain}/yaowen/index.htm`;
|
|
17
18
|
title = '中国政府网 - 新闻要闻';
|
|
18
19
|
break;
|
|
19
20
|
case 'gd':
|
|
20
|
-
|
|
21
|
+
// 因 /xinwen/gundong.htm 被重定向到 /yaowen/index.htm, 所以这里直接用要闻的代替了
|
|
22
|
+
url = `${originDomain}/yaowen/index.htm`;
|
|
21
23
|
title = '中国政府网 - 滚动新闻';
|
|
22
24
|
break;
|
|
23
25
|
case 'gwy':
|
|
24
|
-
url =
|
|
26
|
+
url = `${originDomain}/pushinfo/v150203/`;
|
|
25
27
|
title = '中国政府网 - 国务院信息';
|
|
26
28
|
break;
|
|
27
29
|
case 'zhengce':
|
|
@@ -74,7 +76,10 @@ module.exports = async (ctx) => {
|
|
|
74
76
|
}
|
|
75
77
|
} else {
|
|
76
78
|
href = item.find('a').attr('href');
|
|
77
|
-
|
|
79
|
+
if (href.startsWith('.')) {
|
|
80
|
+
href = new URL(href, url).pathname;
|
|
81
|
+
}
|
|
82
|
+
contentUrl = href.startsWith('/') ? `${originDomain}${href}` : href;
|
|
78
83
|
if (!contentUrl.includes('content')) {
|
|
79
84
|
description = item.find('a').text(); // 忽略获取吹风会的全文
|
|
80
85
|
} else {
|
package/lib/v2/gov/radar.js
CHANGED
|
@@ -308,6 +308,17 @@ module.exports = {
|
|
|
308
308
|
},
|
|
309
309
|
],
|
|
310
310
|
},
|
|
311
|
+
'cac.gov.cn': {
|
|
312
|
+
_name: '中央网信办',
|
|
313
|
+
'.': [
|
|
314
|
+
{
|
|
315
|
+
title: '分类',
|
|
316
|
+
docs: 'https://docs.rsshub.app/government.html#zhong-yang-wang-xin-ban',
|
|
317
|
+
source: ['/*'],
|
|
318
|
+
target: (params, url) => `/gov/cac/${new URL(url).href.match(/cac\.gov\.cn(.*?)\/(A.*?\.htm)/)[1]}`,
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
},
|
|
311
322
|
'ccdi.gov.cn': {
|
|
312
323
|
_name: '中央纪委国家监委',
|
|
313
324
|
www: [
|
|
@@ -406,6 +417,17 @@ module.exports = {
|
|
|
406
417
|
},
|
|
407
418
|
],
|
|
408
419
|
},
|
|
420
|
+
'cq.gov.cn': {
|
|
421
|
+
_name: '重庆市人民政府',
|
|
422
|
+
rlsbj: [
|
|
423
|
+
{
|
|
424
|
+
title: '重庆人事考试通知公告',
|
|
425
|
+
docs: 'https://docs.rsshub.app/government.html#zhong-qing-shi-ren-min-zheng-fu',
|
|
426
|
+
source: ['/'],
|
|
427
|
+
target: '/gov/chongqing/rsks',
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
},
|
|
409
431
|
'csrc.gov.cn': {
|
|
410
432
|
_name: '中国证券监督管理委员会',
|
|
411
433
|
neris: [
|
|
@@ -578,7 +600,7 @@ module.exports = {
|
|
|
578
600
|
{
|
|
579
601
|
title: '获取国家医师资格考试通知',
|
|
580
602
|
docs: 'https://docs.rsshub.app/government.html#ji-nan-shi-wei-sheng-jian-kang-wei-yuan-hui',
|
|
581
|
-
source: ['
|
|
603
|
+
source: ['/*'],
|
|
582
604
|
target: '/gov/jinan/healthcommission/medical_exam_notice',
|
|
583
605
|
},
|
|
584
606
|
],
|
package/lib/v2/gov/router.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = function (router) {
|
|
2
2
|
// ministry
|
|
3
|
+
router.get(/cac(\/[\w/-]+)?/, require('./cac/index'));
|
|
3
4
|
router.get(/ccdi(\/[\w/-]+)?/, require('./ccdi'));
|
|
4
5
|
router.get('/cmse/fxrw', require('./cmse/fxrw'));
|
|
5
6
|
router.get(/cmse(\/[\w/-]+)?/, require('./cmse'));
|
|
@@ -42,6 +43,7 @@ module.exports = function (router) {
|
|
|
42
43
|
router.get(/beijing\/bphc(\/[\w/-]+)?/, require('./beijing/bphc'));
|
|
43
44
|
router.get('/beijing/jw/tzgg', require('./beijing/jw/tzgg'));
|
|
44
45
|
router.get('/beijing/kw/:channel', require('./beijing/kw/index'));
|
|
46
|
+
router.get('/chongqing/rsks', require('./chongqing/rsks'));
|
|
45
47
|
router.get(/dianbai(\/[\w/-]+)?/, require('./dianbai/dianbai'));
|
|
46
48
|
router.get(/gaozhou(\/[\w/-]+)?/, require('./gaozhou/gaozhou'));
|
|
47
49
|
router.get('/guangdong/tqyb/sncsyjxh', require('./guangdong/tqyb/sncsyjxh'));
|
package/lib/v2/gq/tw/index.js
CHANGED
|
@@ -58,7 +58,7 @@ module.exports = async (ctx) => {
|
|
|
58
58
|
const $ = cheerio.load(response);
|
|
59
59
|
const data = JSON.parse($('script[type="application/ld+json"]').first().text());
|
|
60
60
|
const { transformed } = parsePreloadedStateJSON($);
|
|
61
|
-
const VideoObject = data['@type'] === 'VideoObject'
|
|
61
|
+
const VideoObject = data['@type'] === 'VideoObject';
|
|
62
62
|
const lede = !VideoObject ? transformed.article.headerProps.lede : null;
|
|
63
63
|
|
|
64
64
|
let articleBody = '';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const newsUrl = 'https://www.gzmtr.com/ygwm/xwzx/gsxw/';
|
|
7
|
+
const response = await got(newsUrl);
|
|
8
|
+
const data = response.data;
|
|
9
|
+
|
|
10
|
+
const $ = cheerio.load(data);
|
|
11
|
+
const list = $('ul.ag_h_w li')
|
|
12
|
+
.map((_, item) => {
|
|
13
|
+
item = $(item);
|
|
14
|
+
const url = newsUrl + item.find('a').attr('href').substr(2);
|
|
15
|
+
const title = item.find('a').text();
|
|
16
|
+
const publishTime = parseDate(item.find('span').text());
|
|
17
|
+
return {
|
|
18
|
+
title,
|
|
19
|
+
link: url,
|
|
20
|
+
author: '广州地铁',
|
|
21
|
+
pubtime: publishTime,
|
|
22
|
+
};
|
|
23
|
+
})
|
|
24
|
+
.get();
|
|
25
|
+
|
|
26
|
+
ctx.state.data = {
|
|
27
|
+
title: '广州地铁新闻',
|
|
28
|
+
url: newsUrl,
|
|
29
|
+
description: '广州地铁新闻',
|
|
30
|
+
item: list.map((item) => ({
|
|
31
|
+
title: item.title,
|
|
32
|
+
pubDate: item.pubtime,
|
|
33
|
+
link: item.link,
|
|
34
|
+
author: item.author,
|
|
35
|
+
})),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
|
|
3
|
+
module.exports = async (ctx) => {
|
|
4
|
+
const rootUrl = 'http://scc.hnu.edu.cn/';
|
|
5
|
+
// 校园招聘的路由为/module/getcareers,但该页面默认仅加载整体框架,具体的招聘信息在页面加载完成后再交易获取。
|
|
6
|
+
// 具体的交易可以通过f12,网络栏进行查看,项目中仅保留了必须携带的参数。
|
|
7
|
+
// 其中有用的参数为count,为获取招聘信息的数量。
|
|
8
|
+
const currentRoute = `${rootUrl}module/getcareers`;
|
|
9
|
+
const currentUrl = `${currentRoute}?start_page=1&type=inner&day=&count=20&start=1`;
|
|
10
|
+
const response = await got({
|
|
11
|
+
method: 'get',
|
|
12
|
+
url: currentUrl,
|
|
13
|
+
});
|
|
14
|
+
const company_list = response.data.data;
|
|
15
|
+
|
|
16
|
+
ctx.state.data = {
|
|
17
|
+
title: '校园招聘',
|
|
18
|
+
link: currentRoute,
|
|
19
|
+
item: company_list.map((company_info) => {
|
|
20
|
+
const ret = {
|
|
21
|
+
// 标题:公司名称
|
|
22
|
+
title: company_info.company_name,
|
|
23
|
+
// 链接:公司招聘简章链接
|
|
24
|
+
link: `${rootUrl}detail/career?id=${company_info.career_talk_id}`,
|
|
25
|
+
// 描述:校招教室+时间+专业
|
|
26
|
+
description: company_info.address + ' - ' + company_info.meet_time + ' - ' + company_info.professionals,
|
|
27
|
+
// 分类:公司类型(私营、国企)+ 工作城市
|
|
28
|
+
category: company_info.company_property + ' - ' + company_info.city_name,
|
|
29
|
+
};
|
|
30
|
+
return ret;
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
};
|
package/lib/v2/hust/aia/news.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const { art } = require('@/utils/render');
|
|
5
|
+
const { join } = require('path');
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const { category } = ctx.params;
|
|
9
|
+
const { limit = '100' } = ctx.query;
|
|
10
|
+
const baseUrl = 'https://www.i-cable.com';
|
|
11
|
+
|
|
12
|
+
let link;
|
|
13
|
+
let id;
|
|
14
|
+
if (category) {
|
|
15
|
+
const categoryDetail = await ctx.cache.tryGet(`i-cable:category:${category}`, async () => {
|
|
16
|
+
const { data: res } = await got(`${baseUrl}/wp-json/wp/v2/categories`, {
|
|
17
|
+
searchParams: {
|
|
18
|
+
search: category,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
const data = res[0];
|
|
22
|
+
if (!data) {
|
|
23
|
+
throw Error('Invalid category');
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
id: data.id,
|
|
27
|
+
link: data.link,
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
id = categoryDetail.id;
|
|
31
|
+
link = categoryDetail.link;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const { data: response } = await got(`${baseUrl}/wp-json/wp/v2/posts`, {
|
|
35
|
+
searchParams: {
|
|
36
|
+
per_page: limit,
|
|
37
|
+
categories: id,
|
|
38
|
+
_embed: 1,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const items = response.map((item) => {
|
|
43
|
+
const $ = cheerio.load(item.content.rendered, null, false);
|
|
44
|
+
$('img').each((_, img) => {
|
|
45
|
+
img = $(img);
|
|
46
|
+
const src = img.attr('src');
|
|
47
|
+
if (src.match(/-\d+x\d+.(jpg|png)$/)) {
|
|
48
|
+
img.attr('src', src.replace(/-\d+x\d+.(jpg|png)$/, '.$1'));
|
|
49
|
+
}
|
|
50
|
+
img.removeAttr('srcset');
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
title: item.title.rendered,
|
|
54
|
+
description: art(join(__dirname, 'templates/desc.art'), {
|
|
55
|
+
content: $.html(),
|
|
56
|
+
imgs: item.yoast_head_json.og_image.map((img) => img.url).filter((i) => !i.endsWith('Open-Graph-2.png')),
|
|
57
|
+
}),
|
|
58
|
+
pubDate: parseDate(item.date_gmt), // 2023-05-11T15:07:51
|
|
59
|
+
updated: parseDate(item.modified_gmt),
|
|
60
|
+
guid: item.guid.rendered,
|
|
61
|
+
link: item.link,
|
|
62
|
+
author: item._embedded.author.map((author) => author.name).join(', '),
|
|
63
|
+
category: item._embedded['wp:term'][0].map((category) => category.name),
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
ctx.state.data = {
|
|
68
|
+
title: `${category || '主頁'} | 有線寬頻 i-CABLE`,
|
|
69
|
+
description: '24小時無間斷緊貼香港本地及國際新聞,即時報道新聞事件的最新發展。內容包括時事、財經、體育、天氣消息等多元化資訊。',
|
|
70
|
+
image: 'https://icable-prod.s3.ap-southeast-1.amazonaws.com/wp-content/uploads/2022/05/19010704/Open-Graph-1.png',
|
|
71
|
+
link: link || baseUrl,
|
|
72
|
+
item: items,
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'i-cable.com': {
|
|
3
|
+
_name: '有線寬頻 i-CABLE',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '有線新聞 | Cable News',
|
|
7
|
+
docs: 'https://docs.rsshub.app/traditional-media.html#you-xian-kuan-pin-i-cable',
|
|
8
|
+
source: ['/category/*path', '/'],
|
|
9
|
+
target: (params) => `/i-cable${params.path ? decodeURIComponent(params.path.slice(params.path.lastIndexOf('/'))) : ''}`,
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const cheerio = require('cheerio');
|
|
3
3
|
const url = 'https://www.ibc.co.jp/radio/maitta/audio/';
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
5
|
|
|
5
6
|
module.exports = async (ctx) => {
|
|
6
|
-
const res = await got
|
|
7
|
+
const res = await got(url);
|
|
7
8
|
const $ = cheerio.load(res.data);
|
|
8
|
-
const items = $('.
|
|
9
|
+
const items = $('.up').toArray();
|
|
9
10
|
ctx.state.data = {
|
|
10
11
|
title: 'IBCラジオ イヤーマイッタマイッタ|IBC岩手放送',
|
|
11
12
|
link: 'http://www.ibc.co.jp/radio/maitta/audio',
|
|
12
13
|
description: $('meta[name=description]').attr('content'),
|
|
13
14
|
itunes_author: '水越アナと大塚アナ',
|
|
14
|
-
image: 'https://cdn.ibc.co.jp/radio/maitta/audio/images/
|
|
15
|
+
image: 'https://cdn.ibc.co.jp/radio/maitta/audio/images/header.png',
|
|
15
16
|
language: 'ja',
|
|
16
17
|
item: items.map((item) => {
|
|
17
18
|
item = $(item);
|
|
19
|
+
const link = new URL(item.find('a').attr('href'), url).href;
|
|
20
|
+
const uid = link.match(/\/(\d+)\/$/)[1];
|
|
18
21
|
return {
|
|
19
22
|
title: item.find('h3').text(),
|
|
20
|
-
description: item.find('.
|
|
21
|
-
link
|
|
22
|
-
pubDate:
|
|
23
|
-
itunes_item_image: 'https://
|
|
24
|
-
enclosure_url: `https
|
|
23
|
+
description: item.find('.audio_intro').text().trim(),
|
|
24
|
+
link,
|
|
25
|
+
pubDate: parseDate(item.find('.onair_date').text().split('日')[0].replace(/年|月/g, '-')),
|
|
26
|
+
itunes_item_image: 'https://assets.blubrry.com/coverart/300/357155.png',
|
|
27
|
+
enclosure_url: `https://media-data.cdn.ibc.co.jp/out/sound/28_${uid}/28_${uid}.mp3`, // 音频链接
|
|
25
28
|
enclosure_type: 'audio/mpeg',
|
|
26
29
|
};
|
|
27
30
|
}),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'ibc.co.jp': {
|
|
3
|
+
_name: 'IBC 岩手放送',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: 'イヤーマイッタマイッタ',
|
|
7
|
+
docs: 'https://docs.rsshub.app/multimedia.html#ibc-yan-shou-fang-song',
|
|
8
|
+
source: ['/radio/maitta/audio', '/'],
|
|
9
|
+
target: '/ibc/maitta',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: 'ラジオ',
|
|
13
|
+
docs: 'https://docs.rsshub.app/multimedia.html#ibc-yan-shou-fang-song',
|
|
14
|
+
source: ['/radio/:id/audio', '/'],
|
|
15
|
+
target: '/ibc/radio/:id?',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
};
|