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,37 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
3
|
+
const { parseArticle } = require('../../utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const { cids = '57045' } = ctx.params;
|
|
7
|
+
const { limit = '50' } = ctx.query;
|
|
8
|
+
const { data: response } = await got('https://interface.sina.cn/pc_api/public_news_data.d.json', {
|
|
9
|
+
searchParams: {
|
|
10
|
+
cids,
|
|
11
|
+
pdps: '',
|
|
12
|
+
smartFlow: '',
|
|
13
|
+
editLevel: '0,1,2,3',
|
|
14
|
+
type: 'std_news,std_slide,std_video',
|
|
15
|
+
pageSize: limit,
|
|
16
|
+
cTime: '1483200000',
|
|
17
|
+
tm: Date.now(),
|
|
18
|
+
up: '0',
|
|
19
|
+
action: '0',
|
|
20
|
+
_: new Date().getTime(),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
const list = response.data.map((item) => ({
|
|
24
|
+
title: item.title,
|
|
25
|
+
link: item.url,
|
|
26
|
+
pubDate: parseDate(item.ctime, 'X'),
|
|
27
|
+
author: item.media,
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
const items = await Promise.all(list.map((item) => parseArticle(item, ctx.cache.tryGet)));
|
|
31
|
+
|
|
32
|
+
ctx.state.data = {
|
|
33
|
+
title: '美股|美股行情|美股新闻 - 新浪财经',
|
|
34
|
+
link: 'https://finance.sina.com.cn/stock/usstock/',
|
|
35
|
+
item: items,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'sina.com.cn': {
|
|
3
|
+
_name: '新浪',
|
|
4
|
+
finance: [
|
|
5
|
+
{
|
|
6
|
+
title: '财经 - 国內',
|
|
7
|
+
docs: 'https://docs.rsshub.app/new-media.html#xin-lang',
|
|
8
|
+
source: ['/china', '/'],
|
|
9
|
+
target: '/sina/finance/china',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: '美股',
|
|
13
|
+
docs: 'https://docs.rsshub.app/new-media.html#xin-lang',
|
|
14
|
+
source: ['/stock/usstock', '/'],
|
|
15
|
+
target: '/sina/finance/stock/usstock',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
news: [
|
|
19
|
+
{
|
|
20
|
+
title: '滚动新闻',
|
|
21
|
+
docs: 'https://docs.rsshub.app/new-media.html#xin-lang',
|
|
22
|
+
source: ['/roll'],
|
|
23
|
+
target: (_, url) => `/sina/rollnews/${new URL(url).hash.match(/lid=(\d+)/)[1]}`,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
sports: [
|
|
27
|
+
{
|
|
28
|
+
title: '体育 - 综合',
|
|
29
|
+
docs: 'https://docs.rsshub.app/new-media.html#xin-lang',
|
|
30
|
+
source: ['/others/:type', '/:type'],
|
|
31
|
+
target: (params) => `/sina/sports/${params.type}`,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
tech: [
|
|
35
|
+
{
|
|
36
|
+
title: '专栏 - 创事记',
|
|
37
|
+
docs: 'https://docs.rsshub.app/new-media.html#xin-lang',
|
|
38
|
+
source: ['/chuangshiji', '/'],
|
|
39
|
+
target: '/sina/csj',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: '科技 - 科学探索',
|
|
43
|
+
docs: 'https://docs.rsshub.app/new-media.html#xin-lang',
|
|
44
|
+
source: ['/discovery', '/'],
|
|
45
|
+
target: '/sina/discovery/zx',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const { getRollNewsList, parseRollNewsList, parseArticle } = require('./utils');
|
|
2
|
+
|
|
3
|
+
module.exports = async (ctx) => {
|
|
4
|
+
const map = {
|
|
5
|
+
2509: '全部',
|
|
6
|
+
2510: '国内',
|
|
7
|
+
2511: '国际',
|
|
8
|
+
2669: '社会',
|
|
9
|
+
2512: '体育',
|
|
10
|
+
2513: '娱乐',
|
|
11
|
+
2514: '军事',
|
|
12
|
+
2515: '科技',
|
|
13
|
+
2516: '财经',
|
|
14
|
+
2517: '股市',
|
|
15
|
+
2518: '美股',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const pageid = '153';
|
|
19
|
+
const { lid = '2509' } = ctx.params;
|
|
20
|
+
const { limit = '50' } = ctx.query;
|
|
21
|
+
const response = await getRollNewsList(pageid, lid, limit);
|
|
22
|
+
const list = parseRollNewsList(response.data.result.data);
|
|
23
|
+
|
|
24
|
+
const out = await Promise.all(list.map((item) => parseArticle(item, ctx.cache.tryGet)));
|
|
25
|
+
|
|
26
|
+
ctx.state.data = {
|
|
27
|
+
title: `新浪${map[lid]}滚动新闻`,
|
|
28
|
+
link: `https://news.sina.com.cn/roll/#pageid=${pageid}&lid=${lid}&k=&num=${limit}&page=1`,
|
|
29
|
+
item: out,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module.exports = (router) => {
|
|
2
|
+
router.get('/csj', require('./chuangshiji'));
|
|
3
|
+
router.get('/discovery/:type', require('./discovery'));
|
|
4
|
+
router.get('/finance/china/:lid?', require('./finance/china'));
|
|
5
|
+
router.get('/finance/stock/usstock/:cids?', require('./finance/stock/usstock'));
|
|
6
|
+
router.get('/rollnews/:lid?', require('./rollnews'));
|
|
7
|
+
router.get('/sports/:type?', require('./sports'));
|
|
8
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseArticle } = require('./utils');
|
|
4
|
+
|
|
5
|
+
module.exports = async (ctx) => {
|
|
6
|
+
const { type } = ctx.params;
|
|
7
|
+
|
|
8
|
+
let currentUrl = `https://sports.sina.com.cn/others/${type}.shtml`;
|
|
9
|
+
let query = 'ul.list2 li a';
|
|
10
|
+
|
|
11
|
+
if (type === 'ufc') {
|
|
12
|
+
currentUrl = 'http://roll.sports.sina.com.cn/s_ufc_all/index.shtml';
|
|
13
|
+
query = '#d_list ul li span a';
|
|
14
|
+
} else if (type === 'winter' || type === 'horse') {
|
|
15
|
+
currentUrl = `https://sports.sina.com.cn/${type}/`;
|
|
16
|
+
query = '[class^=news-list] .list li a';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const response = await got({
|
|
20
|
+
method: 'get',
|
|
21
|
+
url: currentUrl,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const $ = cheerio.load(response.data);
|
|
25
|
+
const list = $(query)
|
|
26
|
+
.toArray()
|
|
27
|
+
.map((item) => {
|
|
28
|
+
item = $(item);
|
|
29
|
+
return {
|
|
30
|
+
title: item.text(),
|
|
31
|
+
link: item.attr('href').replace('http://', 'https://'),
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const items = await Promise.all(list.map((item) => parseArticle(item, ctx.cache.tryGet)));
|
|
36
|
+
|
|
37
|
+
ctx.state.data = {
|
|
38
|
+
title: `${$('title').text().split('_')[0]} - 新浪体育`,
|
|
39
|
+
description: $('meta[name="description"]').attr('content'),
|
|
40
|
+
link: currentUrl,
|
|
41
|
+
item: items,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { art } = require('@/utils/render');
|
|
6
|
+
const { join } = require('path');
|
|
7
|
+
|
|
8
|
+
const getRollNewsList = (pageid, lid, limit) =>
|
|
9
|
+
got('https://feed.mix.sina.com.cn/api/roll/get', {
|
|
10
|
+
headers: {
|
|
11
|
+
referer: 'https://news.sina.com.cn/',
|
|
12
|
+
},
|
|
13
|
+
searchParams: {
|
|
14
|
+
pageid,
|
|
15
|
+
lid,
|
|
16
|
+
k: '',
|
|
17
|
+
num: limit,
|
|
18
|
+
page: 1,
|
|
19
|
+
r: Math.random(),
|
|
20
|
+
_: new Date().getTime(),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const parseRollNewsList = (data) =>
|
|
25
|
+
data.map((item) => ({
|
|
26
|
+
title: item.title,
|
|
27
|
+
description: item.intro,
|
|
28
|
+
link: item.url.replace('http://', 'https://'),
|
|
29
|
+
author: item.media_name,
|
|
30
|
+
pubDate: parseDate(item.intime, 'X'),
|
|
31
|
+
updated: parseDate(item.mtime, 'X'),
|
|
32
|
+
}));
|
|
33
|
+
|
|
34
|
+
const parseArticle = (item, tryGet) =>
|
|
35
|
+
tryGet(item.link, async () => {
|
|
36
|
+
const detailResponse = await got(item.link);
|
|
37
|
+
const $ = cheerio.load(detailResponse.data);
|
|
38
|
+
$('#left_hzh_ad, .appendQr_wrap, .app-kaihu-qr, .tech-quotation').remove();
|
|
39
|
+
|
|
40
|
+
const metaPublishTime = $('meta[property="article:published_time"]');
|
|
41
|
+
const htmlPubDate = $('#pub_date, .date');
|
|
42
|
+
const htmlDate = htmlPubDate.length ? timezone(parseDate(htmlPubDate.text(), ['YYYY年MM月DD日 HH:mm', 'YYYY年MM月DD日HH:mm']), 8) : null;
|
|
43
|
+
const metaDate = metaPublishTime.length ? parseDate(metaPublishTime.attr('content')) : htmlDate; // 2023-05-08T08:39:31+08:00
|
|
44
|
+
item.pubDate = item.pubDate ? item.pubDate : metaDate;
|
|
45
|
+
item.author = $('meta[property="article:author"]').attr('content');
|
|
46
|
+
|
|
47
|
+
if (item.link.startsWith('https://slide.sports.sina.com.cn/') || item.link.startsWith('https://slide.tech.sina.com.cn/')) {
|
|
48
|
+
const slideData = JSON.parse(
|
|
49
|
+
$('script')
|
|
50
|
+
.text()
|
|
51
|
+
.match(/var slide_data = (\{.*?\})\s/)[1]
|
|
52
|
+
);
|
|
53
|
+
item.description = art(join(__dirname, 'templates/slide.art'), { slideData });
|
|
54
|
+
} else if (item.link.startsWith('https://video.sina.com.cn/')) {
|
|
55
|
+
const videoId = $('script')
|
|
56
|
+
.text()
|
|
57
|
+
.match(/video_id:'?(.*?)'?,/)[1];
|
|
58
|
+
|
|
59
|
+
const { data: videoResponse } = await got('https://api.ivideo.sina.com.cn/public/video/play', {
|
|
60
|
+
searchParams: {
|
|
61
|
+
video_id: videoId,
|
|
62
|
+
appver: 'V11220.210521.03',
|
|
63
|
+
appname: 'sinaplayer_pc',
|
|
64
|
+
applt: 'web',
|
|
65
|
+
tags: 'sinaplayer_pc',
|
|
66
|
+
jsonp: '',
|
|
67
|
+
plid: 2021012801,
|
|
68
|
+
prid: '',
|
|
69
|
+
uid: '',
|
|
70
|
+
tid: '',
|
|
71
|
+
pid: 1,
|
|
72
|
+
ran: Math.random(),
|
|
73
|
+
r: item.link,
|
|
74
|
+
ssid: `gusr_pc_${Date.now()}`,
|
|
75
|
+
preload: 0,
|
|
76
|
+
uu: '',
|
|
77
|
+
isAuto: 1,
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const videoData = videoResponse.data;
|
|
82
|
+
const poster = videoData.image;
|
|
83
|
+
const videoUrl = videoData.videos.find((v) => v.type === 'mp4').dispatch_result.url;
|
|
84
|
+
item.description = art(join(__dirname, 'templates/video.art'), { poster, videoUrl });
|
|
85
|
+
item.pubDate = parseDate(videoData.create_time, 'X');
|
|
86
|
+
} else if (item.link.startsWith('https://news.sina.com.cn/') || item.link.startsWith('https://mil.news.sina.com.cn/')) {
|
|
87
|
+
item.description = $('#article').html();
|
|
88
|
+
item.category = $('meta[name="keywords"]').attr('content').split(',');
|
|
89
|
+
} else {
|
|
90
|
+
// https://ent.sina.com.cn
|
|
91
|
+
// https://finance.sina.com.cn
|
|
92
|
+
// https://sports.sina.com.cn
|
|
93
|
+
item.description = $('#artibody').html();
|
|
94
|
+
item.category = $('#keywords').data('wbkey')?.split(',');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return item;
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
module.exports = {
|
|
101
|
+
getRollNewsList,
|
|
102
|
+
parseRollNewsList,
|
|
103
|
+
parseArticle,
|
|
104
|
+
};
|
package/lib/v2/sony/downloads.js
CHANGED
|
File without changes
|
package/lib/v2/springer/radar.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/v2/sspai/radar.js
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const iconv = require('iconv-lite');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
5
|
+
const timezone = require('@/utils/timezone');
|
|
6
|
+
|
|
7
|
+
const gbk2utf8 = (s) => iconv.decode(s, 'gbk');
|
|
8
|
+
module.exports = async (ctx) => {
|
|
9
|
+
const baseUrl = 'https://jsjxy.stbu.edu.cn/news/';
|
|
10
|
+
const { data: response } = await got(baseUrl, {
|
|
11
|
+
responseType: 'buffer',
|
|
12
|
+
https: {
|
|
13
|
+
rejectUnauthorized: false,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const $ = cheerio.load(gbk2utf8(response));
|
|
17
|
+
const list = $('.content dl h4')
|
|
18
|
+
.toArray()
|
|
19
|
+
.map((item) => {
|
|
20
|
+
item = $(item);
|
|
21
|
+
const a = item.find('a').first();
|
|
22
|
+
return {
|
|
23
|
+
title: a.text(),
|
|
24
|
+
link: a.attr('href'),
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const items = await Promise.all(
|
|
29
|
+
list.map((item) =>
|
|
30
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
31
|
+
const { data: response } = await got(item.link, {
|
|
32
|
+
responseType: 'buffer',
|
|
33
|
+
https: {
|
|
34
|
+
rejectUnauthorized: false,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const $ = cheerio.load(gbk2utf8(response));
|
|
38
|
+
item.description = $('.content14').first().html().trim();
|
|
39
|
+
item.pubDate = timezone(parseDate($('.article .source').text().split('日期:')[1].replace('\n', '').trim()), +8);
|
|
40
|
+
return item;
|
|
41
|
+
})
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
ctx.state.data = {
|
|
46
|
+
title: '四川工商学院计算机学院 - 新闻动态',
|
|
47
|
+
link: baseUrl,
|
|
48
|
+
description: '四川工商学院计算机学院 - 新闻动态',
|
|
49
|
+
item: items,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'stbu.edu.cn': {
|
|
3
|
+
_name: '四川工商学院',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '学院新闻',
|
|
7
|
+
docs: 'https://docs.rsshub.app/university.html#si-chuan-gong-shang-xue-yuan',
|
|
8
|
+
source: ['/html/news/xueyuan', '/'],
|
|
9
|
+
target: '/stbu/xyxw',
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
jsjxy: [
|
|
13
|
+
{
|
|
14
|
+
title: '计算机学院通知公告',
|
|
15
|
+
docs: 'https://docs.rsshub.app/university.html#si-chuan-gong-shang-xue-yuan',
|
|
16
|
+
source: ['/news', '/'],
|
|
17
|
+
target: '/stbu/jsjxy',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const iconv = require('iconv-lite');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
5
|
+
const timezone = require('@/utils/timezone');
|
|
6
|
+
|
|
7
|
+
const gbk2utf8 = (s) => iconv.decode(s, 'gbk');
|
|
8
|
+
module.exports = async (ctx) => {
|
|
9
|
+
const baseUrl = 'https://www.stbu.edu.cn';
|
|
10
|
+
const requestUrl = `${baseUrl}/html/news/xueyuan/`;
|
|
11
|
+
const { data: response } = await got(requestUrl, {
|
|
12
|
+
responseType: 'buffer',
|
|
13
|
+
https: {
|
|
14
|
+
rejectUnauthorized: false,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
const $ = cheerio.load(gbk2utf8(response));
|
|
18
|
+
const list = $('.style_2 .Simple_title')
|
|
19
|
+
.toArray()
|
|
20
|
+
.map((item) => {
|
|
21
|
+
item = $(item);
|
|
22
|
+
const a = item.find('a').first();
|
|
23
|
+
return {
|
|
24
|
+
title: a.text(),
|
|
25
|
+
link: `${baseUrl}${a.attr('href')}`,
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const items = await Promise.all(
|
|
30
|
+
list.map((item) =>
|
|
31
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
32
|
+
const { data: response } = await got(item.link, {
|
|
33
|
+
responseType: 'buffer',
|
|
34
|
+
https: {
|
|
35
|
+
rejectUnauthorized: false,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const $ = cheerio.load(gbk2utf8(response));
|
|
39
|
+
item.description = $('.artmainl .articlemain').first().html();
|
|
40
|
+
item.pubDate = timezone(parseDate($('.artmainl .info').text().split('|')[2].split(':')[1].trim()), +8);
|
|
41
|
+
return item;
|
|
42
|
+
})
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
ctx.state.data = {
|
|
47
|
+
title: '四川工商学院 - 学院新闻',
|
|
48
|
+
link: requestUrl,
|
|
49
|
+
description: '四川工商学院 - 学院新闻',
|
|
50
|
+
item: items,
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
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 path = require('path');
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const rootUrl = 'https://storyfm.cn';
|
|
9
|
+
const currentUrl = `${rootUrl}/episodes-list/`;
|
|
10
|
+
|
|
11
|
+
const response = await got({
|
|
12
|
+
method: 'get',
|
|
13
|
+
url: currentUrl,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const $ = cheerio.load(response.data);
|
|
17
|
+
|
|
18
|
+
let items = $('.e-ep')
|
|
19
|
+
.toArray()
|
|
20
|
+
.map((item) => {
|
|
21
|
+
item = $(item);
|
|
22
|
+
|
|
23
|
+
const a = item.find('h2.e-ep__title a');
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
title: a.text(),
|
|
27
|
+
link: a.attr('href'),
|
|
28
|
+
pubDate: parseDate(item.find('.whitespace-nowrap').text()),
|
|
29
|
+
enclosure_type: 'audio/mpeg',
|
|
30
|
+
enclosure_url: item.find('audio source').attr('src'),
|
|
31
|
+
itunes_item_image: item.find('.zoom-image-container-progression img').attr('src'),
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
items = await Promise.all(
|
|
36
|
+
items.map((item) =>
|
|
37
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
38
|
+
const detailResponse = await got({
|
|
39
|
+
method: 'get',
|
|
40
|
+
url: item.link,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const content = cheerio.load(detailResponse.data);
|
|
44
|
+
|
|
45
|
+
item.author = content('.rs-post__author').text().replace(/By/, '').trim();
|
|
46
|
+
item.description = art(path.join(__dirname, 'templates/description.art'), {
|
|
47
|
+
audio: item.enclosure_url,
|
|
48
|
+
description: content('.rs-post__content').html(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
return item;
|
|
52
|
+
})
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
ctx.state.data = {
|
|
57
|
+
title: '故事FM',
|
|
58
|
+
link: currentUrl,
|
|
59
|
+
item: items,
|
|
60
|
+
itunes_author: '故事FM',
|
|
61
|
+
image: $('.custom-logo-link img').attr('src'),
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'storyfm.cn': {
|
|
3
|
+
_name: '故事FM',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '首页',
|
|
7
|
+
docs: 'https://docs.rsshub.app/multimedia.html#ge-shi-fm',
|
|
8
|
+
source: ['/'],
|
|
9
|
+
target: '/storyfm/index',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: '播客',
|
|
13
|
+
docs: 'https://docs.rsshub.app/multimedia.html#ge-shi-fm',
|
|
14
|
+
source: ['/episodes-list', '/'],
|
|
15
|
+
target: '/storyfm/episodes',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
};
|
package/lib/v2/sysu/radar.js
CHANGED
package/lib/v2/sysu/router.js
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const logger = require('@/utils/logger');
|
|
5
|
+
const { CookieJar } = require('tough-cookie');
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const { type = 'notice' } = ctx.params;
|
|
9
|
+
const baseUrl = 'https://ygafz.sysu.edu.cn';
|
|
10
|
+
const url = `${baseUrl}/${type}`;
|
|
11
|
+
|
|
12
|
+
const browser = await require('@/utils/puppeteer')();
|
|
13
|
+
const page = await browser.newPage();
|
|
14
|
+
await page.setRequestInterception(true);
|
|
15
|
+
page.on('request', (request) => {
|
|
16
|
+
request.resourceType() === 'document' || request.resourceType() === 'script' ? request.continue() : request.abort();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
logger.debug(`Requesting ${url}`);
|
|
20
|
+
await page.goto(url, {
|
|
21
|
+
waitUntil: 'domcontentloaded',
|
|
22
|
+
});
|
|
23
|
+
await page.waitForSelector('[data-block-plugin-id]');
|
|
24
|
+
const response = await page.content();
|
|
25
|
+
|
|
26
|
+
const cookieJar = new CookieJar();
|
|
27
|
+
const cookies = await page.cookies();
|
|
28
|
+
cookies.reduce((jar, cookie) => {
|
|
29
|
+
jar.setCookie(`${cookie.name}=${cookie.value}`, url);
|
|
30
|
+
return jar;
|
|
31
|
+
}, cookieJar);
|
|
32
|
+
|
|
33
|
+
browser.close();
|
|
34
|
+
|
|
35
|
+
const $ = cheerio.load(response);
|
|
36
|
+
const list = $('.list-content a')
|
|
37
|
+
.toArray()
|
|
38
|
+
.map((item) => {
|
|
39
|
+
item = $(item);
|
|
40
|
+
return {
|
|
41
|
+
title: item.find('p').text(),
|
|
42
|
+
link: `${baseUrl}${item.attr('href')}`,
|
|
43
|
+
pubDate: parseDate(item.find('.date').text()), // 2023-03-22
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const items = await Promise.all(
|
|
48
|
+
list.map((item) =>
|
|
49
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
50
|
+
const { data } = await got(item.link, {
|
|
51
|
+
cookieJar,
|
|
52
|
+
});
|
|
53
|
+
const $ = cheerio.load(data);
|
|
54
|
+
|
|
55
|
+
item.author = $('.article-submit')
|
|
56
|
+
.text()
|
|
57
|
+
.match(/发布人:(.*)/)[1];
|
|
58
|
+
item.description = $('div[data-block-plugin-id="entity_field:node:body"]').html();
|
|
59
|
+
return item;
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
ctx.state.data = {
|
|
65
|
+
title: $('title').text(),
|
|
66
|
+
link: url,
|
|
67
|
+
item: items,
|
|
68
|
+
};
|
|
69
|
+
};
|