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,64 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
bwc: { title: '武装部保卫处', id: 'tzgg' },
|
|
3
|
+
career: { title: '本科就业信息网', id: 'tzgg', listSelector: 'ul.newsList', pubDateSelector: 'li[class="span2 y"]', descriptionSelector: '.aContent' },
|
|
4
|
+
cyb: { title: '资产经营公司/产业办', id: '367' },
|
|
5
|
+
dangban: { title: '党委办公室', id: '4014' },
|
|
6
|
+
djfwzxdcs: { title: '党建服务中心/党建督查室', id: 'tzgg', listSelector: '.news', pubDateSelector: 'span[class="news_meta"]' },
|
|
7
|
+
dqxy: { title: '电气工程学院', id: '2462' },
|
|
8
|
+
dwllc: { title: '对外联络处', id: '2649' },
|
|
9
|
+
dxxy: { title: '电子与信息工程学院', id: 'tzgg', pubDateSelector: 'div[class="article-publishdate"]' },
|
|
10
|
+
energy: { title: '能源与机械工程学院', id: '892' },
|
|
11
|
+
'energy-saving': { title: '上海热交换系统节能工程技术研究中心', id: 'tzgg' },
|
|
12
|
+
english: { title: 'Shanghai University of Electric Power', id: 'events' },
|
|
13
|
+
fao: { title: '国际交流与合作处(港澳台办公室)', id: 'tzgg' },
|
|
14
|
+
fgw: { title: '妇工委', id: '1411' },
|
|
15
|
+
fzghc: { title: '发展规划处', id: '291' },
|
|
16
|
+
gec: { title: '上海新能源人才技术教育交流中心', id: '1959' },
|
|
17
|
+
gonghui: { title: '工会', id: '1806', listSelector: 'table.wp_article_list_table tr', pubDateSelector: 'td[align="right"]' },
|
|
18
|
+
'green-energy': { title: '上海绿色能源并网技术研究中心', id: '118' },
|
|
19
|
+
hhsyzx: { title: '能源化学实验教学中心', id: '3709' },
|
|
20
|
+
hhxy: { title: '环境与化学工程学院', id: '1231' },
|
|
21
|
+
hqglc: { title: '后勤管理处(后勤服务中心)', id: '1616' },
|
|
22
|
+
ieetc: { title: '创新创业工程训练中心', id: 'cxcy', pubDateSelector: 'div[class="article-publishdate"]' },
|
|
23
|
+
jgdw: { title: '机关党委', id: '3205' },
|
|
24
|
+
jgxy: { title: '经济与管理学院', id: '3633' },
|
|
25
|
+
jijian: { title: '纪委(监察专员办公室)', id: '59' },
|
|
26
|
+
jjc: { title: '基建处', id: '327' },
|
|
27
|
+
jjxy: { title: '继续教育学院(国际教育学院)', id: '2582' },
|
|
28
|
+
jsjxfzzx: { title: '教师教学发展中心', id: '3909' },
|
|
29
|
+
jsjxy: { title: '计算机科学与技术学院', id: '973' },
|
|
30
|
+
jszyzx: { title: '技术转移中心', id: '4247' },
|
|
31
|
+
jwc: { title: '教务处', id: '227' },
|
|
32
|
+
kczx: { title: '能源电力科创中心', id: '3946' },
|
|
33
|
+
kyc: { title: '科研处/融合办', id: '834' },
|
|
34
|
+
lgxq: { title: '临港新校区建设综合办公室', id: '377' },
|
|
35
|
+
library: { title: '图书馆', id: '4866' },
|
|
36
|
+
metc: { title: '现代教育技术中心/信息办', id: 'tzgg', pubDateSelector: 'div[class="article-publishdate"]' },
|
|
37
|
+
mpep: { title: '上海市电力材料防护与新材料重点实验室', id: '1134' },
|
|
38
|
+
news: { title: '新闻网', id: 'notice' },
|
|
39
|
+
office: { title: '校长办公室(档案馆)', id: '389' },
|
|
40
|
+
rsc: { title: '党委教师工作部/人事处', id: '1695' },
|
|
41
|
+
rwysxy: { title: '人文艺术学院', id: '3089' },
|
|
42
|
+
sjc: { title: '审计处', id: '199' },
|
|
43
|
+
skb: { title: '马克思主义学院', id: '1736' },
|
|
44
|
+
slxy: { title: '数理学院', id: '2063' },
|
|
45
|
+
sysyzcglc: { title: '实验室与资产管理处', id: '312' },
|
|
46
|
+
tgb: { title: '离退休党委/退管办', id: 'notice', pubDateSelector: 'div[class="article-publishdate"]' },
|
|
47
|
+
tw: { title: '团委', id: '2092' },
|
|
48
|
+
tyb: { title: '体育学院', id: '2891' },
|
|
49
|
+
tzb: { title: '统战部', id: '3858' },
|
|
50
|
+
wenming: { title: '文明办', id: '2202' },
|
|
51
|
+
wgyxy: { title: '外国语学院', id: 'tzgg' },
|
|
52
|
+
xcb: { title: '宣传部(文明办、融媒体中心)', id: '2925' },
|
|
53
|
+
xsc: { title: '学生处', id: '3482' },
|
|
54
|
+
xunchaban: { title: '巡查办', id: '5044' },
|
|
55
|
+
xxgk: { title: '信息公开网', id: 'zxgkxx' },
|
|
56
|
+
yjsc: { title: '研究生院/研工部', id: '1161' },
|
|
57
|
+
zdhxy: { title: '自动化工程学院', id: '2002' },
|
|
58
|
+
zs: { title: '本科招生网', id: 'zxxx' },
|
|
59
|
+
zzb: { title: '组织部(老干部处、党校)', id: '1534' },
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
module.exports = {
|
|
63
|
+
config,
|
|
64
|
+
};
|
package/lib/v2/shiep/index.js
CHANGED
|
@@ -4,51 +4,30 @@ const dayjs = require('dayjs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const { parseDate } = require('@/utils/parse-date');
|
|
6
6
|
const { art } = require('@/utils/render');
|
|
7
|
+
const { config } = require('./config');
|
|
7
8
|
|
|
8
9
|
module.exports = async (ctx) => {
|
|
9
10
|
const type = ctx.params.type;
|
|
10
11
|
|
|
11
|
-
const config = {
|
|
12
|
-
dqxy: { title: '电气工程学院', id: '2462' },
|
|
13
|
-
dxxy: { title: '电子与信息工程学院', id: 'tzgg' },
|
|
14
|
-
energy: { title: '能源与机械工程学院', id: '892' },
|
|
15
|
-
fao: { title: '国际交流与合作处(港澳台办公室)', id: 'tzgg' },
|
|
16
|
-
gjjlxy: { title: '国际交流学院', id: 'tzgg' }, // NAME_NOT_RESOLVED
|
|
17
|
-
hhxy: { title: '环境与化学工程学院', id: '1231' },
|
|
18
|
-
jgxy: { title: '经济与管理学院', id: '3633' },
|
|
19
|
-
jjxy: { title: '继续教育学院', id: '2582' },
|
|
20
|
-
jsjxy: { title: '计算机科学与技术学院', id: '973' },
|
|
21
|
-
jwc: { title: '教务处', id: '227' },
|
|
22
|
-
kyc: { title: '科研处', id: '834' },
|
|
23
|
-
news: { title: '新闻网', id: 'notice' },
|
|
24
|
-
rsc: { title: '党委教师工作部、人事处', id: '1695' },
|
|
25
|
-
skb: { title: '马克思主义学院', id: '1736' },
|
|
26
|
-
slxy: { title: '数理学院', id: '2063' },
|
|
27
|
-
tyb: { title: '体育学院', id: '2891' },
|
|
28
|
-
wgyxy: { title: '外国语学院', id: 'tzgg' },
|
|
29
|
-
xxgk: { title: '信息公开网', id: 'zxgkxx' },
|
|
30
|
-
yjsc: { title: '研究生院/研工部', id: '1161' },
|
|
31
|
-
yjzx: { title: '人文艺术学院', id: '3089' }, // NAME_NOT_RESOLVED
|
|
32
|
-
zdhxy: { title: '自动化工程学院', id: '2002' },
|
|
33
|
-
zs: { title: '本科招生网', id: 'zxxx' },
|
|
34
|
-
};
|
|
35
|
-
|
|
36
12
|
if (!Object.keys(config).includes(type)) {
|
|
37
13
|
throw Error('Invalid type');
|
|
38
14
|
}
|
|
39
15
|
|
|
40
16
|
const host = `https://${type}.shiep.edu.cn`;
|
|
41
17
|
const id = ctx.params.id || config[type].id;
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const response = await got(`${host}/${id}/list.htm`);
|
|
18
|
+
const link = type === 'career' ? `${host}/news/index/tag/${id}` : `${host}/${id}/list.htm`;
|
|
45
19
|
|
|
20
|
+
const response = await got(link);
|
|
46
21
|
const $ = cheerio.load(response.data);
|
|
47
22
|
|
|
48
|
-
const
|
|
23
|
+
const listSelector = config[type].listSelector || '.list_item';
|
|
24
|
+
const pubDateSelector = config[type].pubDateSelector || 'span[class="Article_PublishDate"]';
|
|
25
|
+
const descriptionSelector = config[type].descriptionSelector || '.wp_articlecontent';
|
|
26
|
+
|
|
27
|
+
const items = $(listSelector)
|
|
49
28
|
.toArray()
|
|
50
29
|
.filter((item) => {
|
|
51
|
-
const date = dayjs($(item).find(
|
|
30
|
+
const date = dayjs($(item).find(pubDateSelector).text().trim());
|
|
52
31
|
return date.isValid();
|
|
53
32
|
})
|
|
54
33
|
.map((item) => {
|
|
@@ -56,7 +35,7 @@ module.exports = async (ctx) => {
|
|
|
56
35
|
return {
|
|
57
36
|
title: item.find('a').attr('title') || item.find('a').text(),
|
|
58
37
|
link: new URL(item.find('a').attr('href'), host).href,
|
|
59
|
-
pubDate: parseDate(item.find(
|
|
38
|
+
pubDate: parseDate(item.find(pubDateSelector).text().trim(), 'YYYY-MM-DD'),
|
|
60
39
|
};
|
|
61
40
|
});
|
|
62
41
|
|
|
@@ -67,9 +46,9 @@ module.exports = async (ctx) => {
|
|
|
67
46
|
const response = await got(item.link);
|
|
68
47
|
const $ = cheerio.load(response.data);
|
|
69
48
|
|
|
70
|
-
if ($(
|
|
49
|
+
if ($(descriptionSelector).length > 0) {
|
|
71
50
|
item.description = art(path.resolve(__dirname, 'templates/description.art'), {
|
|
72
|
-
description: $(
|
|
51
|
+
description: $(descriptionSelector).html(),
|
|
73
52
|
});
|
|
74
53
|
} else {
|
|
75
54
|
item.description = '请进行统一身份认证后查看内容';
|
|
@@ -84,7 +63,7 @@ module.exports = async (ctx) => {
|
|
|
84
63
|
|
|
85
64
|
ctx.state.data = {
|
|
86
65
|
title: '上海电力大学-' + config[type].title,
|
|
87
|
-
link
|
|
66
|
+
link,
|
|
88
67
|
description: '上海电力大学-' + config[type].title,
|
|
89
68
|
item: items,
|
|
90
69
|
};
|
package/lib/v2/shiep/radar.js
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
'shiep.edu.cn': {
|
|
3
3
|
_name: '上海电力大学',
|
|
4
|
+
bwc: [
|
|
5
|
+
{
|
|
6
|
+
title: '武装部保卫处',
|
|
7
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
8
|
+
source: ['/:id/list.htm'],
|
|
9
|
+
target: '/shiep/bwc/:id',
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
career: [
|
|
13
|
+
{
|
|
14
|
+
title: '本科就业信息网',
|
|
15
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
16
|
+
source: ['/news/index/tag/:id'],
|
|
17
|
+
target: '/shiep/career/:id',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
cyb: [
|
|
21
|
+
{
|
|
22
|
+
title: '资产经营公司/产业办',
|
|
23
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
24
|
+
source: ['/:id/list.htm'],
|
|
25
|
+
target: '/shiep/cyb/:id',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
dangban: [
|
|
29
|
+
{
|
|
30
|
+
title: '党委办公室',
|
|
31
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
32
|
+
source: ['/:id/list.htm'],
|
|
33
|
+
target: '/shiep/dangban/:id',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
djfwzxdcs: [
|
|
37
|
+
{
|
|
38
|
+
title: '党建服务中心/党建督查室',
|
|
39
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
40
|
+
source: ['/:id/list.htm'],
|
|
41
|
+
target: '/shiep/djfwzxdcs/:id',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
4
44
|
dqxy: [
|
|
5
45
|
{
|
|
6
46
|
title: '电气工程学院',
|
|
@@ -9,9 +49,17 @@ module.exports = {
|
|
|
9
49
|
target: '/shiep/dqxy/:id',
|
|
10
50
|
},
|
|
11
51
|
],
|
|
52
|
+
dwllc: [
|
|
53
|
+
{
|
|
54
|
+
title: '对外联络处',
|
|
55
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
56
|
+
source: ['/:id/list.htm'],
|
|
57
|
+
target: '/shiep/dwllc/:id',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
12
60
|
dxxy: [
|
|
13
61
|
{
|
|
14
|
-
title: '
|
|
62
|
+
title: '电子与信息工程学院',
|
|
15
63
|
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
16
64
|
source: ['/:id/list.htm'],
|
|
17
65
|
target: '/shiep/dxxy/:id',
|
|
@@ -25,6 +73,22 @@ module.exports = {
|
|
|
25
73
|
target: '/shiep/energy/:id',
|
|
26
74
|
},
|
|
27
75
|
],
|
|
76
|
+
'energy-saving': [
|
|
77
|
+
{
|
|
78
|
+
title: '上海热交换系统节能工程技术研究中心',
|
|
79
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
80
|
+
source: ['/:id/list.htm'],
|
|
81
|
+
target: '/shiep/energy-saving/:id',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
english: [
|
|
85
|
+
{
|
|
86
|
+
title: 'Shanghai University of Electric Power',
|
|
87
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
88
|
+
source: ['/:id/list.htm'],
|
|
89
|
+
target: '/shiep/english/:id',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
28
92
|
fao: [
|
|
29
93
|
{
|
|
30
94
|
title: '国际交流与合作处(港澳台办公室)',
|
|
@@ -33,12 +97,52 @@ module.exports = {
|
|
|
33
97
|
target: '/shiep/fao/:id',
|
|
34
98
|
},
|
|
35
99
|
],
|
|
36
|
-
|
|
100
|
+
fgw: [
|
|
101
|
+
{
|
|
102
|
+
title: '妇工委',
|
|
103
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
104
|
+
source: ['/:id/list.htm'],
|
|
105
|
+
target: '/shiep/fgw/:id',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
fzghc: [
|
|
109
|
+
{
|
|
110
|
+
title: '发展规划处',
|
|
111
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
112
|
+
source: ['/:id/list.htm'],
|
|
113
|
+
target: '/shiep/fzghc/:id',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
gec: [
|
|
117
|
+
{
|
|
118
|
+
title: '上海新能源人才技术教育交流中心',
|
|
119
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
120
|
+
source: ['/:id/list.htm'],
|
|
121
|
+
target: '/shiep/gec/:id',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
gonghui: [
|
|
125
|
+
{
|
|
126
|
+
title: '工会',
|
|
127
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
128
|
+
source: ['/:id/list.htm'],
|
|
129
|
+
target: '/shiep/gonghui/:id',
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
'green-energy': [
|
|
133
|
+
{
|
|
134
|
+
title: '上海绿色能源并网技术研究中心',
|
|
135
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
136
|
+
source: ['/:id/list.htm'],
|
|
137
|
+
target: '/shiep/green-energy/:id',
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
hhsyzx: [
|
|
37
141
|
{
|
|
38
|
-
title: '
|
|
142
|
+
title: '能源化学实验教学中心',
|
|
39
143
|
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
40
144
|
source: ['/:id/list.htm'],
|
|
41
|
-
target: '/shiep/
|
|
145
|
+
target: '/shiep/hhsyzx/:id',
|
|
42
146
|
},
|
|
43
147
|
],
|
|
44
148
|
hhxy: [
|
|
@@ -49,6 +153,30 @@ module.exports = {
|
|
|
49
153
|
target: '/shiep/hhxy/:id',
|
|
50
154
|
},
|
|
51
155
|
],
|
|
156
|
+
hqglc: [
|
|
157
|
+
{
|
|
158
|
+
title: '后勤管理处(后勤服务中心)',
|
|
159
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
160
|
+
source: ['/:id/list.htm'],
|
|
161
|
+
target: '/shiep/hqglc/:id',
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
ieetc: [
|
|
165
|
+
{
|
|
166
|
+
title: '创新创业工程训练中心',
|
|
167
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
168
|
+
source: ['/:id/list.htm'],
|
|
169
|
+
target: '/shiep/ieetc/:id',
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
jgdw: [
|
|
173
|
+
{
|
|
174
|
+
title: '机关党委',
|
|
175
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
176
|
+
source: ['/:id/list.htm'],
|
|
177
|
+
target: '/shiep/jgdw/:id',
|
|
178
|
+
},
|
|
179
|
+
],
|
|
52
180
|
jgxy: [
|
|
53
181
|
{
|
|
54
182
|
title: '经济与管理学院',
|
|
@@ -57,14 +185,38 @@ module.exports = {
|
|
|
57
185
|
target: '/shiep/jgxy/:id',
|
|
58
186
|
},
|
|
59
187
|
],
|
|
188
|
+
jijian: [
|
|
189
|
+
{
|
|
190
|
+
title: '纪委(监察专员办公室)',
|
|
191
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
192
|
+
source: ['/:id/list.htm'],
|
|
193
|
+
target: '/shiep/jijian/:id',
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
jjc: [
|
|
197
|
+
{
|
|
198
|
+
title: '基建处',
|
|
199
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
200
|
+
source: ['/:id/list.htm'],
|
|
201
|
+
target: '/shiep/jjc/:id',
|
|
202
|
+
},
|
|
203
|
+
],
|
|
60
204
|
jjxy: [
|
|
61
205
|
{
|
|
62
|
-
title: '
|
|
206
|
+
title: '继续教育学院(国际教育学院)',
|
|
63
207
|
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
64
208
|
source: ['/:id/list.htm'],
|
|
65
209
|
target: '/shiep/jjxy/:id',
|
|
66
210
|
},
|
|
67
211
|
],
|
|
212
|
+
jsjxfzzx: [
|
|
213
|
+
{
|
|
214
|
+
title: '教师教学发展中心',
|
|
215
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
216
|
+
source: ['/:id/list.htm'],
|
|
217
|
+
target: '/shiep/jsjxfzzx/:id',
|
|
218
|
+
},
|
|
219
|
+
],
|
|
68
220
|
jsjxy: [
|
|
69
221
|
{
|
|
70
222
|
title: '计算机科学与技术学院',
|
|
@@ -73,6 +225,14 @@ module.exports = {
|
|
|
73
225
|
target: '/shiep/jsjxy/:id',
|
|
74
226
|
},
|
|
75
227
|
],
|
|
228
|
+
jszyzx: [
|
|
229
|
+
{
|
|
230
|
+
title: '技术转移中心',
|
|
231
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
232
|
+
source: ['/:id/list.htm'],
|
|
233
|
+
target: '/shiep/jszyzx/:id',
|
|
234
|
+
},
|
|
235
|
+
],
|
|
76
236
|
jwc: [
|
|
77
237
|
{
|
|
78
238
|
title: '教务处',
|
|
@@ -81,14 +241,54 @@ module.exports = {
|
|
|
81
241
|
target: '/shiep/jwc/:id',
|
|
82
242
|
},
|
|
83
243
|
],
|
|
244
|
+
kczx: [
|
|
245
|
+
{
|
|
246
|
+
title: '能源电力科创中心',
|
|
247
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
248
|
+
source: ['/:id/list.htm'],
|
|
249
|
+
target: '/shiep/kczx/:id',
|
|
250
|
+
},
|
|
251
|
+
],
|
|
84
252
|
kyc: [
|
|
85
253
|
{
|
|
86
|
-
title: '
|
|
254
|
+
title: '科研处/融合办',
|
|
87
255
|
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
88
256
|
source: ['/:id/list.htm'],
|
|
89
257
|
target: '/shiep/kyc/:id',
|
|
90
258
|
},
|
|
91
259
|
],
|
|
260
|
+
lgxq: [
|
|
261
|
+
{
|
|
262
|
+
title: '临港新校区建设综合办公室',
|
|
263
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
264
|
+
source: ['/:id/list.htm'],
|
|
265
|
+
target: '/shiep/lgxq/:id',
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
library: [
|
|
269
|
+
{
|
|
270
|
+
title: '图书馆',
|
|
271
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
272
|
+
source: ['/:id/list.htm'],
|
|
273
|
+
target: '/shiep/library/:id',
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
metc: [
|
|
277
|
+
{
|
|
278
|
+
title: '现代教育技术中心/信息办',
|
|
279
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
280
|
+
source: ['/:id/list.htm'],
|
|
281
|
+
target: '/shiep/metc/:id',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
mpep: [
|
|
285
|
+
{
|
|
286
|
+
title: '上海市电力材料防护与新材料重点实验室',
|
|
287
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
288
|
+
source: ['/:id/list.htm'],
|
|
289
|
+
target: '/shiep/mpep/:id',
|
|
290
|
+
},
|
|
291
|
+
],
|
|
92
292
|
news: [
|
|
93
293
|
{
|
|
94
294
|
title: '新闻网',
|
|
@@ -97,14 +297,38 @@ module.exports = {
|
|
|
97
297
|
target: '/shiep/news/:id',
|
|
98
298
|
},
|
|
99
299
|
],
|
|
300
|
+
office: [
|
|
301
|
+
{
|
|
302
|
+
title: '校长办公室(档案馆)',
|
|
303
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
304
|
+
source: ['/:id/list.htm'],
|
|
305
|
+
target: '/shiep/office/:id',
|
|
306
|
+
},
|
|
307
|
+
],
|
|
100
308
|
rsc: [
|
|
101
309
|
{
|
|
102
|
-
title: '
|
|
310
|
+
title: '党委教师工作部/人事处',
|
|
103
311
|
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
104
312
|
source: ['/:id/list.htm'],
|
|
105
313
|
target: '/shiep/rsc/:id',
|
|
106
314
|
},
|
|
107
315
|
],
|
|
316
|
+
rwysxy: [
|
|
317
|
+
{
|
|
318
|
+
title: '人文艺术学院',
|
|
319
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
320
|
+
source: ['/:id/list.htm'],
|
|
321
|
+
target: '/shiep/rwysxy/:id',
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
sjc: [
|
|
325
|
+
{
|
|
326
|
+
title: '审计处',
|
|
327
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
328
|
+
source: ['/:id/list.htm'],
|
|
329
|
+
target: '/shiep/sjc/:id',
|
|
330
|
+
},
|
|
331
|
+
],
|
|
108
332
|
skb: [
|
|
109
333
|
{
|
|
110
334
|
title: '马克思主义学院',
|
|
@@ -121,6 +345,30 @@ module.exports = {
|
|
|
121
345
|
target: '/shiep/slxy/:id',
|
|
122
346
|
},
|
|
123
347
|
],
|
|
348
|
+
sysyzcglc: [
|
|
349
|
+
{
|
|
350
|
+
title: '实验室与资产管理处',
|
|
351
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
352
|
+
source: ['/:id/list.htm'],
|
|
353
|
+
target: '/shiep/sysyzcglc/:id',
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
tgb: [
|
|
357
|
+
{
|
|
358
|
+
title: '离退休党委/退管办',
|
|
359
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
360
|
+
source: ['/:id/list.htm'],
|
|
361
|
+
target: '/shiep/tgb/:id',
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
tw: [
|
|
365
|
+
{
|
|
366
|
+
title: '团委',
|
|
367
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
368
|
+
source: ['/:id/list.htm'],
|
|
369
|
+
target: '/shiep/tw/:id',
|
|
370
|
+
},
|
|
371
|
+
],
|
|
124
372
|
tyb: [
|
|
125
373
|
{
|
|
126
374
|
title: '体育学院',
|
|
@@ -129,6 +377,22 @@ module.exports = {
|
|
|
129
377
|
target: '/shiep/tyb/:id',
|
|
130
378
|
},
|
|
131
379
|
],
|
|
380
|
+
tzb: [
|
|
381
|
+
{
|
|
382
|
+
title: '统战部',
|
|
383
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
384
|
+
source: ['/:id/list.htm'],
|
|
385
|
+
target: '/shiep/tzb/:id',
|
|
386
|
+
},
|
|
387
|
+
],
|
|
388
|
+
wenming: [
|
|
389
|
+
{
|
|
390
|
+
title: '文明办',
|
|
391
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
392
|
+
source: ['/:id/list.htm'],
|
|
393
|
+
target: '/shiep/wenming/:id',
|
|
394
|
+
},
|
|
395
|
+
],
|
|
132
396
|
wgyxy: [
|
|
133
397
|
{
|
|
134
398
|
title: '外国语学院',
|
|
@@ -137,6 +401,30 @@ module.exports = {
|
|
|
137
401
|
target: '/shiep/wgyxy/:id',
|
|
138
402
|
},
|
|
139
403
|
],
|
|
404
|
+
xcb: [
|
|
405
|
+
{
|
|
406
|
+
title: '宣传部(文明办、融媒体中心)',
|
|
407
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
408
|
+
source: ['/:id/list.htm'],
|
|
409
|
+
target: '/shiep/xcb/:id',
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
xsc: [
|
|
413
|
+
{
|
|
414
|
+
title: '学生处',
|
|
415
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
416
|
+
source: ['/:id/list.htm'],
|
|
417
|
+
target: '/shiep/xsc/:id',
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
xunchaban: [
|
|
421
|
+
{
|
|
422
|
+
title: '巡查办',
|
|
423
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
424
|
+
source: ['/:id/list.htm'],
|
|
425
|
+
target: '/shiep/xunchaban/:id',
|
|
426
|
+
},
|
|
427
|
+
],
|
|
140
428
|
xxgk: [
|
|
141
429
|
{
|
|
142
430
|
title: '信息公开网',
|
|
@@ -153,14 +441,6 @@ module.exports = {
|
|
|
153
441
|
target: '/shiep/yjsc/:id',
|
|
154
442
|
},
|
|
155
443
|
],
|
|
156
|
-
yjzx: [
|
|
157
|
-
{
|
|
158
|
-
title: '人文艺术学院',
|
|
159
|
-
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
160
|
-
source: ['/:id/list.htm'],
|
|
161
|
-
target: '/shiep/yjzx/:id',
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
444
|
zdhxy: [
|
|
165
445
|
{
|
|
166
446
|
title: '自动化工程学院',
|
|
@@ -177,5 +457,13 @@ module.exports = {
|
|
|
177
457
|
target: '/shiep/zs/:id',
|
|
178
458
|
},
|
|
179
459
|
],
|
|
460
|
+
zzb: [
|
|
461
|
+
{
|
|
462
|
+
title: '组织部(老干部处、党校)',
|
|
463
|
+
docs: 'https://docs.rsshub.app/university.html#shang-hai-dian-li-da-xue',
|
|
464
|
+
source: ['/:id/list.htm'],
|
|
465
|
+
target: '/shiep/zzb/:id',
|
|
466
|
+
},
|
|
467
|
+
],
|
|
180
468
|
},
|
|
181
469
|
};
|
|
@@ -6,7 +6,7 @@ const { art } = require('@/utils/render');
|
|
|
6
6
|
const path = require('path');
|
|
7
7
|
|
|
8
8
|
module.exports = async (ctx) => {
|
|
9
|
-
const rootUrl = '
|
|
9
|
+
const rootUrl = 'http://shuiguopai.com';
|
|
10
10
|
const apiRootUrl = 'https://api.cbbee0.com';
|
|
11
11
|
const listUrl = `${apiRootUrl}/v1_2/homePage`;
|
|
12
12
|
const filmUrl = `${apiRootUrl}/v1_2/filmInfo`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { getRollNewsList, parseRollNewsList, parseArticle } = require('./utils');
|
|
2
|
+
|
|
3
|
+
module.exports = async (ctx) => {
|
|
4
|
+
const pageid = '402';
|
|
5
|
+
const lid = '2559';
|
|
6
|
+
const { limit = '50' } = ctx.query;
|
|
7
|
+
const response = await getRollNewsList(pageid, lid, limit);
|
|
8
|
+
const list = parseRollNewsList(response.data.result.data);
|
|
9
|
+
|
|
10
|
+
const out = await Promise.all(list.map((item) => parseArticle(item, ctx.cache.tryGet)));
|
|
11
|
+
|
|
12
|
+
ctx.state.data = {
|
|
13
|
+
title: '新浪专栏-创事记',
|
|
14
|
+
link: 'https://tech.sina.com.cn/chuangshiji',
|
|
15
|
+
item: out,
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const { getRollNewsList, parseRollNewsList, parseArticle } = require('./utils');
|
|
2
|
+
|
|
3
|
+
const link = 'https://tech.sina.com.cn/discovery/';
|
|
4
|
+
const map = new Map([
|
|
5
|
+
['zx', { title: '最新', id: '1795' }],
|
|
6
|
+
['twhk', { title: '天文航空', id: '1796' }],
|
|
7
|
+
['dwzw', { title: '动物植物', id: '1797' }],
|
|
8
|
+
['zrdl', { title: '自然地理', id: '1798' }],
|
|
9
|
+
['lskg', { title: '历史考古', id: '1799' }],
|
|
10
|
+
['smyx', { title: '生命医学', id: '1800' }],
|
|
11
|
+
['shbk', { title: '生活百科', id: '1801' }],
|
|
12
|
+
['kjqy', { title: '科技前沿', id: '1802' }],
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
module.exports = async (ctx) => {
|
|
16
|
+
const type = ctx.params.type;
|
|
17
|
+
const lid = map.get(type).id;
|
|
18
|
+
const title = map.get(type).title;
|
|
19
|
+
const pageid = '207';
|
|
20
|
+
const { limit = '50' } = ctx.query;
|
|
21
|
+
|
|
22
|
+
const response = await getRollNewsList(pageid, lid, limit);
|
|
23
|
+
const list = parseRollNewsList(response.data.result.data);
|
|
24
|
+
|
|
25
|
+
const out = await Promise.all(list.map((item) => parseArticle(item, ctx.cache.tryGet)));
|
|
26
|
+
|
|
27
|
+
ctx.state.data = {
|
|
28
|
+
title: `${title}-新浪科技科学探索`,
|
|
29
|
+
link,
|
|
30
|
+
item: out,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const { getRollNewsList, parseRollNewsList, parseArticle } = require('../utils');
|
|
2
|
+
|
|
3
|
+
module.exports = async (ctx) => {
|
|
4
|
+
const map = {
|
|
5
|
+
1686: '国内滚动',
|
|
6
|
+
1687: '宏观经济',
|
|
7
|
+
1690: '金融新闻',
|
|
8
|
+
1688: '地方经济',
|
|
9
|
+
1689: '部委动态',
|
|
10
|
+
3231: '今日财经 TOP10',
|
|
11
|
+
};
|
|
12
|
+
const pageid = '155';
|
|
13
|
+
const { lid = '1686' } = ctx.params;
|
|
14
|
+
const { limit = '50' } = ctx.query;
|
|
15
|
+
const response = await getRollNewsList(pageid, lid, limit);
|
|
16
|
+
const list = parseRollNewsList(response.data.result.data);
|
|
17
|
+
|
|
18
|
+
const out = await Promise.all(list.map((item) => parseArticle(item, ctx.cache.tryGet)));
|
|
19
|
+
|
|
20
|
+
ctx.state.data = {
|
|
21
|
+
title: `新浪财经-${map[lid]}`,
|
|
22
|
+
link: 'http://finance.sina.com.cn/china/',
|
|
23
|
+
item: out,
|
|
24
|
+
};
|
|
25
|
+
};
|