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,69 @@
|
|
|
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 limit = ctx.query.limit ? parseInt(ctx.query.limit) : 25;
|
|
7
|
+
|
|
8
|
+
const rootUrl = 'https://dorohedoro.net';
|
|
9
|
+
const apiUrl = `${rootUrl}/news/news.xml`;
|
|
10
|
+
const currentUrl = `${rootUrl}/news/`;
|
|
11
|
+
|
|
12
|
+
const response = await got({
|
|
13
|
+
method: 'get',
|
|
14
|
+
url: apiUrl,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const $ = cheerio.load(response.data);
|
|
18
|
+
|
|
19
|
+
let items = $('item')
|
|
20
|
+
.slice(0, limit)
|
|
21
|
+
.toArray()
|
|
22
|
+
.map((item) => {
|
|
23
|
+
item = $(item);
|
|
24
|
+
|
|
25
|
+
const link = item.find('permalink').text();
|
|
26
|
+
const isNews = /news_\d+_\d+\.html/.test(link);
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
title: item.find('title').text(),
|
|
30
|
+
pubDate: parseDate(item.find('date').text()),
|
|
31
|
+
link: `${rootUrl}${isNews ? `/news/${link}` : ''}`,
|
|
32
|
+
isNews,
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
items = await Promise.all(
|
|
37
|
+
items.map((item) =>
|
|
38
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
39
|
+
if (item.isNews) {
|
|
40
|
+
try {
|
|
41
|
+
const detailResponse = await got({
|
|
42
|
+
method: 'get',
|
|
43
|
+
url: item.link,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const content = cheerio.load(detailResponse.data);
|
|
47
|
+
|
|
48
|
+
content('#bk_btn').remove();
|
|
49
|
+
|
|
50
|
+
item.title = content('.newsTitle').text();
|
|
51
|
+
item.description = content('article').html();
|
|
52
|
+
} catch (e) {
|
|
53
|
+
// no-empty
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
delete item.isNews;
|
|
58
|
+
|
|
59
|
+
return item;
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
ctx.state.data = {
|
|
65
|
+
title: 'アニメ『ドロヘドロ』',
|
|
66
|
+
link: currentUrl,
|
|
67
|
+
item: items,
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const aesjs = require('aes-js');
|
|
3
|
-
const
|
|
3
|
+
const { art } = require('@/utils/render');
|
|
4
|
+
const { join } = require('path');
|
|
5
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
6
|
|
|
5
7
|
module.exports = async (ctx) => {
|
|
6
8
|
const wd = ctx.params.wd;
|
|
7
|
-
const
|
|
9
|
+
const baseUrl = 'https://www.duozhuayu.com';
|
|
10
|
+
const type = 'book';
|
|
11
|
+
const link = `${baseUrl}/search/${type}/${wd}`;
|
|
8
12
|
|
|
9
13
|
// token获取见 https://github.com/wong2/userscripts/blob/master/duozhuayu.user.js
|
|
10
14
|
const key = 'DkOliWvFNR7C4WvR'.split('').map((c) => c.charCodeAt());
|
|
@@ -24,48 +28,35 @@ module.exports = async (ctx) => {
|
|
|
24
28
|
const token = encrypt([timestamp, userId, securityKey].join(':'));
|
|
25
29
|
const requestId = [userId, timestamp, Math.round(1e5 * Math.random())].join('-');
|
|
26
30
|
return {
|
|
27
|
-
'x-
|
|
31
|
+
'x-api-version': '0.0.48',
|
|
32
|
+
'x-refer-request-id': requestId,
|
|
33
|
+
'x-request-id': requestId,
|
|
34
|
+
'x-request-misc': '{"platform":"browser","originSource":"search","originFrom":"normal","webVersion":"1.2.201774"}',
|
|
35
|
+
'x-request-token': token,
|
|
28
36
|
'x-security-key': securityKey,
|
|
37
|
+
'x-timestamp': timestamp,
|
|
29
38
|
'x-user-id': userId,
|
|
30
|
-
'x-request-token': token,
|
|
31
|
-
'x-request-misc': '{"platform":"browser"}',
|
|
32
|
-
'x-api-version': '0.0.15',
|
|
33
|
-
'x-request-id': requestId,
|
|
34
|
-
'x-refer-request-id': requestId,
|
|
35
39
|
};
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
const response = await got({
|
|
39
43
|
method: 'get',
|
|
40
|
-
url:
|
|
41
|
-
searchParams:
|
|
44
|
+
url: `${baseUrl}/api/search/book`,
|
|
45
|
+
searchParams: {
|
|
42
46
|
type: 'normal',
|
|
43
47
|
q: wd,
|
|
44
|
-
}
|
|
48
|
+
},
|
|
45
49
|
headers: getCustomRequestHeaders(),
|
|
46
50
|
});
|
|
47
|
-
const books = response.data.data || [];
|
|
48
51
|
|
|
49
|
-
const item =
|
|
50
|
-
.filter((item) => item.type ===
|
|
51
|
-
.map((item) => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
description: `
|
|
58
|
-
<img src="${book.images.origin}" ><br>
|
|
59
|
-
书名:${book.title} ${book.originalTitle}<br>
|
|
60
|
-
作者:${book.rawAuthor}<br>
|
|
61
|
-
ISBN:${book.isbn13}<br>
|
|
62
|
-
出版社:${book.publisher}<br>
|
|
63
|
-
出版时间:${book.publishDate}<br>
|
|
64
|
-
价格:${(book.price / 100).toFixed(2)}元起 <del>${(book.originalPrice / 100).toFixed(2)}元</del><br>
|
|
65
|
-
`,
|
|
66
|
-
guid: book.id,
|
|
67
|
-
};
|
|
68
|
-
});
|
|
52
|
+
const item = response.data.data
|
|
53
|
+
.filter((item) => item.type === type)
|
|
54
|
+
.map(({ [type]: item }) => ({
|
|
55
|
+
title: item.title,
|
|
56
|
+
link: `${baseUrl}/books/${item.id}`,
|
|
57
|
+
pubDate: parseDate(item.updated), // 2023-05-07T13:33:09+08:00
|
|
58
|
+
description: art(join(__dirname, 'templates/book.art'), { item }),
|
|
59
|
+
}));
|
|
69
60
|
|
|
70
61
|
ctx.state.data = {
|
|
71
62
|
title: `多抓鱼搜索-${wd}`,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<img src="{{ item.images.origin }}"><br>
|
|
2
|
+
书名:{{ item.title }} {{ item.originalTitle }}<br>
|
|
3
|
+
{{ if item.subtitle }}{{ item.subtitle }}<br>{{ /if }}
|
|
4
|
+
作者:{{ item.rawAuthor }}<br>
|
|
5
|
+
{{ if item.translators && item.translators.length }}译者:{{ item.translators.map((t) => t.name).join(' / ') }}<br>{{ /if }}
|
|
6
|
+
ISBN:{{ item.isbn13 }}<br>
|
|
7
|
+
出版社:{{ item.publisher }}<br>
|
|
8
|
+
出版时间:{{ item.publishDate }}<br>
|
|
9
|
+
豆瓣评分:{{ item.doubanRating }}<br>
|
|
10
|
+
价格:{{ (item.price / 100).toFixed(2) }}元起 <del>{{ (item.originalPrice / 100).toFixed(2) }}元</del>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
3
|
+
const { webBaseUrl, generateNonce, sign, getPost } = require('../utils');
|
|
4
|
+
const config = require('@/config').value;
|
|
5
|
+
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const { userId } = ctx.params;
|
|
8
|
+
const { limit = '30' } = ctx.query;
|
|
9
|
+
|
|
10
|
+
const userInfo = await ctx.cache.tryGet(`dxy:user-info:${userId}`, async () => {
|
|
11
|
+
const userInfoParams = {
|
|
12
|
+
userId,
|
|
13
|
+
serverTimestamp: Date.now(),
|
|
14
|
+
timestamp: Date.now(),
|
|
15
|
+
noncestr: generateNonce(8, 'number'),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const { data: userInfo } = await got(`${webBaseUrl}/bbs/newweb/personal-page/user-info`, {
|
|
19
|
+
searchParams: {
|
|
20
|
+
...userInfoParams,
|
|
21
|
+
sign: sign(userInfoParams),
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
if (userInfo.code !== 'success') {
|
|
25
|
+
throw Error(userInfo.message);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return userInfo.data;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const postList = await ctx.cache.tryGet(
|
|
32
|
+
`dxy:user:post:${userId}`,
|
|
33
|
+
async () => {
|
|
34
|
+
const postListParams = {
|
|
35
|
+
userId,
|
|
36
|
+
type: '0',
|
|
37
|
+
pageNum: '1',
|
|
38
|
+
pageSize: limit,
|
|
39
|
+
serverTimestamp: Date.now(),
|
|
40
|
+
timestamp: Date.now(),
|
|
41
|
+
noncestr: generateNonce(8, 'number'),
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const { data: postList } = await got(`${webBaseUrl}/bbs/newweb/user/post/page`, {
|
|
45
|
+
searchParams: {
|
|
46
|
+
...postListParams,
|
|
47
|
+
sign: sign(postListParams),
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
if (postList.code !== 'success') {
|
|
51
|
+
throw Error(postList.message);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return postList.data;
|
|
55
|
+
},
|
|
56
|
+
config.cache.routeExpire,
|
|
57
|
+
false
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const list = postList.result.map((item) => {
|
|
61
|
+
const { postInfo } = item;
|
|
62
|
+
return {
|
|
63
|
+
title: postInfo.subject,
|
|
64
|
+
description: postInfo.simpleBody,
|
|
65
|
+
pubDate: parseDate(item.createdTime, 'x'),
|
|
66
|
+
author: postInfo.postUser.nickname,
|
|
67
|
+
category: postInfo.boardInfo.title,
|
|
68
|
+
link: `${webBaseUrl}/bbs/newweb/pc/post/${item.entityId}`,
|
|
69
|
+
postId: item.entityId,
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const items = await Promise.all(list.map((item) => getPost(item, ctx.cache.tryGet)));
|
|
74
|
+
|
|
75
|
+
ctx.state.data = {
|
|
76
|
+
title: `${userInfo.nickname} 的个人主页 - 丁香园论坛 - 专业医生社区,医学、药学、生命科学、科研学术交流`,
|
|
77
|
+
description: `${userInfo.identificationTitle} ${userInfo.signature}`,
|
|
78
|
+
link: `${webBaseUrl}/bbs/newweb/pc/profile/${userId}/threads`,
|
|
79
|
+
image: userInfo.avatar,
|
|
80
|
+
item: items,
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'dxy.cn': {
|
|
3
|
+
_name: '丁香园',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: '个人帖子',
|
|
7
|
+
docs: 'https://docs.rsshub.app/bbs.html#ding-xiang-yuan',
|
|
8
|
+
source: ['/bbs/newweb/pc/profile/:userId/threads', '/bbs/newweb/pc/profile/:userId'],
|
|
9
|
+
target: '/dxy/bbs/profile/thread/:userId',
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
'3g': [
|
|
13
|
+
{
|
|
14
|
+
title: '专题',
|
|
15
|
+
docs: 'https://docs.rsshub.app/bbs.html#ding-xiang-yuan',
|
|
16
|
+
source: ['/bbs/special'],
|
|
17
|
+
target: (_, url) => `/dxy/bbs/special/${new URL(url).searchParams.get('specialId')}`,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
3
|
+
const { phoneBaseUrl, webBaseUrl, generateNonce, sign, getPost } = require('./utils');
|
|
4
|
+
const config = require('@/config').value;
|
|
5
|
+
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const { specialId } = ctx.params;
|
|
8
|
+
const { limit = '10' } = ctx.query;
|
|
9
|
+
|
|
10
|
+
const specialDetail = await ctx.cache.tryGet(`dxy:special:detail:${specialId}`, async () => {
|
|
11
|
+
const detailParams = {
|
|
12
|
+
specialId,
|
|
13
|
+
requestType: 'h5',
|
|
14
|
+
timestamp: Date.now(),
|
|
15
|
+
noncestr: generateNonce(8, 'number'),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const { data: detail } = await got(`${phoneBaseUrl}/newh5/bbs/special/detail`, {
|
|
19
|
+
searchParams: {
|
|
20
|
+
...detailParams,
|
|
21
|
+
sign: sign(detailParams),
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
if (detail.code !== 'success') {
|
|
25
|
+
throw Error(detail.message);
|
|
26
|
+
}
|
|
27
|
+
return detail.data;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const recommendList = await ctx.cache.tryGet(
|
|
31
|
+
`dxy:special:recommend-list-v3:${specialId}`,
|
|
32
|
+
async () => {
|
|
33
|
+
const listParams = {
|
|
34
|
+
specialId,
|
|
35
|
+
requestType: 'h5',
|
|
36
|
+
pageNum: '1',
|
|
37
|
+
pageSize: limit,
|
|
38
|
+
timestamp: Date.now(),
|
|
39
|
+
noncestr: generateNonce(8, 'number'),
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const { data: recommendList } = await got(`${phoneBaseUrl}/newh5/bbs/special/post/recommend-list-v3`, {
|
|
43
|
+
searchParams: {
|
|
44
|
+
...listParams,
|
|
45
|
+
sign: sign(listParams),
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
if (recommendList.code !== 'success') {
|
|
49
|
+
throw Error(recommendList.message);
|
|
50
|
+
}
|
|
51
|
+
return recommendList.data;
|
|
52
|
+
},
|
|
53
|
+
config.cache.routeExpire,
|
|
54
|
+
false
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
const list = recommendList.result.map((item) => {
|
|
58
|
+
const { postInfo } = item;
|
|
59
|
+
return {
|
|
60
|
+
title: postInfo.subject,
|
|
61
|
+
description: postInfo.simpleBody,
|
|
62
|
+
pubDate: parseDate(item.dataTime, 'x'),
|
|
63
|
+
author: postInfo.postUser.nickname,
|
|
64
|
+
category: postInfo.postSpecial.specialName,
|
|
65
|
+
link: `${webBaseUrl}/bbs/newweb/pc/post/${item.entityId}`,
|
|
66
|
+
postId: item.entityId,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const items = await Promise.all(list.map((item) => getPost(item, ctx.cache.tryGet)));
|
|
71
|
+
|
|
72
|
+
ctx.state.data = {
|
|
73
|
+
title: specialDetail.name,
|
|
74
|
+
description: `${specialDetail.content} ${specialDetail.postCount} 內容 ${specialDetail.followCount} 关注`,
|
|
75
|
+
link: `${phoneBaseUrl}/bbs/special?specialId=${specialId}`,
|
|
76
|
+
image: specialDetail.specialAvatar,
|
|
77
|
+
item: items,
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const CryptoJS = require('crypto-js');
|
|
2
|
+
const got = require('@/utils/got');
|
|
3
|
+
const cheerio = require('cheerio');
|
|
4
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
5
|
+
|
|
6
|
+
const APP_SIGN_KEY = '4bTogwpz7RzNO2VTFtW7zcfRkAE97ox6ZSgcQi7FgYdqrHqKB7aGqEZ4o7yssa2aEXoV3bQwh12FFgVNlpyYk2Yjm9d2EZGeGu3';
|
|
7
|
+
const phoneBaseUrl = 'https://3g.dxy.cn';
|
|
8
|
+
const webBaseUrl = 'https://www.dxy.cn';
|
|
9
|
+
|
|
10
|
+
const generateNonce = (length = 8, type = 'alphabet') => {
|
|
11
|
+
const characters = {
|
|
12
|
+
alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
|
|
13
|
+
number: '0123456789',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
let result = '';
|
|
17
|
+
const selectedCharacters = characters[type] || characters.alphabet;
|
|
18
|
+
|
|
19
|
+
for (let i = 0; i < length; i++) {
|
|
20
|
+
result += selectedCharacters.charAt(Math.floor(Math.random() * selectedCharacters.length));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const sign = (params) => {
|
|
27
|
+
const searchParams = new URLSearchParams(params);
|
|
28
|
+
searchParams.append('appSignKey', APP_SIGN_KEY);
|
|
29
|
+
searchParams.sort();
|
|
30
|
+
return CryptoJS.SHA1(searchParams.toString()).toString();
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const getPost = (item, tryGet) =>
|
|
34
|
+
tryGet(item.link, async () => {
|
|
35
|
+
const postParams = {
|
|
36
|
+
postId: item.postId,
|
|
37
|
+
serverTimestamp: Date.now(),
|
|
38
|
+
timestamp: Date.now(),
|
|
39
|
+
noncestr: generateNonce(8, 'number'),
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const { data: post } = await got('https://www.dxy.cn/bbs/newweb/post/detail', {
|
|
43
|
+
searchParams: {
|
|
44
|
+
...postParams,
|
|
45
|
+
sign: sign(postParams),
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
if (post.code !== 'success') {
|
|
49
|
+
throw Error(post.message);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const $ = cheerio.load(post.data.body, null, false);
|
|
53
|
+
|
|
54
|
+
$('img').each((_, img) => {
|
|
55
|
+
img = $(img);
|
|
56
|
+
img.removeAttr('data-osrc');
|
|
57
|
+
img.removeAttr('data-hsrc');
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
item.description = $.html();
|
|
61
|
+
item.updated = parseDate(post.data.lastEditTime, 'x');
|
|
62
|
+
|
|
63
|
+
return item;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
module.exports = {
|
|
67
|
+
phoneBaseUrl,
|
|
68
|
+
webBaseUrl,
|
|
69
|
+
generateNonce,
|
|
70
|
+
sign,
|
|
71
|
+
getPost,
|
|
72
|
+
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
'eastmoney.com': {
|
|
3
3
|
_name: '东方财富',
|
|
4
|
+
data: [
|
|
5
|
+
{
|
|
6
|
+
title: '研究报告',
|
|
7
|
+
docs: 'https://docs.rsshub.app/finance.html#dong-fang-cai-fu',
|
|
8
|
+
source: ['/report/:category'],
|
|
9
|
+
target: '/eastmoney/report/:category',
|
|
10
|
+
},
|
|
11
|
+
],
|
|
4
12
|
fundbarmob: [
|
|
5
13
|
{
|
|
6
14
|
title: '天天基金用户动态',
|
|
@@ -0,0 +1,41 @@
|
|
|
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 baseUrl = 'https://data.eastmoney.com';
|
|
7
|
+
const { category = 'strategyreport' } = ctx.params;
|
|
8
|
+
|
|
9
|
+
const reportType = {
|
|
10
|
+
strategyreport: '策略报告',
|
|
11
|
+
macresearch: '宏观研究',
|
|
12
|
+
brokerreport: '券商晨报',
|
|
13
|
+
};
|
|
14
|
+
const linkType = {
|
|
15
|
+
strategyreport: 'zw_strategy',
|
|
16
|
+
macresearch: 'zw_macresearch',
|
|
17
|
+
brokerreport: 'zw_brokerreport',
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const res = await got(`${baseUrl}/report/${category}`);
|
|
21
|
+
const $ = cheerio.load(res.data);
|
|
22
|
+
|
|
23
|
+
const initData = JSON.parse(
|
|
24
|
+
$('script')
|
|
25
|
+
.text()
|
|
26
|
+
.match(/var initdata = (.*?);/)[1]
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
const list = initData.data.map((item) => ({
|
|
30
|
+
title: `【${item.orgSName}】- ${item.title}`,
|
|
31
|
+
link: `${baseUrl}/report/${linkType[category]}.jshtml?encodeUrl=${item.encodeUrl}`,
|
|
32
|
+
pubDate: parseDate(item.publishDate),
|
|
33
|
+
author: Array.isArray(item.author) ? item.author.join('') : '',
|
|
34
|
+
}));
|
|
35
|
+
|
|
36
|
+
ctx.state.data = {
|
|
37
|
+
title: `东方财富网 - ${reportType[category]}`,
|
|
38
|
+
link: baseUrl,
|
|
39
|
+
item: list,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
module.exports = (router) => {
|
|
2
|
-
router.get('/
|
|
2
|
+
router.get('/report/:category', require('./report/index'));
|
|
3
3
|
router.get('/search/:keyword', require('./search/index'));
|
|
4
|
+
router.get('/ttjj/user/:uid', require('./ttjj/user'));
|
|
4
5
|
};
|
package/lib/v2/embassy/radar.js
CHANGED
|
@@ -178,11 +178,11 @@ module.exports = {
|
|
|
178
178
|
sg: {
|
|
179
179
|
country: 'sg',
|
|
180
180
|
countryCN: '新加坡',
|
|
181
|
-
link: 'http://sg.china-embassy.
|
|
182
|
-
list: '
|
|
181
|
+
link: 'http://sg.china-embassy.gov.cn/lsfw_0/zytz/',
|
|
182
|
+
list: 'div.news-list a[target=_blank]',
|
|
183
183
|
title: '#News_Body_Title',
|
|
184
|
-
description: '
|
|
185
|
-
pubDate: '
|
|
184
|
+
description: 'div.trs_editor_view',
|
|
185
|
+
pubDate: 'div.view-date',
|
|
186
186
|
},
|
|
187
187
|
uk: {
|
|
188
188
|
country: 'uk',
|
|
@@ -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 host = 'https://firecore.com/releases';
|
|
7
|
+
const { data } = await got(host);
|
|
8
|
+
const $ = cheerio.load(data);
|
|
9
|
+
const items = $(`div.tab-pane.fade#${ctx.params.os}`)
|
|
10
|
+
.find('.release-date')
|
|
11
|
+
.toArray()
|
|
12
|
+
.map((item) => {
|
|
13
|
+
item = $(item);
|
|
14
|
+
const title = item
|
|
15
|
+
.parent()
|
|
16
|
+
.contents()
|
|
17
|
+
.filter((_, el) => el.nodeType === 3)
|
|
18
|
+
.text();
|
|
19
|
+
const pubDate = parseDate(item.text().match(/(\d{4}-\d{2}-\d{2})/)[1]);
|
|
20
|
+
|
|
21
|
+
const next = item.parent().nextUntil('hr');
|
|
22
|
+
return {
|
|
23
|
+
title,
|
|
24
|
+
description: next
|
|
25
|
+
.toArray()
|
|
26
|
+
.map((item) => $(item).html())
|
|
27
|
+
.join(''),
|
|
28
|
+
pubDate,
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
ctx.state.data = {
|
|
33
|
+
title: `Infuse Release Notes (${ctx.params.os})`,
|
|
34
|
+
link: 'https://firecore.com/releases',
|
|
35
|
+
item: items,
|
|
36
|
+
};
|
|
37
|
+
};
|