rsshub 1.0.0-master.c034cfb → 1.0.0-master.c06353f
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 +3 -3
- package/lib/config.js +28 -10
- package/lib/maintainer.js +7 -2
- package/lib/middleware/access-control.js +5 -5
- package/lib/middleware/parameter.js +66 -11
- package/lib/middleware/template.js +79 -85
- package/lib/router.js +20 -20
- package/lib/routes/index.js +6 -13
- package/lib/routes/universities/ynnu/edu/news.js +3 -3
- package/lib/utils/rand-user-agent.js +2 -1
- package/lib/utils/render.js +2 -0
- package/lib/v2/2048/index.js +18 -13
- package/lib/v2/95mm/utils.js +3 -2
- package/lib/v2/abc/index.js +162 -0
- package/lib/v2/abc/maintainer.js +3 -0
- package/lib/v2/abc/radar.js +13 -0
- package/lib/v2/abc/router.js +3 -0
- package/lib/v2/abc/templates/description.art +21 -0
- package/lib/v2/aliyun/notice.js +1 -1
- package/lib/v2/aljazeera/index.js +1 -1
- package/lib/v2/apnews/topics.js +1 -0
- package/lib/v2/apple/apps.js +88 -17
- package/lib/v2/apple/maintainer.js +1 -1
- package/lib/v2/apple/radar.js +3 -3
- package/lib/v2/apple/router.js +1 -1
- package/lib/v2/asiantolick/index.js +73 -27
- package/lib/v2/asiantolick/maintainer.js +5 -3
- package/lib/v2/asiantolick/radar.js +34 -12
- package/lib/v2/asiantolick/router.js +2 -2
- package/lib/v2/asiantolick/templates/description.art +9 -3
- package/lib/v2/bangumi/maintainer.js +2 -0
- package/lib/v2/bangumi/radar.js +12 -0
- package/lib/v2/bangumi/router.js +2 -0
- package/lib/v2/bangumi/tv/other/followrank.js +42 -0
- package/lib/v2/bangumi/tv/user/wish.js +38 -0
- package/lib/v2/bilibili/cache.js +10 -7
- package/lib/v2/bilibili/fav.js +2 -0
- package/lib/v2/bilibili/maintainer.js +1 -0
- package/lib/v2/bilibili/platform.js +43 -0
- package/lib/v2/bilibili/radar.js +8 -0
- package/lib/v2/bilibili/router.js +1 -0
- package/lib/v2/bilibili/userFav.js +2 -0
- package/lib/v2/bilibili/video.js +8 -1
- package/lib/v2/bnu/dwxgb.js +17 -22
- package/lib/v2/booru/maintainer.js +3 -0
- package/lib/v2/booru/mmda.js +47 -0
- package/lib/v2/booru/radar.js +12 -0
- package/lib/v2/booru/router.js +3 -0
- package/lib/v2/bossdesign/index.js +41 -0
- package/lib/v2/bossdesign/maintainer.js +3 -0
- package/lib/v2/bossdesign/radar.js +13 -0
- package/lib/v2/bossdesign/router.js +3 -0
- package/lib/v2/brave/latest.js +4 -2
- package/lib/v2/buaa/maintainer.js +4 -0
- package/lib/v2/buaa/news/index.js +46 -0
- package/lib/v2/buaa/radar.js +21 -0
- package/lib/v2/buaa/router.js +4 -0
- package/lib/v2/buaa/sme.js +59 -0
- package/lib/v2/bytes/maintainer.js +0 -1
- package/lib/v2/caixin/blog.js +68 -45
- package/lib/v2/caixin/router.js +1 -1
- package/lib/v2/caixinglobal/latest.js +64 -0
- package/lib/v2/caixinglobal/maintainer.js +3 -0
- package/lib/v2/caixinglobal/radar.js +13 -0
- package/lib/v2/caixinglobal/router.js +3 -0
- package/lib/v2/cbc/topics.js +3 -1
- package/lib/v2/china/finance/finance.js +61 -0
- package/lib/v2/china/maintainer.js +1 -0
- package/lib/v2/china/news/military/news.js +5 -6
- package/lib/v2/china/radar.js +9 -0
- package/lib/v2/china/router.js +1 -0
- package/lib/v2/chinafactcheck/index.js +20 -21
- package/lib/v2/chinafactcheck/utils.js +16 -16
- package/lib/v2/chinaisa/index.js +83 -0
- package/lib/v2/chinaisa/maintainer.js +3 -0
- package/lib/v2/chinaisa/radar.js +18 -0
- package/lib/v2/chinaisa/router.js +3 -0
- package/lib/v2/cma/channel.js +87 -0
- package/lib/v2/cma/maintainer.js +3 -0
- package/lib/v2/cma/radar.js +18 -0
- package/lib/v2/cma/router.js +3 -0
- package/lib/v2/cma/templates/description.art +13 -0
- package/lib/v2/cmpxchg8b/articles.js +43 -0
- package/lib/v2/cmpxchg8b/maintainer.js +3 -0
- package/lib/v2/cmpxchg8b/radar.js +13 -0
- package/lib/v2/cmpxchg8b/router.js +3 -0
- package/lib/v2/cna/index.js +1 -0
- package/lib/v2/cna/maintainer.js +1 -0
- package/lib/v2/cna/radar.js +6 -0
- package/lib/v2/cna/router.js +1 -0
- package/lib/v2/cna/web/index.js +62 -0
- package/lib/v2/cnbeta/type.js +15 -9
- package/lib/v2/cnbeta/utils.js +3 -0
- package/lib/v2/cqwu/index.js +11 -8
- package/lib/v2/cqwu/radar.js +2 -2
- package/lib/v2/creative-comic/book.js +40 -34
- package/lib/v2/creative-comic/utils.js +1 -2
- package/lib/v2/cyzone/maintainer.js +1 -1
- package/lib/v2/deadline/maintainer.js +0 -1
- package/lib/v2/dlsite/ci-en/article.js +1 -1
- package/lib/v2/dongqiudi/special.js +13 -21
- package/lib/v2/dongqiudi/utils.js +26 -2
- package/lib/v2/douban/maintainer.js +4 -2
- package/lib/v2/douban/other/discussion.js +58 -0
- package/lib/v2/douban/other/doulist.js +9 -7
- package/lib/v2/douban/other/list.js +28 -19
- package/lib/v2/douban/other/recommended.js +68 -0
- package/lib/v2/douban/people/status.js +1 -1
- package/lib/v2/douban/radar.js +8 -0
- package/lib/v2/douban/router.js +3 -1
- package/lib/v2/egsea/flash.js +30 -0
- package/lib/v2/egsea/maintainer.js +3 -0
- package/lib/v2/egsea/radar.js +13 -0
- package/lib/v2/egsea/router.js +3 -0
- package/lib/v2/ehentai/ehapi.js +3 -1
- package/lib/v2/epicgames/index.js +18 -11
- package/lib/v2/epicgames/templates/description.art +1 -0
- package/lib/v2/farmatters/index.js +85 -0
- package/lib/v2/farmatters/maintainer.js +7 -0
- package/lib/v2/farmatters/radar.js +36 -0
- package/lib/v2/farmatters/router.js +6 -0
- package/lib/v2/farmatters/templates/description.art +9 -0
- package/lib/{routes → v2}/firefox/addons.js +3 -1
- package/lib/v2/firefox/breaches.js +38 -0
- package/lib/v2/firefox/maintainer.js +2 -0
- package/lib/v2/firefox/radar.js +17 -0
- package/lib/{routes → v2}/firefox/release.js +3 -3
- package/lib/v2/firefox/router.js +3 -1
- package/lib/v2/foresightnews/maintainer.js +0 -1
- package/lib/v2/fuliba/latest.js +25 -0
- package/lib/v2/fuliba/maintainer.js +3 -0
- package/lib/v2/fuliba/radar.js +15 -0
- package/lib/v2/fuliba/router.js +3 -0
- package/lib/v2/gcores/category.js +1 -0
- package/lib/v2/gcores/radio.js +1 -0
- package/lib/v2/gdsrx/index.js +72 -0
- package/lib/v2/gdsrx/maintainer.js +3 -0
- package/lib/v2/gdsrx/radar.js +61 -0
- package/lib/v2/gdsrx/router.js +3 -0
- package/lib/v2/getitfree/index.js +42 -34
- package/lib/v2/getitfree/maintainer.js +3 -1
- package/lib/v2/getitfree/radar.js +19 -2
- package/lib/v2/getitfree/router.js +10 -2
- package/lib/v2/getitfree/util.js +326 -0
- package/lib/v2/github/topic.js +26 -10
- package/lib/v2/gocn/jobs.js +14 -9
- package/lib/v2/gocn/maintainer.js +3 -1
- package/lib/v2/gocn/news.js +31 -0
- package/lib/v2/gocn/radar.js +8 -2
- package/lib/v2/gocn/router.js +3 -1
- package/lib/v2/gocn/topics.js +15 -7
- package/lib/v2/gocn/utils.js +38 -0
- package/lib/v2/gogoanimehd/radar.js +1 -1
- package/lib/v2/gogoanimehd/recent-releases.js +1 -1
- package/lib/v2/google/alerts.js +33 -0
- package/lib/v2/google/maintainer.js +1 -0
- package/lib/v2/google/router.js +1 -0
- package/lib/v2/gov/forestry/gjlckjdjt.js +96 -0
- package/lib/v2/gov/forestry/templates/description.art +15 -0
- package/lib/v2/gov/maintainer.js +12 -3
- package/lib/v2/gov/mem/sgcc.js +64 -0
- package/lib/v2/gov/moa/zdscxx.js +104 -0
- package/lib/v2/gov/mot/index.js +66 -0
- package/lib/v2/gov/nifdc/index.js +40 -33
- package/lib/v2/gov/npc/index.js +47 -0
- package/lib/v2/gov/radar.js +290 -2
- package/lib/v2/gov/router.js +12 -2
- package/lib/v2/gov/samr/templates/description.art +26 -0
- package/lib/v2/gov/samr/xgzlyhd.js +100 -0
- package/lib/v2/gov/zhejiang/gwy.js +84 -0
- package/lib/v2/gov/zhengce/index.js +99 -0
- package/lib/v2/greasyfork/maintainer.js +1 -0
- package/lib/v2/greasyfork/router.js +1 -0
- package/lib/v2/greasyfork/scripts.js +25 -20
- package/lib/v2/grubstreet/maintainer.js +3 -0
- package/lib/v2/grubstreet/radar.js +13 -0
- package/lib/v2/grubstreet/router.js +3 -0
- package/lib/v2/grubstreet/utils.js +84 -0
- package/lib/v2/guangdiu/maintainer.js +1 -0
- package/lib/v2/guangdiu/radar.js +6 -0
- package/lib/v2/guangdiu/router.js +1 -0
- package/lib/v2/guangdiu/search.js +40 -0
- package/lib/v2/guanhai/maintainer.js +0 -1
- package/lib/{routes/universities → v2}/harvard/health/blog.js +8 -7
- package/lib/v2/harvard/maintainer.js +3 -0
- package/lib/v2/harvard/radar.js +13 -0
- package/lib/v2/harvard/router.js +3 -0
- package/lib/v2/hebtv/maintainer.js +3 -0
- package/lib/v2/hebtv/nong-bo-shi-zai-xing-dong.js +109 -0
- package/lib/v2/hebtv/radar.js +13 -0
- package/lib/v2/hebtv/router.js +3 -0
- package/lib/v2/hebtv/templates/description.art +24 -0
- package/lib/v2/hostmonit/cloudflareyes.js +91 -0
- package/lib/v2/hostmonit/maintainer.js +3 -0
- package/lib/v2/hostmonit/radar.js +17 -0
- package/lib/v2/hostmonit/router.js +8 -0
- package/lib/v2/hostmonit/templates/description.art +28 -0
- package/lib/v2/hostmonit/templates/title.art +1 -0
- package/lib/v2/ianspriggs/index.js +90 -0
- package/lib/v2/ianspriggs/maintainer.js +3 -0
- package/lib/v2/ianspriggs/radar.js +17 -0
- package/lib/v2/ianspriggs/router.js +3 -0
- package/lib/v2/ianspriggs/templates/description.art +13 -0
- package/lib/v2/instagram/templates/images.art +8 -2
- package/lib/v2/instagram/templates/video.art +4 -1
- package/lib/v2/instagram/web-api/index.js +21 -11
- package/lib/v2/instagram/web-api/utils.js +86 -15
- package/lib/v2/iqilu/maintainer.js +3 -0
- package/lib/v2/iqilu/program.js +98 -0
- package/lib/v2/iqilu/radar.js +107 -0
- package/lib/v2/iqilu/router.js +3 -0
- package/lib/v2/iqilu/templates/description.art +24 -0
- package/lib/v2/javbus/index.js +6 -0
- package/lib/v2/javlibrary/maintainer.js +1 -0
- package/lib/v2/javlibrary/maker.js +10 -0
- package/lib/v2/javlibrary/router.js +1 -0
- package/lib/v2/javlibrary/utils.js +1 -0
- package/lib/v2/kamen-rider-official/news.js +1 -1
- package/lib/v2/kemono/index.js +28 -4
- package/lib/v2/kemono/radar.js +1 -1
- package/lib/v2/leetcode/articles.js +14 -10
- package/lib/v2/leetcode/dailyquestion-solution-cn.js +6 -3
- package/lib/v2/leetcode/dailyquestion-solution-en.js +7 -4
- package/lib/v2/liquipedia/cs_matches.js +52 -0
- package/lib/v2/liquipedia/dota2_matches.js +47 -0
- package/lib/v2/liquipedia/maintainer.js +4 -0
- package/lib/v2/liquipedia/radar.js +19 -0
- package/lib/v2/liquipedia/router.js +4 -0
- package/lib/v2/logclub/index.js +134 -0
- package/lib/v2/logclub/maintainer.js +9 -0
- package/lib/v2/logclub/radar.js +139 -0
- package/lib/v2/logclub/report.js +98 -0
- package/lib/v2/logclub/router.js +5 -0
- package/lib/v2/logclub/templates/description.art +33 -0
- package/lib/v2/metacritic/index.js +121 -0
- package/lib/v2/metacritic/maintainer.js +5 -0
- package/lib/v2/metacritic/radar.js +43 -0
- package/lib/v2/metacritic/router.js +3 -0
- package/lib/v2/metacritic/templates/description.art +19 -0
- package/lib/v2/metacritic/util.js +42 -0
- package/lib/v2/mittrchina/index.js +104 -0
- package/lib/v2/mittrchina/maintainer.js +3 -0
- package/lib/v2/mittrchina/radar.js +31 -0
- package/lib/v2/mittrchina/router.js +3 -0
- package/lib/v2/mittrchina/templates/movie.art +5 -0
- package/lib/v2/modb/maintainer.js +3 -0
- package/lib/v2/modb/radar.js +13 -0
- package/lib/v2/modb/router.js +3 -0
- package/lib/v2/modb/topic.js +59 -0
- package/lib/v2/mymusicsheet/maintainer.js +3 -0
- package/lib/v2/mymusicsheet/radar.js +13 -0
- package/lib/v2/mymusicsheet/router.js +3 -0
- package/lib/v2/mymusicsheet/templates/description.art +41 -0
- package/lib/v2/mymusicsheet/usersheets.js +120 -0
- package/lib/v2/nature/cover.js +32 -42
- package/lib/v2/nature/highlight.js +2 -2
- package/lib/v2/nature/news-and-comment.js +2 -2
- package/lib/v2/nature/news.js +2 -2
- package/lib/v2/nature/research.js +2 -2
- package/lib/v2/nature/siteindex.js +5 -5
- package/lib/v2/nature/utils.js +124 -5
- package/lib/v2/nbd/index.js +4 -1
- package/lib/v2/nbd/maintainer.js +1 -1
- package/lib/v2/nbd/radar.js +3 -3
- package/lib/v2/nbd/router.js +1 -1
- package/lib/v2/netflav/index.js +39 -0
- package/lib/v2/netflav/maintainer.js +3 -0
- package/lib/v2/netflav/radar.js +13 -0
- package/lib/v2/netflav/router.js +3 -0
- package/lib/v2/netflav/templates/description.art +8 -0
- package/lib/v2/niaogebiji/maintainer.js +0 -1
- package/lib/v2/npr/radar.js +2 -2
- package/lib/v2/oschina/news.js +1 -0
- package/lib/v2/ouc/it-tx.js +44 -0
- package/lib/v2/ouc/it.js +2 -2
- package/lib/v2/ouc/maintainer.js +2 -1
- package/lib/v2/ouc/radar.js +6 -0
- package/lib/v2/ouc/router.js +1 -0
- package/lib/v2/paulgraham/article.js +62 -0
- package/lib/v2/paulgraham/maintainer.js +3 -0
- package/lib/v2/paulgraham/radar.js +13 -0
- package/lib/v2/paulgraham/router.js +5 -0
- package/lib/v2/people/index.js +15 -24
- package/lib/v2/people/router.js +1 -2
- package/lib/v2/pixiv/ranking.js +1 -0
- package/lib/v2/pixiv/user.js +2 -1
- package/lib/v2/pixiv/utils.js +2 -2
- package/lib/v2/pku/cls/announcement.js +42 -0
- package/lib/v2/pku/maintainer.js +1 -0
- package/lib/v2/pku/radar.js +6 -0
- package/lib/v2/pku/router.js +1 -0
- package/lib/v2/qbitai/category.js +27 -0
- package/lib/v2/qbitai/maintainer.js +4 -0
- package/lib/v2/qbitai/radar.js +19 -0
- package/lib/v2/qbitai/router.js +4 -0
- package/lib/v2/qbitai/tag.js +27 -0
- package/lib/v2/qqorw/maintainer.js +1 -1
- package/lib/v2/reactnewsletter/maintainer.js +0 -1
- package/lib/v2/readhub/index.js +92 -83
- package/lib/v2/readhub/maintainer.js +1 -1
- package/lib/v2/readhub/radar.js +6 -2
- package/lib/v2/readhub/router.js +1 -4
- package/lib/v2/readhub/templates/description.art +40 -0
- package/lib/v2/reuters/common.js +19 -6
- package/lib/v2/reuters/maintainer.js +0 -2
- package/lib/v2/reuters/router.js +0 -2
- package/lib/v2/rfi/maintainer.js +1 -1
- package/lib/v2/rfi/news.js +35 -22
- package/lib/v2/rfi/radar.js +5 -5
- package/lib/v2/rfi/router.js +1 -1
- package/lib/v2/runtrail/maintainer.js +0 -1
- package/lib/v2/scau/maintainer.js +1 -0
- package/lib/v2/scau/radar.js +8 -0
- package/lib/v2/scau/router.js +1 -0
- package/lib/v2/scau/yjs.js +2 -2
- package/lib/v2/scau/yjsy.js +27 -0
- package/lib/v2/science/utils.js +4 -4
- package/lib/v2/scmp/index.js +61 -85
- package/lib/v2/scmp/utils.js +60 -0
- package/lib/v2/segmentfault/blogs.js +6 -23
- package/lib/v2/segmentfault/channel.js +18 -30
- package/lib/v2/segmentfault/user.js +6 -32
- package/lib/v2/segmentfault/utils.js +32 -0
- package/lib/v2/showstart/artist.js +15 -0
- package/lib/v2/showstart/brand.js +15 -0
- package/lib/v2/showstart/const.js +4 -0
- package/lib/v2/showstart/event.js +18 -0
- package/lib/v2/showstart/maintainer.js +6 -0
- package/lib/v2/showstart/radar.js +40 -0
- package/lib/v2/showstart/router.js +6 -0
- package/lib/v2/showstart/search.js +51 -0
- package/lib/v2/showstart/service.js +166 -0
- package/lib/v2/showstart/utils.js +92 -0
- package/lib/v2/sohu/mp.js +48 -35
- package/lib/v2/sohu/templates/video.art +7 -0
- package/lib/v2/tableau/maintainer.js +3 -0
- package/lib/v2/tableau/radar.js +11 -0
- package/lib/v2/tableau/router.js +3 -0
- package/lib/v2/tableau/viz-of-the-day.js +26 -0
- package/lib/v2/techpowerup/maintainer.js +0 -1
- package/lib/v2/telegram/maintainer.js +3 -3
- package/lib/v2/tesla/cx.js +119 -0
- package/lib/v2/tesla/maintainer.js +1 -0
- package/lib/v2/tesla/radar.js +13 -1
- package/lib/v2/tesla/router.js +1 -0
- package/lib/v2/tesla/templates/description.art +140 -0
- package/lib/v2/test/index.js +46 -0
- package/lib/v2/tfc-taiwan/maintainer.js +0 -1
- package/lib/v2/thepaper/featured.js +1 -1
- package/lib/v2/thepaper/utils.js +18 -12
- package/lib/v2/thoughtco/index.js +95 -0
- package/lib/v2/thoughtco/maintainer.js +3 -0
- package/lib/v2/thoughtco/radar.js +155 -0
- package/lib/v2/thoughtco/router.js +3 -0
- package/lib/v2/thoughtco/templates/description.art +16 -0
- package/lib/v2/threads/index.js +20 -150
- package/lib/v2/threads/utils.js +147 -0
- package/lib/v2/twitch/live.js +88 -0
- package/lib/v2/twitch/maintainer.js +5 -0
- package/lib/v2/twitch/radar.js +37 -0
- package/lib/v2/twitch/router.js +5 -0
- package/lib/v2/twitch/schedule.js +75 -0
- package/lib/v2/twitch/video.js +64 -0
- package/lib/v2/twitter/keyword.js +1 -3
- package/lib/v2/twitter/media.js +1 -5
- package/lib/v2/twitter/user.js +1 -3
- package/lib/v2/twitter/utils.js +5 -3
- package/lib/v2/twitter/web-api/constants.js +80 -68
- package/lib/v2/twitter/web-api/twitter-api.js +96 -103
- package/lib/v2/udn/breaking-news.js +6 -2
- package/lib/v2/uniqlo/maintainer.js +3 -0
- package/lib/v2/uniqlo/new.js +62 -0
- package/lib/v2/uniqlo/radar.js +12 -0
- package/lib/v2/uniqlo/router.js +3 -0
- package/lib/v2/v1tx/maintainer.js +0 -1
- package/lib/v2/weekendhk/maintainer.js +0 -1
- package/lib/v2/weibo/maintainer.js +1 -1
- package/lib/v2/weibo/oasis/user.js +4 -3
- package/lib/v2/weibo/radar.js +1 -1
- package/lib/v2/weibo/router.js +1 -1
- package/lib/v2/weibo/search/hot.js +118 -7
- package/lib/v2/weibo/search/template/digest.art +17 -0
- package/lib/v2/whu/hyxt.js +50 -0
- package/lib/v2/whu/maintainer.js +2 -1
- package/lib/v2/whu/news.js +48 -80
- package/lib/v2/whu/radar.js +252 -4
- package/lib/v2/whu/router.js +2 -1
- package/lib/v2/whu/templates/description.art +39 -0
- package/lib/v2/whu/util.js +148 -0
- package/lib/v2/x-mol/maintainer.js +4 -0
- package/lib/v2/x-mol/news.js +63 -0
- package/lib/v2/x-mol/paper.js +73 -0
- package/lib/v2/x-mol/radar.js +25 -0
- package/lib/v2/x-mol/router.js +4 -0
- package/lib/v2/x-mol/templates/description.art +6 -0
- package/lib/v2/x-mol/utils.js +3 -0
- package/lib/v2/xiaohongshu/user.js +33 -9
- package/lib/v2/xiaohongshu/util.js +26 -20
- package/lib/v2/xmnn/docs.js +0 -0
- package/lib/v2/xmnn/maintainer.js +1 -0
- package/lib/v2/xmnn/news.js +65 -0
- package/lib/v2/xmnn/radar.js +67 -1
- package/lib/v2/xmnn/router.js +1 -0
- package/lib/v2/yomujp/level.js +101 -0
- package/lib/v2/yomujp/maintainer.js +3 -0
- package/lib/v2/yomujp/radar.js +13 -0
- package/lib/v2/yomujp/router.js +3 -0
- package/lib/v2/yuque/utils.js +1 -0
- package/lib/v2/zcool/maintainer.js +1 -1
- package/lib/v2/zhubai/radar.js +2 -1
- package/lib/v2/zhubai/templates/description.art +41 -13
- package/lib/v2/zhubai/top20.js +31 -22
- package/lib/{routes → v2}/zimuxia/index.js +16 -8
- package/lib/v2/zimuxia/maintainer.js +4 -0
- package/lib/v2/zimuxia/portfolio.js +52 -0
- package/lib/v2/zimuxia/radar.js +19 -0
- package/lib/v2/zimuxia/router.js +4 -0
- package/lib/v2/zjuvag/blog.js +33 -0
- package/lib/v2/zjuvag/maintainer.js +3 -0
- package/lib/v2/zjuvag/radar.js +11 -0
- package/lib/v2/zjuvag/router.js +3 -0
- package/lib/views/rss3-ums.js +62 -0
- package/package.json +60 -60
- package/lib/routes/abc/documentId.js +0 -7272
- package/lib/routes/abc/id.js +0 -7272
- package/lib/routes/abc/index.js +0 -74
- package/lib/routes/blogs/paulgraham.js +0 -46
- package/lib/routes/egsea/flash.js +0 -40
- package/lib/routes/getitfree/category.js +0 -59
- package/lib/routes/getitfree/search.js +0 -25
- package/lib/routes/getitfree/utils.js +0 -47
- package/lib/routes/gov/moa/sjzxfb.js +0 -20
- package/lib/routes/growincity/news.js +0 -49
- package/lib/routes/grubstreet/utils.js +0 -78
- package/lib/routes/liquipedia/dota2_matches.js +0 -50
- package/lib/routes/mittrchina/index.js +0 -45
- package/lib/routes/npc/index.js +0 -42
- package/lib/routes/uniqlo/stylingbook.js +0 -24
- package/lib/routes/universities/buaa/news/index.js +0 -66
- package/lib/routes/universities/buaa/utils.js +0 -57
- package/lib/routes/x-mol/news.js +0 -48
- package/lib/routes/x-mol/paper.js +0 -78
- package/lib/routes/x-mol/utils.js +0 -16
- package/lib/routes/zimuxia/portfolio.js +0 -39
- package/lib/v2/chinafactcheck/templates/description.art +0 -1
- package/lib/v2/firefox/index.js +0 -74
- package/lib/v2/gocn/util.js +0 -17
- package/lib/v2/gov/zhengce/zuixin.js +0 -39
- package/lib/v2/nbd/article.js +0 -50
- package/lib/v2/reuters/migration_prompt.js +0 -3
- package/lib/v2/twitter/web-api/twitter-got.js +0 -113
- /package/lib/{routes → v2}/gov/moa/moa.js +0 -0
- /package/lib/{routes → v2}/grubstreet/index.js +0 -0
- /package/lib/{routes → v2}/metacritic/release.js +0 -0
|
@@ -6,47 +6,53 @@ const { getUuid, getBook, getChapter, getChapters, getImgEncrypted, getImgKey, d
|
|
|
6
6
|
module.exports = async (ctx) => {
|
|
7
7
|
const { id, coverOnly = 'true', quality = '1' } = ctx.params;
|
|
8
8
|
const uuid = await getUuid(ctx.cache.tryGet);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const {
|
|
10
|
+
data: { data: book },
|
|
11
|
+
} = await getBook(id, uuid);
|
|
12
|
+
const {
|
|
13
|
+
data: { data: chapters },
|
|
14
|
+
} = await getChapters(id, uuid);
|
|
13
15
|
|
|
14
16
|
const items = await Promise.all(
|
|
15
|
-
chapters.chapters
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
chapters.chapters
|
|
18
|
+
.sort((a, b) => b.idx - a.idx)
|
|
19
|
+
.slice(0, ctx.query.limit ? parseInt(ctx.query.limit, 10) : 3)
|
|
20
|
+
.map(async (c) => {
|
|
21
|
+
let pages;
|
|
22
|
+
if (coverOnly !== 'true' && coverOnly !== '1') {
|
|
23
|
+
const {
|
|
24
|
+
data: { data: chapter },
|
|
25
|
+
} = await getChapter(c.id, uuid);
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
if (chapter.chapter.free_day === null || chapter.chapter.free_day === 0) {
|
|
28
|
+
pages = await Promise.all(
|
|
29
|
+
chapter.chapter.proportion.map(async (p) => {
|
|
30
|
+
let { data: imgKey } = await getImgKey(p.id, uuid);
|
|
31
|
+
imgKey = imgKey.data.key;
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
const realKey = getRealKey(imgKey);
|
|
34
|
+
const encrypted = await getImgEncrypted(p.id, quality);
|
|
29
35
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
return ctx.cache.tryGet(`${siteHost}/fs/chapter_content/encrypt/${p.id}/${quality}`, () => decrypt(encrypted, realKey));
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
|
-
}
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
return {
|
|
43
|
+
title: c.vol_name,
|
|
44
|
+
description: art(path.join(__dirname, 'templates/chapter.art'), {
|
|
45
|
+
chapter: c,
|
|
46
|
+
pages,
|
|
47
|
+
cover: c.image1,
|
|
48
|
+
}),
|
|
49
|
+
pubDate: parseDate(c.online_at),
|
|
50
|
+
updated: parseDate(c.updated_at),
|
|
51
|
+
link: `https://www.creative-comic.tw/reader_comic/${c.id}`,
|
|
52
|
+
author: book.author.map((author) => author.name).join(', '),
|
|
53
|
+
category: book.tags.map((tag) => tag.name),
|
|
54
|
+
};
|
|
55
|
+
})
|
|
50
56
|
);
|
|
51
57
|
|
|
52
58
|
ctx.state.data = {
|
|
@@ -2,7 +2,6 @@ const got = require('@/utils/got');
|
|
|
2
2
|
const CryptoJS = require('crypto-js');
|
|
3
3
|
|
|
4
4
|
const apiHost = 'https://api.creative-comic.tw';
|
|
5
|
-
const siteHost = 'https://www.creative-comic.tw';
|
|
6
5
|
const device = 'web_desktop';
|
|
7
6
|
const DEFAULT_TOKEN = 'freeforccc2020reading';
|
|
8
7
|
|
|
@@ -31,7 +30,7 @@ const getChapters = (bookId, uuid) =>
|
|
|
31
30
|
});
|
|
32
31
|
|
|
33
32
|
const getImgEncrypted = async (pageId, quality) => {
|
|
34
|
-
const { data: res } = await got(
|
|
33
|
+
const { data: res } = await got(`https://storage.googleapis.com/ccc-www/fs/chapter_content/encrypt/${pageId}/${quality}`, {
|
|
35
34
|
headers: {
|
|
36
35
|
device,
|
|
37
36
|
},
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
2
|
const utils = require('./utils');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
4
|
|
|
5
5
|
module.exports = async (ctx) => {
|
|
6
6
|
const id = ctx.params.id;
|
|
7
|
-
const response = await got(`https://www.dongqiudi.com/
|
|
7
|
+
const { data: response } = await got(`https://www.dongqiudi.com/api/old/columns/${id}`);
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.toArray()
|
|
16
|
-
.map((item) => {
|
|
17
|
-
item = $(item);
|
|
18
|
-
return {
|
|
19
|
-
title: item.find('a').text(),
|
|
20
|
-
link: host + item.find('a').attr('href'),
|
|
21
|
-
};
|
|
22
|
-
});
|
|
9
|
+
const list = response.data.map((item) => ({
|
|
10
|
+
title: item.title,
|
|
11
|
+
link: `https://www.dongqiudi.com/articles/${item.aid}.html`,
|
|
12
|
+
mobileLink: `https://m.dongqiudi.com/article/${item.aid}.html`,
|
|
13
|
+
pubDate: parseDate(item.show_time, 'X'),
|
|
14
|
+
}));
|
|
23
15
|
|
|
24
16
|
const out = await Promise.all(
|
|
25
17
|
list.map((item) =>
|
|
26
18
|
ctx.cache.tryGet(item.link, async () => {
|
|
27
|
-
const { data: response } = await got(item.
|
|
19
|
+
const { data: response } = await got(item.mobileLink);
|
|
28
20
|
|
|
29
|
-
utils.
|
|
21
|
+
utils.ProcessFeedType3(item, response);
|
|
30
22
|
|
|
31
23
|
return item;
|
|
32
24
|
})
|
|
@@ -34,9 +26,9 @@ module.exports = async (ctx) => {
|
|
|
34
26
|
);
|
|
35
27
|
|
|
36
28
|
ctx.state.data = {
|
|
37
|
-
title: `懂球帝专题-${
|
|
38
|
-
description:
|
|
29
|
+
title: `懂球帝专题-${response.title}`,
|
|
30
|
+
description: response.description,
|
|
39
31
|
link: `https://www.dongqiudi.com/special/${id}`,
|
|
40
|
-
item: out.filter((e) => e
|
|
32
|
+
item: out.filter((e) => e),
|
|
41
33
|
};
|
|
42
34
|
};
|
|
@@ -42,7 +42,7 @@ const ProcessVideo = (content) => {
|
|
|
42
42
|
const ProcessHref = (content) => {
|
|
43
43
|
content.each((j, y) => {
|
|
44
44
|
if (y.attribs.href) {
|
|
45
|
-
y.attribs.href = y.attribs.href.replace('dongqiudi:///news', 'https://www.dongqiudi.com/
|
|
45
|
+
y.attribs.href = y.attribs.href.replace('dongqiudi:///news', 'https://www.dongqiudi.com/article');
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
};
|
|
@@ -129,7 +129,7 @@ const ProcessFeedType2 = (item, response) => {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
if (Object.keys(data).length > 0) {
|
|
132
|
-
const body = ProcessVideo(cheerio.load(data.body));
|
|
132
|
+
const body = ProcessVideo(cheerio.load(data.body, null, false));
|
|
133
133
|
ProcessHref(body('a'));
|
|
134
134
|
ProcessImg(body('img'));
|
|
135
135
|
item.description = body.html();
|
|
@@ -138,10 +138,34 @@ const ProcessFeedType2 = (item, response) => {
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
|
|
141
|
+
const ProcessFeedType3 = (item, response) => {
|
|
142
|
+
const $ = cheerio.load(response);
|
|
143
|
+
const initialState = JSON.parse(
|
|
144
|
+
$('script:contains("window.__INITIAL_STATE__")')
|
|
145
|
+
.text()
|
|
146
|
+
.match(/window\.__INITIAL_STATE__\s*=\s*(.*?);\(/)[1]
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
// filter out undefined item
|
|
150
|
+
if (!initialState) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (Object.keys(initialState.articleContent).length) {
|
|
155
|
+
const data = Object.values(initialState.articleContent)[0];
|
|
156
|
+
const body = ProcessVideo(cheerio.load(data.body, null, false));
|
|
157
|
+
ProcessHref(body('a'));
|
|
158
|
+
ProcessImg(body('img'));
|
|
159
|
+
item.description = body.html();
|
|
160
|
+
item.author = data.writer;
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
|
|
141
164
|
module.exports = {
|
|
142
165
|
ProcessVideo,
|
|
143
166
|
ProcessFeed,
|
|
144
167
|
ProcessFeedType2,
|
|
168
|
+
ProcessFeedType3,
|
|
145
169
|
ProcessHref,
|
|
146
170
|
ProcessImg,
|
|
147
171
|
};
|
|
@@ -6,12 +6,12 @@ module.exports = {
|
|
|
6
6
|
'/channel/:id/:nav?': ['umm233'],
|
|
7
7
|
'/channel/:id/subject/:nav': ['umm233'],
|
|
8
8
|
'/commercialpress/latest': ['xyqfer'],
|
|
9
|
-
'/doulist/:id': ['LogicJake'],
|
|
9
|
+
'/doulist/:id': ['LogicJake', 'honue'],
|
|
10
10
|
'/event/hot/:locationId': ['xyqfer'],
|
|
11
11
|
'/explore': ['clarkzsd'],
|
|
12
12
|
'/explore_column/:id': ['LogicJake'],
|
|
13
13
|
'/group/:groupid/:type?': ['DIYgod'],
|
|
14
|
-
'/list/:type?': ['5upernova-heng'],
|
|
14
|
+
'/list/:type?/:routeParams?': ['5upernova-heng', 'honue'],
|
|
15
15
|
'/jobs/:type': ['Fatpandac'],
|
|
16
16
|
'/movie/classification/:sort?/:score?/:tags?': ['zzwab'],
|
|
17
17
|
'/movie/later': ['DIYgod'],
|
|
@@ -22,7 +22,9 @@ module.exports = {
|
|
|
22
22
|
'/music/latest/:area?': ['fengkx', 'xyqfer'],
|
|
23
23
|
'/people/:userid/status/:routeParams': ['alfredcai'],
|
|
24
24
|
'/people/:userid/wish/:routeParams?': ['exherb'],
|
|
25
|
+
'/recommended/:type?/:routeParams?': ['honue'],
|
|
25
26
|
'/replied/:uid': ['nczitzk'],
|
|
26
27
|
'/replies/:uid': ['nczitzk'],
|
|
27
28
|
'/topic/:id/:sort?': ['LogicJake'],
|
|
29
|
+
'/:id/discussion': ['nightmare-mio'],
|
|
28
30
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: nightmare-mio wanglongwei2009@qq.com
|
|
3
|
+
* @Date: 2023-11-20 23:36:12
|
|
4
|
+
* @LastEditTime: 2023-11-22 20:11:24
|
|
5
|
+
* @Description:
|
|
6
|
+
*/
|
|
7
|
+
const got = require('@/utils/got');
|
|
8
|
+
const cheerio = require('cheerio');
|
|
9
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
10
|
+
|
|
11
|
+
module.exports = async (ctx) => {
|
|
12
|
+
const { id } = ctx.params;
|
|
13
|
+
const link = 'https://book.douban.com/subject';
|
|
14
|
+
const { data: response } = await got(`${link}/${id}/discussion/`);
|
|
15
|
+
const $ = cheerio.load(response);
|
|
16
|
+
// 列表
|
|
17
|
+
const list = $('#posts-table>tbody>tr')
|
|
18
|
+
.toArray()
|
|
19
|
+
.slice(1)
|
|
20
|
+
.map((item) => {
|
|
21
|
+
item = $(item);
|
|
22
|
+
const a = item.find('a').first();
|
|
23
|
+
return {
|
|
24
|
+
title: a.attr('title'),
|
|
25
|
+
link: a.attr('href'),
|
|
26
|
+
pubDate: parseDate(item.find('.time').text()),
|
|
27
|
+
author: item.find('a').eq(1).text(),
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
const title = $('#content>h1').text();
|
|
31
|
+
|
|
32
|
+
const items = await Promise.all(
|
|
33
|
+
list.map((item) =>
|
|
34
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
35
|
+
const { data: response } = await got(item.link);
|
|
36
|
+
const $ = cheerio.load(response);
|
|
37
|
+
// 评论
|
|
38
|
+
const list = $('#comments>.comment-item').toArray();
|
|
39
|
+
const replyContent = list
|
|
40
|
+
.map((item, index) => {
|
|
41
|
+
const post = $(item);
|
|
42
|
+
const content = post.find('.content>p').html();
|
|
43
|
+
const author = post.find('.author>a').text();
|
|
44
|
+
return `<p><div>#${index + 1}: <i>${author}</i></div><div>${content}</div></p>`;
|
|
45
|
+
})
|
|
46
|
+
.join('');
|
|
47
|
+
item.description = `${$('#link-report>div').eq(1).html()}<div>${replyContent}</div>`;
|
|
48
|
+
return item;
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
ctx.state.data = {
|
|
54
|
+
title,
|
|
55
|
+
link: `${link}/${id}/discussion`,
|
|
56
|
+
item: items,
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const cheerio = require('cheerio');
|
|
3
|
-
const url = require('url');
|
|
4
|
-
|
|
5
|
-
const host = 'https://www.douban.com/doulist/';
|
|
6
3
|
|
|
7
4
|
module.exports = async (ctx) => {
|
|
8
5
|
const id = ctx.params.id;
|
|
9
6
|
|
|
10
|
-
const
|
|
11
|
-
const response = await got
|
|
7
|
+
const url = `https://www.douban.com/doulist/${id}`;
|
|
8
|
+
const response = await got({
|
|
9
|
+
method: 'get',
|
|
10
|
+
url,
|
|
11
|
+
headers: {
|
|
12
|
+
Referer: `https://www.douban.com/doulist/${id}`,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
12
15
|
const $ = cheerio.load(response.data);
|
|
13
16
|
|
|
14
17
|
const title = $('#content h1').text().trim();
|
|
15
18
|
const description = $('div.doulist-about').text().trim();
|
|
16
19
|
const out = $('div.doulist-item')
|
|
17
|
-
.slice(0, 10)
|
|
18
20
|
.map(function () {
|
|
19
21
|
const type = $(this).find('div.source').text().trim();
|
|
20
22
|
|
|
@@ -56,7 +58,7 @@ module.exports = async (ctx) => {
|
|
|
56
58
|
|
|
57
59
|
ctx.state.data = {
|
|
58
60
|
title,
|
|
59
|
-
link,
|
|
61
|
+
link: url,
|
|
60
62
|
description,
|
|
61
63
|
item: out,
|
|
62
64
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const { art } = require('@/utils/render');
|
|
4
|
+
const { fallback, queryToInteger } = require('@/utils/readable-social');
|
|
4
5
|
|
|
5
6
|
module.exports = async (ctx) => {
|
|
6
7
|
const type = ctx.params.type || 'subject_real_time_hotest';
|
|
7
|
-
const
|
|
8
|
+
const routeParams = Object.fromEntries(new URLSearchParams(ctx.params.routeParams));
|
|
9
|
+
const playable = fallback(undefined, queryToInteger(routeParams.playable), 0);
|
|
10
|
+
const score = fallback(undefined, queryToInteger(routeParams.score), 0);
|
|
11
|
+
const url = `https://m.douban.com/rexxar/api/v2/subject_collection/${type}/items?playable=${playable}`;
|
|
8
12
|
const response = await got({
|
|
9
13
|
method: 'get',
|
|
10
14
|
url,
|
|
@@ -13,27 +17,32 @@ module.exports = async (ctx) => {
|
|
|
13
17
|
},
|
|
14
18
|
});
|
|
15
19
|
const description = response.data.subject_collection.description;
|
|
16
|
-
const items = response.data.subject_collection_items
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const items = response.data.subject_collection_items
|
|
21
|
+
.filter((item) => {
|
|
22
|
+
const rate = item.rating ? item.rating.value : 0.0;
|
|
23
|
+
return rate >= score; // 保留rate大于等于score的项and过滤无评分项
|
|
24
|
+
})
|
|
25
|
+
.map((item) => {
|
|
26
|
+
const title = item.title;
|
|
27
|
+
const link = item.url;
|
|
28
|
+
const description = art(path.join(__dirname, '../templates/list_description.art'), {
|
|
29
|
+
ranking_value: item.ranking_value,
|
|
30
|
+
title,
|
|
31
|
+
original_title: item.original_title,
|
|
32
|
+
rate: item.rating ? item.rating.value : null,
|
|
33
|
+
card_subtitle: item.card_subtitle,
|
|
34
|
+
description: item.cards ? item.cards[0].content : item.abstract,
|
|
35
|
+
cover: item.cover_url || item.cover?.url,
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
title,
|
|
39
|
+
link,
|
|
40
|
+
description,
|
|
41
|
+
};
|
|
27
42
|
});
|
|
28
|
-
return {
|
|
29
|
-
title,
|
|
30
|
-
link,
|
|
31
|
-
description,
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
43
|
ctx.state.data = {
|
|
35
44
|
title: `豆瓣 - ${response.data.subject_collection.name}`,
|
|
36
|
-
link:
|
|
45
|
+
link: `https://m.douban.com/subject_collection/${type}`,
|
|
37
46
|
item: items,
|
|
38
47
|
description,
|
|
39
48
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const { art } = require('@/utils/render');
|
|
4
|
+
const { fallback, queryToInteger } = require('@/utils/readable-social');
|
|
5
|
+
|
|
6
|
+
module.exports = async (ctx) => {
|
|
7
|
+
const subjectType = ctx.params.type || 'tv';
|
|
8
|
+
const apiKey = '0ac44ae016490db2204ce0a042db2916';
|
|
9
|
+
let url = `https://frodo.douban.com/api/v2/skynet/new_playlists?apikey=${apiKey}&subject_type=${subjectType}`;
|
|
10
|
+
let response = await got({
|
|
11
|
+
method: 'get',
|
|
12
|
+
url,
|
|
13
|
+
headers: {
|
|
14
|
+
'User-Agent': 'MicroMessenger/',
|
|
15
|
+
Referer: 'https://servicewechat.com/wx2f9b06c1de1ccfca/91/page-frame.html',
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const date = new Date();
|
|
20
|
+
const year = date.getFullYear();
|
|
21
|
+
const mon = date.getMonth() + 1;
|
|
22
|
+
let items = response.data.data[0].items;
|
|
23
|
+
|
|
24
|
+
const subjectCollectionId = items.find((item) => item.title.startsWith(`${year}年${mon}月`)).id;
|
|
25
|
+
|
|
26
|
+
const routeParams = Object.fromEntries(new URLSearchParams(ctx.params.routeParams));
|
|
27
|
+
const playable = fallback(undefined, queryToInteger(routeParams.playable), 0);
|
|
28
|
+
const score = fallback(undefined, queryToInteger(routeParams.score), 0);
|
|
29
|
+
|
|
30
|
+
url = `https://m.douban.com/rexxar/api/v2/subject_collection/${subjectCollectionId}/items?playable=${playable}`;
|
|
31
|
+
response = await got({
|
|
32
|
+
method: 'get',
|
|
33
|
+
url,
|
|
34
|
+
headers: {
|
|
35
|
+
Referer: `https://m.douban.com/subject_collection/${subjectCollectionId}`,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const description = response.data.subject_collection.description;
|
|
39
|
+
items = response.data.subject_collection_items
|
|
40
|
+
.filter((item) => {
|
|
41
|
+
const rate = item.rating ? item.rating.value : 0.0;
|
|
42
|
+
return rate >= score; // 保留rate大于等于score的项and过滤无评分项
|
|
43
|
+
})
|
|
44
|
+
.map((item) => {
|
|
45
|
+
const title = item.title;
|
|
46
|
+
const link = item.url;
|
|
47
|
+
const description = art(path.join(__dirname, '../templates/list_description.art'), {
|
|
48
|
+
ranking_value: item.ranking_value,
|
|
49
|
+
title,
|
|
50
|
+
original_title: item.original_title,
|
|
51
|
+
rate: item.rating ? item.rating.value : null,
|
|
52
|
+
card_subtitle: item.card_subtitle,
|
|
53
|
+
description: item.cards ? item.cards[0].content : item.abstract,
|
|
54
|
+
cover: item.cover_url || item.cover?.url,
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
title,
|
|
58
|
+
link,
|
|
59
|
+
description,
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
ctx.state.data = {
|
|
63
|
+
title: `豆瓣 - ${response.data.subject_collection.name}`,
|
|
64
|
+
link: `https://m.douban.com/subject_collection/${subjectCollectionId}`,
|
|
65
|
+
item: items,
|
|
66
|
+
description,
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -26,7 +26,7 @@ function tryFixStatus(status) {
|
|
|
26
26
|
isFixSuccess: false,
|
|
27
27
|
why: status.msg ? status.msg : '[ 内容已被设为不可见 ]',
|
|
28
28
|
};
|
|
29
|
-
} else if (
|
|
29
|
+
} else if (status.text === undefined || status.text === null || !status.uri) {
|
|
30
30
|
result = {
|
|
31
31
|
isFixSuccess: false,
|
|
32
32
|
why: status.msg ? status.msg : '[ 内容已不可访问 ]',
|
package/lib/v2/douban/radar.js
CHANGED
package/lib/v2/douban/router.js
CHANGED
|
@@ -12,7 +12,7 @@ module.exports = function (router) {
|
|
|
12
12
|
router.get('/explore/column/:id', require('./other/explore_column'));
|
|
13
13
|
router.get('/group/:groupid/:type?', require('./other/group'));
|
|
14
14
|
router.get('/jobs/:type', require('./other/jobs.js'));
|
|
15
|
-
router.get('/list/:type?', require('./other/list'));
|
|
15
|
+
router.get('/list/:type?/:routeParams?', require('./other/list'));
|
|
16
16
|
router.get('/movie/classification/:sort?/:score?/:tags?', require('./other/classification.js'));
|
|
17
17
|
router.get('/movie/later', require('./other/later'));
|
|
18
18
|
router.get('/movie/playing', require('./other/playing'));
|
|
@@ -22,7 +22,9 @@ module.exports = function (router) {
|
|
|
22
22
|
router.get('/music/latest/:area?', require('./other/latest_music'));
|
|
23
23
|
router.get('/people/:userid/status/:routeParams?', require('./people/status.js'));
|
|
24
24
|
router.get('/people/:userid/wish/:routeParams?', require('./people/wish.js'));
|
|
25
|
+
router.get('/recommended/:type?/:routeParams?', require('./other/recommended'));
|
|
25
26
|
router.get('/replied/:uid', require('./other/replied'));
|
|
26
27
|
router.get('/replies/:uid', require('./other/replies'));
|
|
27
28
|
router.get('/topic/:id/:sort?', require('./other/topic.js'));
|
|
29
|
+
router.get('/:id/discussion', require('./other/discussion.js'));
|
|
28
30
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
3
|
+
|
|
4
|
+
module.exports = async (ctx) => {
|
|
5
|
+
const response = await got({
|
|
6
|
+
method: 'get',
|
|
7
|
+
url: 'https://www.egsea.com/news/flash-list?per-page=30',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const out = response.data.data.map((item) => {
|
|
11
|
+
const pubDate = parseDate(item.pageTime, 'X');
|
|
12
|
+
const link = 'https://www.egsea.com' + item.url;
|
|
13
|
+
const title = item.title;
|
|
14
|
+
const description = item.content;
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
title,
|
|
18
|
+
link,
|
|
19
|
+
pubDate,
|
|
20
|
+
description,
|
|
21
|
+
category: item.tags.map((tag) => tag.name),
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
ctx.state.data = {
|
|
26
|
+
title: '快讯 - e 公司',
|
|
27
|
+
link: 'https://www.egsea.com/news/flash',
|
|
28
|
+
item: out,
|
|
29
|
+
};
|
|
30
|
+
};
|
package/lib/v2/ehentai/ehapi.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
2
|
const logger = require('@/utils/logger');
|
|
3
|
+
const timezone = require('@/utils/timezone');
|
|
3
4
|
const cheerio = require('cheerio');
|
|
4
5
|
const path = require('path');
|
|
5
6
|
const config = require('@/config').value.ehentai;
|
|
@@ -76,7 +77,8 @@ async function parsePage(cache, data, get_bittorrent = false, embed_thumb = fals
|
|
|
76
77
|
async function parseElement(cache, element) {
|
|
77
78
|
const el = $(element);
|
|
78
79
|
const title = el.find('div.glink').html();
|
|
79
|
-
const
|
|
80
|
+
const rawDate = el.find('div[id^="posted_"]').text();
|
|
81
|
+
const pubDate = rawDate ? timezone(rawDate, 0) : rawDate;
|
|
80
82
|
let el_a;
|
|
81
83
|
let el_img;
|
|
82
84
|
// match layout
|