rsshub 1.0.0-master.dea94ae โ 1.0.0-master.debc0df
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 +9 -7
- package/lib/config.js +31 -13
- package/lib/maintainer.js +7 -2
- package/lib/middleware/access-control.js +5 -5
- package/lib/middleware/cache/index.js +4 -3
- package/lib/middleware/cache/redis.js +3 -3
- package/lib/middleware/onerror.js +9 -3
- package/lib/middleware/parameter.js +66 -11
- package/lib/middleware/template.js +79 -85
- package/lib/radar-rules.js +0 -340
- package/lib/radar.js +1 -1
- package/lib/router.js +36 -868
- package/lib/routes/199it/category.js +1 -1
- package/lib/routes/199it/tag.js +1 -1
- package/lib/routes/199it/utils.js +1 -1
- package/lib/routes/ddrk/index.js +1 -1
- package/lib/routes/ddrk/list.js +1 -1
- package/lib/routes/index.js +6 -13
- package/lib/routes/universities/ynnu/edu/news.js +3 -3
- package/lib/routes/zimuku/index.js +1 -1
- package/lib/utils/common-utils.js +2 -6
- package/lib/utils/got.js +5 -0
- package/lib/utils/rand-user-agent.js +3 -2
- package/lib/utils/render.js +2 -0
- package/lib/utils/request-wrapper.js +7 -2
- package/lib/v2/141ppv/index.js +4 -1
- package/lib/v2/1point3acres/maintainer.js +2 -2
- package/lib/v2/2048/index.js +18 -13
- package/lib/v2/95mm/utils.js +3 -2
- package/lib/v2/9to5/utils.js +1 -1
- package/lib/v2/abc/index.js +162 -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/aeon/utils.js +1 -1
- package/lib/v2/agirls/maintainer.js +0 -1
- package/lib/v2/agirls/radar.js +0 -6
- package/lib/v2/agirls/router.js +0 -1
- package/lib/v2/ainvest/article.js +42 -0
- package/lib/v2/ainvest/maintainer.js +4 -0
- package/lib/v2/ainvest/news.js +39 -0
- package/lib/v2/ainvest/radar.js +19 -0
- package/lib/v2/ainvest/router.js +4 -0
- package/lib/v2/ainvest/utils.js +73 -0
- package/lib/v2/aliyun/notice.js +1 -1
- package/lib/v2/aljazeera/index.js +1 -1
- package/lib/v2/alternativeto/maintainer.js +4 -0
- package/lib/v2/alternativeto/platform.js +32 -0
- package/lib/v2/alternativeto/radar.js +19 -0
- package/lib/v2/alternativeto/router.js +4 -0
- package/lib/v2/alternativeto/software.js +32 -0
- package/lib/v2/alternativeto/utils.js +22 -0
- package/lib/v2/amazon/maintainer.js +1 -1
- package/lib/v2/apkpure/versions.js +1 -1
- package/lib/v2/apnews/topics.js +2 -1
- package/lib/v2/apple/apps.js +107 -0
- package/lib/v2/apple/maintainer.js +1 -0
- package/lib/v2/apple/radar.js +8 -0
- package/lib/v2/apple/router.js +1 -0
- package/lib/v2/appstore/maintainer.js +0 -2
- package/lib/v2/appstore/radar.js +0 -17
- package/lib/v2/appstore/router.js +0 -2
- package/lib/v2/arcteryx/maintainer.js +3 -3
- package/lib/v2/artstation/maintainer.js +3 -0
- package/lib/v2/artstation/radar.js +13 -0
- package/lib/v2/artstation/router.js +3 -0
- package/lib/v2/artstation/templates/description.art +17 -0
- package/lib/v2/artstation/user.js +98 -0
- 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/baidu/maintainer.js +1 -0
- package/lib/v2/baidu/radar.js +12 -1
- package/lib/v2/baidu/router.js +1 -0
- package/lib/v2/baidu/search.js +54 -0
- package/lib/v2/baidu/templates/description.art +6 -0
- 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/bellroy/maintainer.js +1 -1
- package/lib/v2/bilibili/cache.js +68 -27
- package/lib/v2/bilibili/danmaku.js +9 -2
- package/lib/v2/bilibili/dynamic.js +16 -4
- package/lib/v2/bilibili/fav.js +2 -0
- package/lib/v2/bilibili/maintainer.js +1 -5
- package/lib/v2/bilibili/platform.js +43 -0
- package/lib/v2/bilibili/radar.js +8 -6
- package/lib/v2/bilibili/router.js +1 -5
- package/lib/v2/bilibili/userFav.js +2 -0
- package/lib/v2/bilibili/utils.js +64 -2
- package/lib/v2/bilibili/video.js +16 -7
- package/lib/v2/bing/daily-wallpaper.js +25 -0
- package/lib/v2/bing/maintainer.js +4 -0
- package/lib/v2/bing/radar.js +22 -0
- package/lib/v2/bing/router.js +4 -0
- package/lib/v2/bing/search.js +28 -0
- package/lib/v2/bnu/dwxgb.js +17 -22
- package/lib/v2/boc/whpj.js +9 -8
- 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/radar.js +13 -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/cas/radar.js +1 -1
- package/lib/v2/cbc/maintainer.js +3 -0
- package/lib/v2/cbc/radar.js +13 -0
- package/lib/v2/cbc/router.js +3 -0
- package/lib/v2/cbc/topics.js +58 -0
- package/lib/v2/cctv/maintainer.js +0 -1
- package/lib/v2/cctv/radar.js +0 -6
- package/lib/v2/cctv/router.js +0 -1
- package/lib/v2/cfachina/analygarden.js +60 -0
- package/lib/v2/cfachina/maintainer.js +3 -0
- package/lib/v2/cfachina/radar.js +13 -0
- package/lib/v2/cfachina/router.js +3 -0
- 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/chinawriter/index.js +88 -0
- package/lib/v2/chinawriter/maintainer.js +3 -0
- package/lib/v2/chinawriter/radar.js +660 -0
- package/lib/v2/chinawriter/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/cnljxh/index.js +71 -0
- package/lib/v2/cnljxh/maintainer.js +7 -0
- package/lib/v2/cnljxh/radar.js +194 -0
- package/lib/v2/cnljxh/router.js +3 -0
- package/lib/v2/consumer/maintainer.js +1 -0
- package/lib/v2/consumer/radar.js +6 -0
- package/lib/v2/consumer/router.js +1 -0
- package/lib/v2/consumer/shopping-guide.js +66 -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/cste/radar.js +1 -1
- package/lib/v2/curius/templates/description.art +1 -1
- package/lib/v2/cw/utils.js +3 -3
- package/lib/v2/cyzone/maintainer.js +1 -1
- package/lib/v2/dahecube/index.js +1 -1
- package/lib/v2/dahecube/radar.js +40 -4
- package/lib/v2/dcfever/utils.js +8 -1
- package/lib/v2/deadline/maintainer.js +0 -1
- package/lib/v2/deeplearning/maintainer.js +3 -0
- package/lib/v2/deeplearning/radar.js +13 -0
- package/lib/v2/deeplearning/router.js +3 -0
- package/lib/v2/deeplearning/thebatch.js +36 -0
- package/lib/v2/diandong/maintainer.js +0 -1
- package/lib/v2/diandong/radar.js +0 -6
- package/lib/v2/diandong/router.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/douyin/live.js +1 -1
- package/lib/v2/dut/defaults.js +4 -0
- package/lib/v2/dut/index.js +21 -9
- package/lib/v2/dut/maintainer.js +8 -7
- package/lib/v2/dut/radar.js +37 -29
- package/lib/v2/dut/shortcuts.js +5 -0
- package/lib/v2/dx2025/radar.js +0 -6
- package/lib/v2/eastday/maintainer.js +0 -1
- package/lib/v2/eastday/radar.js +0 -6
- package/lib/v2/eastday/router.js +0 -1
- package/lib/v2/economist/full.js +4 -2
- package/lib/v2/economist/maintainer.js +0 -2
- package/lib/v2/economist/radar.js +0 -8
- package/lib/v2/economist/router.js +0 -2
- 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/v2/finology/radar.js +4 -4
- package/lib/v2/firefox/addons.js +35 -0
- 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/v2/firefox/release.js +30 -0
- package/lib/v2/firefox/router.js +3 -1
- package/lib/v2/fisher-spb/news.js +1 -2
- package/lib/v2/foresightnews/maintainer.js +0 -1
- package/lib/v2/fortnite/news.js +1 -1
- package/lib/v2/fosshub/radar.js +1 -1
- package/lib/v2/ft/maintainer.js +0 -1
- package/lib/v2/ft/radar.js +0 -13
- package/lib/v2/ft/router.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/fxiaoke/crm.js +63 -0
- package/lib/v2/fxiaoke/maintainer.js +3 -0
- package/lib/v2/fxiaoke/radar.js +37 -0
- package/lib/v2/fxiaoke/router.js +3 -0
- package/lib/v2/gamegene/maintainer.js +3 -0
- package/lib/v2/gamegene/news.js +50 -0
- package/lib/v2/gamegene/radar.js +13 -0
- package/lib/v2/gamme/category.js +2 -2
- package/lib/v2/gamme/tag.js +3 -3
- 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/maintainer.js +1 -0
- package/lib/v2/github/pulse.js +87 -0
- package/lib/v2/github/radar.js +18 -12
- package/lib/v2/github/router.js +1 -0
- package/lib/v2/github/templates/pulse-description.art +24 -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/maintainer.js +3 -0
- package/lib/v2/gogoanimehd/radar.js +13 -0
- package/lib/v2/gogoanimehd/recent-releases.js +37 -0
- package/lib/v2/gogoanimehd/router.js +3 -0
- package/lib/v2/google/alerts.js +33 -0
- package/lib/v2/google/maintainer.js +2 -0
- package/lib/v2/google/radar.js +12 -8
- package/lib/v2/google/router.js +2 -2
- package/lib/v2/google/search.js +62 -0
- package/lib/v2/google/templates/description.art +6 -0
- package/lib/v2/gov/caac/cjwt.js +56 -0
- package/lib/v2/gov/caac/templates/description.art +25 -0
- package/lib/v2/gov/chinamine-safety/util.js +77 -0
- package/lib/v2/gov/chinamine-safety/xw.js +37 -0
- package/lib/v2/gov/chinamine-safety/zfxxgk.js +36 -0
- package/lib/v2/gov/chongqing/gzw.js +68 -0
- package/lib/v2/gov/chongqing/sydwgkzp.js +47 -0
- package/lib/v2/gov/forestry/gjlckjdjt.js +96 -0
- package/lib/v2/gov/forestry/templates/description.art +15 -0
- package/lib/v2/gov/jgjcndrc/index.js +59 -0
- package/lib/v2/gov/maintainer.js +24 -3
- package/lib/v2/gov/mem/sgcc.js +64 -0
- package/lib/v2/gov/moa/zdscxx.js +104 -0
- package/lib/v2/gov/mof/bond.js +51 -0
- package/lib/v2/gov/mot/index.js +66 -0
- package/lib/v2/gov/ndrc/fggz.js +62 -0
- package/lib/v2/gov/ndrc/xwdt.js +54 -0
- package/lib/v2/gov/nea/ghs.js +58 -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 +1311 -4
- package/lib/v2/gov/router.js +24 -2
- package/lib/v2/gov/safe/business.js +8 -0
- package/lib/v2/gov/safe/complaint.js +8 -0
- package/lib/v2/gov/safe/templates/message.art +25 -0
- package/lib/v2/gov/safe/util.js +87 -0
- 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/grist/radar.js +4 -4
- package/lib/v2/grubstreet/maintainer.js +3 -0
- package/lib/v2/grubstreet/radar.js +13 -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/v2/gxmzu/lib.js +70 -0
- package/lib/v2/gxmzu/maintainer.js +1 -0
- package/lib/v2/gxmzu/radar.js +8 -0
- package/lib/v2/gxmzu/router.js +1 -0
- package/lib/v2/hackyournews/index.js +50 -0
- package/lib/v2/hackyournews/maintainer.js +3 -0
- package/lib/v2/hackyournews/radar.js +13 -0
- package/lib/v2/hackyournews/router.js +3 -0
- package/lib/v2/harvard/health/blog.js +52 -0
- 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/hellobtc/maintainer.js +0 -1
- package/lib/v2/hellobtc/radar.js +0 -6
- package/lib/v2/hellobtc/router.js +0 -1
- 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/hpoi/all.js +3 -0
- package/lib/v2/hpoi/bannerItem.js +26 -0
- package/lib/v2/hpoi/character.js +3 -0
- package/lib/v2/hpoi/maintainer.js +8 -0
- package/lib/v2/hpoi/radar.js +37 -0
- package/lib/v2/hpoi/router.js +8 -0
- package/lib/v2/hpoi/user.js +43 -0
- package/lib/v2/hpoi/utils.js +49 -0
- package/lib/v2/hpoi/work.js +3 -0
- package/lib/v2/huxiu/briefColumn.js +13 -25
- package/lib/v2/huxiu/channel.js +28 -0
- package/lib/v2/huxiu/club.js +30 -0
- package/lib/v2/huxiu/collection.js +14 -26
- package/lib/v2/huxiu/maintainer.js +8 -5
- package/lib/v2/huxiu/member.js +27 -0
- package/lib/v2/huxiu/moment.js +11 -25
- package/lib/v2/huxiu/radar.js +24 -16
- package/lib/v2/huxiu/router.js +7 -4
- package/lib/v2/huxiu/search.js +16 -21
- package/lib/v2/huxiu/tag.js +13 -25
- package/lib/v2/huxiu/templates/description.art +46 -0
- package/lib/v2/huxiu/util.js +460 -0
- package/lib/v2/ianspriggs/index.js +90 -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/icbc/radar.js +1 -1
- package/lib/v2/ifi-audio/maintainer.js +1 -1
- package/lib/v2/imiker/jinghua.js +87 -0
- package/lib/v2/imiker/maintainer.js +3 -0
- package/lib/v2/imiker/radar.js +13 -0
- package/lib/v2/imiker/router.js +3 -0
- package/lib/v2/imiker/templates/description.art +32 -0
- package/lib/v2/inoreader/maintainer.js +1 -1
- package/lib/v2/instagram/common-utils.js +7 -4
- package/lib/v2/instagram/radar.js +2 -2
- package/lib/v2/instagram/templates/images.art +9 -2
- package/lib/v2/instagram/templates/video.art +4 -1
- package/lib/v2/instagram/web-api/index.js +30 -9
- package/lib/v2/instagram/web-api/utils.js +149 -25
- 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/iqiyi/video.js +1 -1
- 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/jianshu/maintainer.js +5 -0
- package/lib/v2/jianshu/radar.js +25 -0
- package/lib/v2/jianshu/router.js +5 -0
- package/lib/v2/jianshu/utils.js +58 -0
- package/lib/v2/jiemian/lists.js +93 -0
- package/lib/v2/jiemian/maintainer.js +5 -2
- package/lib/v2/jiemian/radar.js +620 -8
- package/lib/v2/jiemian/router.js +7 -2
- package/lib/v2/jiemian/templates/description.art +39 -0
- package/lib/v2/juejin/maintainer.js +0 -2
- package/lib/v2/juejin/radar.js +0 -12
- package/lib/v2/juejin/router.js +0 -2
- package/lib/v2/kamen-rider-official/news.js +110 -0
- package/lib/v2/kamen-rider-official/radar.js +18 -0
- package/lib/v2/kamen-rider-official/templates/description.art +10 -0
- package/lib/v2/kemono/index.js +28 -4
- package/lib/v2/kemono/radar.js +1 -1
- package/lib/v2/kepu/live.js +89 -0
- package/lib/v2/kepu/maintainer.js +3 -0
- package/lib/v2/kepu/radar.js +13 -0
- package/lib/v2/kepu/router.js +3 -0
- package/lib/v2/kepu/templates/description.art +33 -0
- 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/leetcode/maintainer.js +1 -1
- package/lib/v2/leetcode/radar.js +0 -20
- package/lib/v2/lemmy/index.js +61 -0
- package/lib/v2/lemmy/maintainer.js +3 -0
- package/lib/v2/lemmy/router.js +3 -0
- package/lib/v2/lightnovel/lightNovel.js +62 -0
- package/lib/v2/lightnovel/maintainer.js +3 -0
- package/lib/v2/lightnovel/radar.js +13 -0
- package/lib/v2/lightnovel/router.js +3 -0
- package/lib/v2/line/radar.js +1 -1
- 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/liulinblog/radar.js +6 -6
- 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/lsnu/jiaowc/tzgg.js +52 -0
- package/lib/v2/lsnu/maintainer.js +3 -0
- package/lib/v2/lsnu/radar.js +13 -0
- package/lib/v2/lsnu/router.js +3 -0
- package/lib/v2/magazinelib/maintainer.js +1 -1
- package/lib/v2/mail/imap.js +99 -0
- package/lib/v2/mail/maintainer.js +3 -0
- package/lib/v2/mail/router.js +3 -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/mihoyo/radar.js +1 -1
- package/lib/v2/missav/maintainer.js +3 -0
- package/lib/v2/missav/new.js +36 -0
- package/lib/v2/missav/radar.js +13 -0
- package/lib/v2/missav/router.js +3 -0
- package/lib/v2/missav/templates/preview.art +3 -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/mixcloud/index.js +5 -22
- package/lib/v2/mixcloud/queries.js +187 -179
- 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/mydrivers/cid.js +38 -0
- package/lib/v2/mydrivers/index.js +40 -89
- package/lib/v2/mydrivers/maintainer.js +5 -1
- package/lib/v2/mydrivers/radar.js +205 -4
- package/lib/v2/mydrivers/rank.js +40 -0
- package/lib/v2/mydrivers/router.js +4 -1
- package/lib/v2/mydrivers/templates/description.art +5 -0
- package/lib/v2/mydrivers/util.js +125 -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/ncu/jwc.js +33 -0
- package/lib/v2/ncu/maintainer.js +3 -0
- package/lib/v2/ncu/radar.js +13 -0
- package/lib/v2/ncu/router.js +3 -0
- package/lib/v2/netflav/index.js +39 -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/nhk/news.js +1 -1
- package/lib/v2/niaogebiji/cat.js +53 -0
- package/lib/v2/niaogebiji/index.js +41 -0
- package/lib/v2/niaogebiji/maintainer.js +5 -0
- package/lib/v2/niaogebiji/radar.js +25 -0
- package/lib/v2/niaogebiji/router.js +5 -0
- package/lib/v2/niaogebiji/today.js +34 -0
- package/lib/v2/nmtv/radar.js +1 -1
- package/lib/v2/nodejs/blog.js +1 -1
- package/lib/v2/npr/radar.js +2 -2
- package/lib/v2/nytimes/radar.js +0 -6
- package/lib/v2/nytimes/router.js +0 -1
- package/lib/v2/oo-software/radar.js +1 -1
- package/lib/v2/oreno3d/radar.js +1 -1
- package/lib/v2/oschina/news.js +1 -0
- package/lib/v2/osu/beatmaps/packs.js +35 -0
- package/lib/v2/osu/maintainer.js +3 -0
- package/lib/v2/osu/radar.js +13 -0
- package/lib/v2/osu/router.js +3 -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/patagonia/maintainer.js +1 -1
- 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/phoronix/index.js +177 -48
- package/lib/v2/phoronix/maintainer.js +1 -1
- package/lib/v2/phoronix/radar.js +3 -3
- package/lib/v2/phoronix/router.js +1 -1
- package/lib/v2/picnob/maintainer.js +1 -1
- package/lib/v2/picnob/templates/desc.art +3 -3
- package/lib/v2/picnob/user.js +74 -37
- package/lib/v2/picnob/utils.js +24 -0
- 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/pkmer/maintainer.js +3 -0
- package/lib/v2/pkmer/radar.js +13 -0
- package/lib/v2/pkmer/recent.js +36 -0
- package/lib/v2/pkmer/router.js +3 -0
- 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/pnas/index.js +1 -1
- 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/qq/maintainer.js +0 -1
- package/lib/v2/qq/radar.js +0 -8
- package/lib/v2/qq/router.js +0 -1
- package/lib/v2/qqorw/maintainer.js +1 -1
- package/lib/v2/questmobile/maintainer.js +3 -0
- package/lib/v2/questmobile/radar.js +18 -0
- package/lib/v2/questmobile/report.js +127 -0
- package/lib/v2/questmobile/router.js +3 -0
- package/lib/v2/questmobile/templates/description.art +17 -0
- package/lib/v2/qweather/3days.js +1 -1
- package/lib/v2/radio-canada/latest.js +8 -1
- package/lib/v2/reactnewsletter/maintainer.js +0 -1
- package/lib/v2/readhub/daily.js +43 -0
- package/lib/v2/readhub/index.js +42 -86
- package/lib/v2/readhub/maintainer.js +2 -1
- package/lib/v2/readhub/radar.js +12 -2
- package/lib/v2/readhub/router.js +2 -4
- package/lib/v2/readhub/templates/description.art +40 -0
- package/lib/v2/readhub/util.js +69 -0
- package/lib/v2/reuters/common.js +77 -54
- 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/routledge/book-series.js +78 -0
- package/lib/v2/routledge/maintainer.js +3 -0
- package/lib/v2/routledge/radar.js +13 -0
- package/lib/v2/routledge/router.js +3 -0
- package/lib/v2/routledge/templates/description.art +7 -0
- package/lib/v2/rsshub/maintainer.js +1 -1
- package/lib/v2/rsshub/radar.js +0 -6
- package/lib/v2/rsshub/router.js +1 -1
- package/lib/v2/rsshub/transform/sitemap.js +52 -0
- 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/scut/maintainer.js +1 -0
- package/lib/v2/scut/radar.js +34 -0
- package/lib/v2/scut/router.js +1 -0
- package/lib/v2/scut/smae/notice.js +54 -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/sehuatang/index.js +10 -12
- package/lib/v2/sehuatang/user.js +11 -12
- package/lib/v2/shiep/config.js +10 -10
- package/lib/v2/shiep/index.js +4 -4
- package/lib/v2/shiep/radar.js +6 -6
- 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/snowpeak/maintainer.js +1 -1
- package/lib/v2/sogou/maintainer.js +4 -0
- package/lib/v2/sogou/radar.js +16 -0
- package/lib/v2/sogou/router.js +4 -0
- package/lib/v2/sogou/search.js +54 -0
- package/lib/v2/sogou/templates/description.art +6 -0
- package/lib/v2/sohu/mp.js +48 -35
- package/lib/v2/sohu/templates/video.art +7 -0
- package/lib/v2/sony/maintainer.js +1 -1
- package/lib/v2/sourceforge/index.js +33 -0
- package/lib/v2/sourceforge/maintainer.js +3 -0
- package/lib/v2/sourceforge/radar.js +12 -0
- package/lib/v2/sourceforge/router.js +3 -0
- package/lib/v2/sqmc/maintainer.js +3 -0
- package/lib/v2/sqmc/radar.js +13 -0
- package/lib/v2/sqmc/router.js +3 -0
- package/lib/v2/sqmc/www.js +49 -0
- package/lib/v2/sse/disclosure.js +4 -3
- package/lib/v2/sspu/jwc.js +44 -0
- package/lib/v2/sspu/maintainer.js +3 -0
- package/lib/v2/sspu/radar.js +13 -0
- package/lib/v2/sspu/router.js +3 -0
- package/lib/v2/stratechery/radar.js +1 -1
- package/lib/v2/surfshark/blog.js +91 -0
- package/lib/v2/surfshark/maintainer.js +3 -0
- package/lib/v2/surfshark/radar.js +90 -0
- package/lib/v2/surfshark/router.js +3 -0
- package/lib/v2/surfshark/templates/description.art +5 -0
- package/lib/v2/sysu/ygafz.js +1 -1
- 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/techcrunch/maintainer.js +1 -1
- package/lib/v2/techpowerup/maintainer.js +0 -1
- package/lib/v2/telegram/maintainer.js +3 -3
- package/lib/v2/tencent/maintainer.js +0 -1
- package/lib/v2/tencent/radar.js +0 -40
- package/lib/v2/tencent/router.js +0 -1
- 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/theatlantic/maintainer.js +1 -1
- package/lib/v2/theblockbeats/index.js +53 -0
- package/lib/v2/theblockbeats/radar.js +19 -0
- package/lib/v2/theblockbeats/router.js +3 -0
- package/lib/v2/thenewslens/radar.js +0 -6
- package/lib/v2/thepaper/featured.js +1 -1
- package/lib/v2/thepaper/radar.js +2 -2
- package/lib/v2/thepaper/utils.js +18 -12
- package/lib/v2/thoughtco/index.js +95 -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/thwiki/radar.js +1 -1
- package/lib/v2/tophub/list.js +40 -0
- package/lib/v2/tophub/maintainer.js +1 -0
- package/lib/v2/tophub/radar.js +6 -0
- package/lib/v2/tophub/router.js +1 -0
- package/lib/v2/tophub/templates/rank.art +22 -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/twreporter/maintainer.js +0 -2
- package/lib/v2/twreporter/radar.js +0 -12
- package/lib/v2/twreporter/router.js +0 -2
- package/lib/v2/uchicago/current.js +2 -2
- 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/wechat/maintainer.js +1 -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/cs.js +71 -0
- package/lib/v2/whu/gs/index.js +85 -0
- package/lib/v2/whu/hyxt.js +50 -0
- package/lib/v2/whu/maintainer.js +6 -0
- package/lib/v2/whu/news.js +70 -0
- package/lib/v2/whu/radar.js +275 -0
- package/lib/v2/whu/router.js +6 -0
- package/lib/v2/whu/templates/description.art +39 -0
- package/lib/v2/whu/util.js +148 -0
- package/lib/v2/worldjournal/index.js +1 -1
- package/lib/v2/woshipm/maintainer.js +0 -2
- package/lib/v2/woshipm/radar.js +0 -12
- package/lib/v2/woshipm/router.js +0 -2
- 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 +29 -23
- package/lib/v2/xiaote/radar.js +1 -1
- package/lib/v2/xinpianchang/index.js +19 -0
- package/lib/v2/xinpianchang/maintainer.js +4 -0
- package/lib/v2/xinpianchang/radar.js +28 -0
- package/lib/v2/xinpianchang/rank.js +33 -0
- package/lib/v2/xinpianchang/router.js +5 -0
- package/lib/v2/xinpianchang/templates/description.art +13 -0
- package/lib/v2/xinpianchang/util.js +110 -0
- 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/xmut/jwc/bkjw.js +62 -0
- package/lib/v2/xmut/jwc/yjs.js +51 -0
- package/lib/v2/xmut/maintainer.js +3 -0
- package/lib/v2/xmut/radar.js +13 -0
- package/lib/v2/xmut/router.js +4 -0
- package/lib/v2/xsijishe/maintainer.js +1 -0
- package/lib/v2/xsijishe/radar.js +12 -0
- package/lib/v2/xsijishe/rank.js +60 -0
- package/lib/v2/xsijishe/router.js +1 -0
- package/lib/v2/yahoo/maintainer.js +2 -0
- package/lib/v2/yahoo/news/tw/index.js +24 -0
- package/lib/v2/yahoo/news/tw/provider-helper.js +22 -0
- package/lib/v2/yahoo/news/tw/provider.js +24 -0
- package/lib/v2/yahoo/news/tw/utils.js +129 -0
- package/lib/v2/yahoo/radar.js +29 -1
- package/lib/v2/yahoo/router.js +4 -1
- package/lib/v2/yahoo/templates/youtube.art +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/book.js +6 -1
- package/lib/v2/yuque/utils.js +17 -0
- package/lib/v2/yyets/radar.js +2 -2
- package/lib/v2/zagg/maintainer.js +1 -1
- package/lib/v2/zcool/discover.js +3 -0
- package/lib/v2/zcool/maintainer.js +1 -1
- package/lib/v2/zhihu/maintainer.js +2 -0
- package/lib/v2/zhihu/radar.js +18 -0
- package/lib/v2/zhihu/router.js +2 -0
- package/lib/v2/zhihu/xhu/activities.js +112 -0
- package/lib/v2/zhihu/xhu/answers.js +31 -0
- 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/v2/zimuxia/index.js +64 -0
- 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/error.art +1 -1
- package/lib/views/rss3-ums.js +62 -0
- package/lib/views/welcome.art +1 -1
- package/package.json +77 -41
- package/lib/routes/1draw/index.js +0 -44
- package/lib/routes/3ycy/home.js +0 -58
- package/lib/routes/51voa/channel.js +0 -158
- package/lib/routes/8btc/author.js +0 -49
- package/lib/routes/8btc/news/flash.js +0 -41
- package/lib/routes/91ddcc/stage.js +0 -48
- package/lib/routes/91ddcc/user.js +0 -45
- package/lib/routes/93/index.js +0 -50
- 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/aliyun-kernel/index.js +0 -60
- package/lib/routes/allnow/column.js +0 -7
- package/lib/routes/allnow/index.js +0 -5
- package/lib/routes/allnow/tag.js +0 -7
- package/lib/routes/allnow/user.js +0 -7
- package/lib/routes/allnow/utils.js +0 -67
- package/lib/routes/alter-cn/news.js +0 -44
- package/lib/routes/amazon/ku.js +0 -57
- package/lib/routes/andyt/index.js +0 -36
- package/lib/routes/animen/news.js +0 -84
- package/lib/routes/anitama/channel.js +0 -64
- package/lib/routes/anki/changes.js +0 -39
- package/lib/routes/aom/journal.js +0 -107
- package/lib/routes/aptonic/action.js +0 -38
- package/lib/routes/asahi/area.js +0 -57
- package/lib/routes/atfd/index.js +0 -46
- package/lib/routes/babehub/index.js +0 -30
- package/lib/routes/babehub/search.js +0 -15
- package/lib/routes/babehub/utils.js +0 -71
- package/lib/routes/baidu/daily.js +0 -55
- package/lib/routes/baidu/doodles.js +0 -27
- package/lib/routes/bell-labs/events-news.js +0 -70
- package/lib/routes/bihu/activaties.js +0 -76
- package/lib/routes/bing/index.js +0 -26
- package/lib/routes/biobio/index.js +0 -40
- package/lib/routes/biobio/others.js +0 -45
- package/lib/routes/bioon/latest.js +0 -51
- package/lib/routes/bishijie/kuaixun.js +0 -21
- package/lib/routes/bjnews/epaper.js +0 -80
- package/lib/routes/blogs/diygod/animal-crossing.js +0 -39
- package/lib/routes/blogs/diygod/gk.js +0 -33
- package/lib/routes/blogs/jianning.js +0 -45
- package/lib/routes/blogs/paulgraham.js +0 -46
- package/lib/routes/bof/home.js +0 -42
- package/lib/routes/bookscomtw/newbooks.js +0 -37
- package/lib/routes/booksource/index.js +0 -22
- package/lib/routes/boston/index.js +0 -73
- package/lib/routes/buaq/index.js +0 -31
- package/lib/routes/cbc/topics.js +0 -71
- package/lib/routes/cfd/gbp_div.js +0 -28
- package/lib/routes/cgtn/pick.js +0 -45
- package/lib/routes/cgtn/top.js +0 -45
- package/lib/routes/changku/index.js +0 -39
- package/lib/routes/chinadialogue/column.js +0 -58
- package/lib/routes/chinadialogue/topics.js +0 -55
- package/lib/routes/chinalaborwatch/reports.js +0 -53
- package/lib/routes/chinatimes/index.js +0 -115
- package/lib/routes/chuiniu/column.js +0 -89
- package/lib/routes/chuiniu/column_list.js +0 -36
- package/lib/routes/ciweimao/chapter.js +0 -34
- package/lib/routes/cktest/app.js +0 -34
- package/lib/routes/cktest/policy.js +0 -43
- package/lib/routes/cmes/news.js +0 -64
- package/lib/routes/codeceo/category.js +0 -51
- package/lib/routes/codeceo/home.js +0 -49
- package/lib/routes/commonapp/blog.js +0 -42
- package/lib/routes/coronavirus/caixin.js +0 -34
- package/lib/routes/coronavirus/dxy-data.js +0 -86
- package/lib/routes/coronavirus/dxy.js +0 -27
- package/lib/routes/coronavirus/mogov-2019ncov.js +0 -49
- package/lib/routes/coronavirus/nhc.js +0 -30
- package/lib/routes/coronavirus/scmp.js +0 -32
- package/lib/routes/coronavirus/sg-moh.js +0 -40
- package/lib/routes/coronavirus/yahoo-japan.js +0 -77
- package/lib/routes/cpta/notice.js +0 -41
- package/lib/routes/craigslist/search.js +0 -51
- package/lib/routes/cria/news.js +0 -57
- package/lib/routes/curseforge/files.js +0 -36
- package/lib/routes/curseforge/generalfiles.js +0 -42
- package/lib/routes/cve/search.js +0 -26
- package/lib/routes/d1bz/novel.js +0 -72
- package/lib/routes/d2/daily.js +0 -49
- package/lib/routes/dayone/blog.js +0 -56
- package/lib/routes/deeplearningai/thebatch.js +0 -29
- package/lib/routes/dengekionline/new.js +0 -133
- package/lib/routes/dhl/shipment-tracking.js +0 -56
- package/lib/routes/dianping/user.js +0 -98
- package/lib/routes/digic-pictures/index.js +0 -72
- package/lib/routes/dilbert/strip.js +0 -54
- package/lib/routes/dilidili/fanju.js +0 -78
- package/lib/routes/dockone/weekly.js +0 -60
- package/lib/routes/donews/index.js +0 -59
- package/lib/routes/donews/utils.js +0 -19
- package/lib/routes/dsb/area.js +0 -33
- package/lib/routes/dxy/vaccine.js +0 -109
- package/lib/routes/dysfz/index.js +0 -20
- package/lib/routes/egsea/flash.js +0 -40
- package/lib/routes/eleme/open-be/announce.js +0 -21
- package/lib/routes/elife/index.js +0 -67
- package/lib/routes/elitebabes/index.js +0 -30
- package/lib/routes/elitebabes/search.js +0 -15
- package/lib/routes/elitebabes/utils.js +0 -88
- package/lib/routes/elitebabes/videos.js +0 -26
- package/lib/routes/esquirehk/tag.js +0 -71
- package/lib/routes/facebook/page.js +0 -128
- package/lib/routes/feed-the-beast/modpack.js +0 -31
- package/lib/routes/feixuew/index.js +0 -63
- package/lib/routes/fir/update.js +0 -31
- package/lib/routes/firefox/addons.js +0 -33
- package/lib/routes/firefox/release.js +0 -30
- package/lib/routes/fitchratings/site.js +0 -33
- package/lib/routes/fjnews/fznews.js +0 -55
- package/lib/routes/fjnews/jjnews.js +0 -43
- package/lib/routes/fontstory/tw.js +0 -48
- package/lib/routes/fulinian/index.js +0 -50
- package/lib/routes/gab/explore.js +0 -31
- package/lib/routes/galgame/hhgal.js +0 -70
- package/lib/routes/galgame/sayhuahuo.js +0 -22
- package/lib/routes/galgame/zdfx.js +0 -30
- package/lib/routes/gamegrape/index.js +0 -73
- package/lib/routes/gaoqingla/latest.js +0 -37
- package/lib/routes/gbcc/trust.js +0 -28
- package/lib/routes/geektime/news.js +0 -54
- 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/girlimg/album.js +0 -57
- package/lib/routes/gitchat/newest.js +0 -23
- package/lib/routes/gitea/blog.js +0 -70
- package/lib/routes/gov/moa/sjzxfb.js +0 -20
- package/lib/routes/gov/ndrc/xwdt.js +0 -54
- package/lib/routes/gracg/user.js +0 -65
- package/lib/routes/gradcafe/result.js +0 -37
- package/lib/routes/growincity/news.js +0 -49
- package/lib/routes/grubstreet/utils.js +0 -78
- package/lib/routes/guiltfree/onsale.js +0 -48
- package/lib/routes/gvm/index.js +0 -94
- package/lib/routes/haimaoba/comics.js +0 -57
- package/lib/routes/hentai-cosplays/hentai-cosplays.js +0 -11
- package/lib/routes/hkcd/pdf.js +0 -30
- package/lib/routes/hkcnews/news.js +0 -63
- package/lib/routes/hkgolden/index.js +0 -110
- package/lib/routes/hopper/index.js +0 -82
- package/lib/routes/hpoi/index.js +0 -47
- package/lib/routes/hpoi/user.js +0 -37
- package/lib/routes/huawei/xinsheng/index.js +0 -61
- package/lib/routes/hugo/releases.js +0 -53
- package/lib/routes/iea/index.js +0 -53
- package/lib/routes/iie/blog.js +0 -47
- package/lib/routes/imaijia/category.js +0 -63
- package/lib/routes/imuseum/index.js +0 -49
- package/lib/routes/instapaper/person.js +0 -28
- package/lib/routes/itjuzi/invest.js +0 -32
- package/lib/routes/itjuzi/merge.js +0 -32
- package/lib/routes/itslide/new.js +0 -40
- package/lib/routes/iyiou/index.js +0 -41
- package/lib/routes/iyouport/index.js +0 -35
- package/lib/routes/iyouport/utils.js +0 -22
- package/lib/routes/jdlingyu/index.js +0 -45
- package/lib/routes/jianshu/trending.js +0 -28
- package/lib/routes/jianshu/utils.js +0 -66
- package/lib/routes/jiazhen108/index.js +0 -47
- package/lib/routes/jijitang/article.js +0 -19
- package/lib/routes/jijitang/publication.js +0 -18
- package/lib/routes/jingdong/zhongchou.js +0 -78
- package/lib/routes/jinritoutiao/keyword.js +0 -27
- package/lib/routes/jskou/index.js +0 -21
- package/lib/routes/juesheng/index.js +0 -49
- package/lib/routes/justrun/index.js +0 -44
- package/lib/routes/kaggle/competitions.js +0 -51
- package/lib/routes/kaggle/discussion.js +0 -72
- package/lib/routes/kaggle/user.js +0 -19
- package/lib/routes/kirara/news.js +0 -30
- package/lib/routes/kkj/news.js +0 -52
- package/lib/routes/konami/pesmobile.js +0 -31
- package/lib/routes/krankenkassen/index.js +0 -54
- package/lib/routes/ku/index.js +0 -31
- package/lib/routes/kzfeed/topic.js +0 -122
- package/lib/routes/leboncoin/ad.js +0 -136
- package/lib/routes/leetcode/check-cn.js +0 -98
- package/lib/routes/leetcode/check-us.js +0 -32
- package/lib/routes/leetcode/utils.js +0 -54
- package/lib/routes/liequtv/room.js +0 -36
- package/lib/routes/lingyi/index.js +0 -64
- package/lib/routes/linkedkeeper/index.js +0 -37
- package/lib/routes/liquipedia/dota2_matches.js +0 -50
- package/lib/routes/liwushuo/index.js +0 -28
- package/lib/routes/loveheaven/update.js +0 -45
- package/lib/routes/lowendtalk/discussion.js +0 -43
- package/lib/routes/macau-bolsas/index.js +0 -47
- package/lib/routes/macked/app.js +0 -25
- package/lib/routes/macwk/soft.js +0 -32
- package/lib/routes/mail/imap.js +0 -79
- package/lib/routes/makeuseof/index.js +0 -59
- package/lib/routes/manhuadui/manhua.js +0 -36
- package/lib/routes/manong-weekly/issues.js +0 -33
- package/lib/routes/matataki/site/posts/author.js +0 -17
- package/lib/routes/matataki/site/posts/favorite.js +0 -42
- package/lib/routes/matataki/site/posts/scoreranking.js +0 -15
- package/lib/routes/matataki/site/posts/tag.js +0 -16
- package/lib/routes/matataki/site/posts/timeranking.js +0 -15
- package/lib/routes/matataki/site/posts/token.js +0 -18
- package/lib/routes/matataki/utils/matataki-utils.js +0 -125
- package/lib/routes/maxnews/dota2.js +0 -45
- package/lib/routes/meituan/tech/home.js +0 -45
- package/lib/routes/mercari/index.js +0 -67
- package/lib/routes/metred/fuli.js +0 -42
- package/lib/routes/mi/board.js +0 -36
- package/lib/routes/mind42/index.js +0 -7
- package/lib/routes/mind42/search.js +0 -5
- package/lib/routes/mind42/tag.js +0 -5
- package/lib/routes/mind42/utils.js +0 -47
- package/lib/routes/mingjian/index.js +0 -46
- package/lib/routes/miniapp/article.js +0 -57
- package/lib/routes/miniapp/store/newest.js +0 -36
- package/lib/routes/mitbbs/index.js +0 -54
- package/lib/routes/mitre/publications.js +0 -27
- package/lib/routes/mittrchina/index.js +0 -45
- package/lib/routes/mlhang/latest.js +0 -23
- package/lib/routes/mlog-club/projects.js +0 -33
- package/lib/routes/mlog-club/topics.js +0 -37
- package/lib/routes/mobdata/report.js +0 -30
- package/lib/routes/moxingnet/index.js +0 -61
- package/lib/routes/mp4ba/index.js +0 -133
- package/lib/routes/mqube/latest.js +0 -21
- package/lib/routes/mqube/tag.js +0 -23
- package/lib/routes/mqube/top.js +0 -21
- package/lib/routes/mqube/user.js +0 -25
- package/lib/routes/mzitu/category.js +0 -26
- package/lib/routes/mzitu/home.js +0 -32
- package/lib/routes/mzitu/post.js +0 -41
- package/lib/routes/mzitu/tag.js +0 -25
- package/lib/routes/mzitu/tags.js +0 -23
- package/lib/routes/mzitu/util.js +0 -51
- package/lib/routes/namoc/announcement.js +0 -64
- package/lib/routes/namoc/exhibition.js +0 -67
- package/lib/routes/namoc/media.js +0 -67
- package/lib/routes/namoc/news.js +0 -67
- package/lib/routes/namoc/specials.js +0 -42
- package/lib/routes/nba/app_news.js +0 -40
- package/lib/routes/network360/jobs.js +0 -24
- package/lib/routes/newsmth/account.js +0 -39
- package/lib/routes/newsmth/section.js +0 -99
- package/lib/routes/nfmovies/index.js +0 -58
- package/lib/routes/niaogebiji/cat.js +0 -86
- package/lib/routes/niaogebiji/index.js +0 -40
- package/lib/routes/niaogebiji/today.js +0 -29
- package/lib/routes/ningmeng/song.js +0 -77
- package/lib/routes/northhouse/index.js +0 -54
- package/lib/routes/novel/axdzs.js +0 -67
- package/lib/routes/novel/booksky.js +0 -44
- package/lib/routes/novel/dcrsw.js +0 -58
- package/lib/routes/novel/ptwxz.js +0 -76
- package/lib/routes/novel/wenxuemi.js +0 -63
- package/lib/routes/novel/zhaishuyuan.js +0 -84
- package/lib/routes/npc/index.js +0 -42
- package/lib/routes/obsidian/announcements.js +0 -22
- package/lib/routes/or/index.js +0 -54
- package/lib/routes/ow/patch.js +0 -23
- package/lib/routes/partnershiponai/resources.js +0 -49
- package/lib/routes/pgyer/app.js +0 -91
- package/lib/routes/piaohua/hot.js +0 -37
- package/lib/routes/pintu360/index.js +0 -54
- package/lib/routes/plainlaw/archives.js +0 -42
- package/lib/routes/pmcaff/user.js +0 -56
- package/lib/routes/pocket/trending.js +0 -31
- package/lib/routes/polar/blog.js +0 -47
- package/lib/routes/popiask/questions.js +0 -41
- package/lib/routes/popiask/tapechat_questions.js +0 -43
- package/lib/routes/popyard/index.js +0 -93
- package/lib/routes/processon/popular.js +0 -51
- package/lib/routes/putonghua/hangzhou.js +0 -45
- package/lib/routes/qlwb/city.js +0 -54
- package/lib/routes/qlwb/news.js +0 -37
- package/lib/routes/qtfyfl/category.js +0 -91
- package/lib/routes/questmobile/report.js +0 -121
- package/lib/routes/rs05/rs05.js +0 -35
- package/lib/routes/s-hentai/index.js +0 -64
- package/lib/routes/sagawa/index.js +0 -67
- package/lib/routes/sankakucomplex/post.js +0 -50
- package/lib/routes/sans/summit_archive.js +0 -24
- package/lib/routes/sbs/chinese.js +0 -70
- package/lib/routes/scala-blog/scala-blog.js +0 -29
- package/lib/routes/sckjt/news.js +0 -35
- package/lib/routes/scoresaber/user.js +0 -44
- package/lib/routes/sf/sffq-announce.js +0 -22
- package/lib/routes/shengwugu/index.js +0 -41
- package/lib/routes/shinybbs/index.js +0 -60
- package/lib/routes/shinybbs/latest.js +0 -57
- package/lib/routes/shinybbs/p.js +0 -38
- package/lib/routes/showroom/room.js +0 -31
- package/lib/routes/shuax/project.js +0 -37
- package/lib/routes/shuhui/comics.js +0 -95
- package/lib/routes/sixthtone/news.js +0 -52
- package/lib/routes/socialbeta/hunt.js +0 -29
- package/lib/routes/soomal/topics.js +0 -130
- package/lib/routes/stork/keyword.js +0 -58
- package/lib/routes/tahui/rptlist.js +0 -48
- package/lib/routes/tam/forecast.js +0 -53
- package/lib/routes/tanwu/products.js +0 -27
- package/lib/routes/tencent/bigdata/index.js +0 -53
- package/lib/routes/tencent/bugly/changelog.js +0 -49
- package/lib/routes/tencent/egame/room.js +0 -52
- package/lib/routes/tencent/gameinstitute/community.js +0 -60
- package/lib/routes/tencent/guyu/channel.js +0 -64
- package/lib/routes/tencent/video/playlist.js +0 -46
- package/lib/routes/tencent/wechat/miniprogram/plugins.js +0 -54
- package/lib/routes/thrillist/index.js +0 -67
- package/lib/routes/tianya/comments.js +0 -41
- package/lib/routes/tianya/index.js +0 -32
- package/lib/routes/tianya/user.js +0 -34
- package/lib/routes/tssstatus/index.js +0 -35
- package/lib/routes/tuicool/mags.js +0 -41
- package/lib/routes/uisdc/news.js +0 -34
- package/lib/routes/uisdc/talk.js +0 -58
- package/lib/routes/uisdc/topic.js +0 -55
- package/lib/routes/uisdc/zt.js +0 -65
- 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/universities/harvard/health/blog.js +0 -51
- package/lib/routes/universities/whu/cs.js +0 -38
- package/lib/routes/universities/whu/news.js +0 -128
- package/lib/routes/vgtime/keyword.js +0 -46
- package/lib/routes/vgtime/news.js +0 -52
- package/lib/routes/vgtime/release.js +0 -20
- package/lib/routes/voa/day-photos.js +0 -54
- package/lib/routes/vuevideo/user.js +0 -60
- package/lib/routes/wanwansub/index.js +0 -57
- package/lib/routes/wanwansub/info.js +0 -44
- package/lib/routes/weforum/report.js +0 -56
- package/lib/routes/weseepro/circle.js +0 -38
- package/lib/routes/weseepro/newest-direct.js +0 -69
- package/lib/routes/weseepro/newest.js +0 -69
- package/lib/routes/westore/new.js +0 -40
- package/lib/routes/whalegogo/home.js +0 -43
- package/lib/routes/whalegogo/portal.js +0 -57
- package/lib/routes/wikihow/category.js +0 -34
- package/lib/routes/wikihow/index.js +0 -32
- package/lib/routes/wineyun/index.js +0 -36
- package/lib/routes/wired/tag.js +0 -31
- package/lib/routes/wolley/host.js +0 -39
- package/lib/routes/wolley/index.js +0 -47
- package/lib/routes/wolley/user.js +0 -38
- package/lib/routes/wukong/user.js +0 -93
- 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/xici/index.js +0 -33
- package/lib/routes/xinquji/internal.js +0 -15
- package/lib/routes/xinquji/today.js +0 -15
- package/lib/routes/xposed/module.js +0 -36
- package/lib/routes/yahoo-jp-tv/index.js +0 -21
- package/lib/routes/yicas/blog.js +0 -52
- package/lib/routes/yidoutang/index.js +0 -33
- package/lib/routes/zcfy/hot.js +0 -34
- package/lib/routes/zcfy/index.js +0 -34
- package/lib/routes/zfrontier/board_postlist.js +0 -36
- package/lib/routes/zfrontier/postlist.js +0 -33
- package/lib/routes/zhanqi/room.js +0 -37
- package/lib/routes/zhilian/index.js +0 -78
- package/lib/routes/zhutix/latest.js +0 -41
- package/lib/routes/zimuxia/index.js +0 -56
- package/lib/routes/zimuxia/portfolio.js +0 -39
- package/lib/routes/zimuzu/resource.js +0 -19
- package/lib/routes/zimuzu/top.js +0 -27
- package/lib/routes/ziroom/room.js +0 -55
- package/lib/routes/zzz/index.js +0 -59
- package/lib/v2/2047/index.js +0 -55
- package/lib/v2/2047/maintainer.js +0 -3
- package/lib/v2/2047/radar.js +0 -13
- package/lib/v2/2047/router.js +0 -3
- package/lib/v2/35photo/actual.js +0 -7
- package/lib/v2/35photo/author.js +0 -9
- package/lib/v2/35photo/genre.js +0 -10
- package/lib/v2/35photo/interesting.js +0 -7
- package/lib/v2/35photo/maintainer.js +0 -8
- package/lib/v2/35photo/map.js +0 -7
- package/lib/v2/35photo/new.js +0 -7
- package/lib/v2/35photo/radar.js +0 -43
- package/lib/v2/35photo/router.js +0 -8
- package/lib/v2/35photo/utils.js +0 -57
- package/lib/v2/agirls/topic.js +0 -44
- package/lib/v2/aliyundrive/files.js +0 -59
- package/lib/v2/aliyundrive/maintainer.js +0 -3
- package/lib/v2/aliyundrive/radar.js +0 -13
- package/lib/v2/aliyundrive/router.js +0 -3
- package/lib/v2/allrecode/index.js +0 -65
- package/lib/v2/allrecode/maintainer.js +0 -5
- package/lib/v2/allrecode/news.js +0 -35
- package/lib/v2/allrecode/radar.js +0 -25
- package/lib/v2/allrecode/router.js +0 -4
- package/lib/v2/appledaily/index.js +0 -65
- package/lib/v2/appledaily/maintainer.js +0 -3
- package/lib/v2/appledaily/radar.js +0 -157
- package/lib/v2/appledaily/router.js +0 -3
- package/lib/v2/appstore/gofans.js +0 -34
- package/lib/v2/appstore/update.js +0 -37
- package/lib/v2/ash-maurya/index.js +0 -54
- package/lib/v2/ash-maurya/maintainer.js +0 -3
- package/lib/v2/ash-maurya/radar.js +0 -13
- package/lib/v2/ash-maurya/router.js +0 -3
- package/lib/v2/audiobar/latest.js +0 -53
- package/lib/v2/audiobar/maintainer.js +0 -3
- package/lib/v2/audiobar/radar.js +0 -13
- package/lib/v2/audiobar/router.js +0 -3
- package/lib/v2/baijing/index.js +0 -54
- package/lib/v2/baijing/maintainer.js +0 -3
- package/lib/v2/baijing/radar.js +0 -22
- package/lib/v2/baijing/router.js +0 -3
- package/lib/v2/bilibili/blackboard.js +0 -31
- package/lib/v2/bilibili/channel.js +0 -31
- package/lib/v2/bilibili/online.js +0 -25
- package/lib/v2/bilibili/topic.js +0 -50
- package/lib/v2/bilibili/video-all.js +0 -78
- package/lib/v2/blockbeats/index.js +0 -43
- package/lib/v2/blockbeats/radar.js +0 -19
- package/lib/v2/blockbeats/router.js +0 -3
- package/lib/v2/cctv/special.js +0 -110
- package/lib/v2/chinacef/experts.js +0 -38
- package/lib/v2/chinacef/hot.js +0 -38
- package/lib/v2/chinacef/index.js +0 -39
- package/lib/v2/chinacef/maintainer.js +0 -5
- package/lib/v2/chinacef/radar.js +0 -25
- package/lib/v2/chinacef/router.js +0 -5
- package/lib/v2/chinacef/templates/description.art +0 -1
- package/lib/v2/chinacef/utils.js +0 -55
- package/lib/v2/chinafactcheck/templates/description.art +0 -1
- package/lib/v2/clash/maintainer.js +0 -3
- package/lib/v2/clash/premium.js +0 -23
- package/lib/v2/clash/radar.js +0 -13
- package/lib/v2/clash/router.js +0 -3
- package/lib/v2/cntheory/maintainer.js +0 -3
- package/lib/v2/cntheory/paper.js +0 -89
- package/lib/v2/cntheory/radar.js +0 -13
- package/lib/v2/cntheory/router.js +0 -3
- package/lib/v2/cntheory/templates/description.art +0 -2
- package/lib/v2/csc/maintainer.js +0 -3
- package/lib/v2/csc/notice.js +0 -99
- package/lib/v2/csc/radar.js +0 -31
- package/lib/v2/csc/router.js +0 -3
- package/lib/v2/cscse/maintainer.js +0 -3
- package/lib/v2/cscse/radar.js +0 -13
- package/lib/v2/cscse/router.js +0 -3
- package/lib/v2/cscse/tzgg.js +0 -54
- package/lib/v2/dbmv/index.js +0 -64
- package/lib/v2/dbmv/maintainer.js +0 -3
- package/lib/v2/dbmv/radar.js +0 -13
- package/lib/v2/diandong/ddh.js +0 -51
- package/lib/v2/disinformationindex/blog.js +0 -48
- package/lib/v2/disinformationindex/maintainer.js +0 -4
- package/lib/v2/disinformationindex/radar.js +0 -19
- package/lib/v2/disinformationindex/research.js +0 -45
- package/lib/v2/disinformationindex/router.js +0 -4
- package/lib/v2/disinformationindex/templates/description.art +0 -7
- package/lib/v2/eastday/find.js +0 -49
- package/lib/v2/economist/download.js +0 -30
- package/lib/v2/economist/gre-vocabulary.js +0 -19
- package/lib/v2/eet-china/maintainer.js +0 -4
- package/lib/v2/eet-china/mp/index.js +0 -10
- package/lib/v2/eet-china/mp/tags.js +0 -10
- package/lib/v2/eet-china/mp/util.js +0 -67
- package/lib/v2/eet-china/radar.js +0 -24
- package/lib/v2/eet-china/router.js +0 -4
- package/lib/v2/ems/apple.js +0 -42
- package/lib/v2/ems/maintainer.js +0 -4
- package/lib/v2/ems/news.js +0 -21
- package/lib/v2/ems/radar.js +0 -19
- package/lib/v2/ems/router.js +0 -4
- package/lib/v2/ems/templates/apple.art +0 -6
- package/lib/v2/ezone/index.js +0 -70
- package/lib/v2/ezone/radar.js +0 -13
- package/lib/v2/ezone/router.js +0 -3
- package/lib/v2/filmdeepfocus/index.js +0 -58
- package/lib/v2/filmdeepfocus/radar.js +0 -13
- package/lib/v2/filmdeepfocus/router.js +0 -3
- package/lib/v2/firefox/index.js +0 -74
- package/lib/v2/ft/myft.js +0 -44
- package/lib/v2/gaze/maintainer.js +0 -3
- package/lib/v2/gaze/radar.js +0 -13
- package/lib/v2/gaze/router.js +0 -3
- package/lib/v2/gaze/templates/update.art +0 -4
- package/lib/v2/gaze/update.js +0 -27
- package/lib/v2/gocn/util.js +0 -17
- package/lib/v2/good/index.js +0 -53
- package/lib/v2/good/maintainer.js +0 -3
- package/lib/v2/good/radar.js +0 -13
- package/lib/v2/good/router.js +0 -3
- package/lib/v2/google/sites.js +0 -75
- package/lib/v2/google/sitesRecentChanges.js +0 -51
- package/lib/v2/gov/zhengce/zuixin.js +0 -39
- package/lib/v2/gq/maintainer.js +0 -3
- package/lib/v2/gq/radar.js +0 -13
- package/lib/v2/gq/router.js +0 -3
- package/lib/v2/gq/templates/embed-article.art +0 -1
- package/lib/v2/gq/templates/embed-product.art +0 -4
- package/lib/v2/gq/templates/img.art +0 -6
- package/lib/v2/gq/templates/tw.art +0 -3
- package/lib/v2/gq/templates/videoObject.art +0 -6
- package/lib/v2/gq/templates/youtube.art +0 -3
- package/lib/v2/gq/tw/index.js +0 -165
- package/lib/v2/guandian/index.js +0 -37
- package/lib/v2/guandian/maintainer.js +0 -3
- package/lib/v2/guandian/radar.js +0 -13
- package/lib/v2/guandian/router.js +0 -3
- package/lib/v2/guggenheim/exhibitions.js +0 -29
- package/lib/v2/guggenheim/maintainer.js +0 -3
- package/lib/v2/guggenheim/radar.js +0 -11
- package/lib/v2/guggenheim/router.js +0 -3
- package/lib/v2/gz-cmc/index.js +0 -137
- package/lib/v2/gz-cmc/maintainer.js +0 -3
- package/lib/v2/gz-cmc/radar.js +0 -12
- package/lib/v2/gz-cmc/router.js +0 -3
- package/lib/v2/gz-cmc/templates/description.art +0 -3
- package/lib/v2/gzh360/_README +0 -1
- package/lib/v2/gzh360/category.js +0 -8
- package/lib/v2/gzh360/gzh.js +0 -18
- package/lib/v2/gzh360/maintainer.js +0 -4
- package/lib/v2/gzh360/radar.js +0 -19
- package/lib/v2/gzh360/router.js +0 -4
- package/lib/v2/gzh360/universal.js +0 -53
- package/lib/v2/gzh360/utils.js +0 -62
- package/lib/v2/hellobtc/topic.js +0 -43
- package/lib/v2/hjedd/article.js +0 -27
- package/lib/v2/hjedd/hot.js +0 -14
- package/lib/v2/hjedd/latest.js +0 -14
- package/lib/v2/hjedd/maintainer.js +0 -10
- package/lib/v2/hjedd/news.js +0 -14
- package/lib/v2/hjedd/notice.js +0 -14
- package/lib/v2/hjedd/original.js +0 -14
- package/lib/v2/hjedd/radar.js +0 -55
- package/lib/v2/hjedd/router.js +0 -10
- package/lib/v2/hjedd/templates/attachment.art +0 -7
- package/lib/v2/hjedd/top.js +0 -14
- package/lib/v2/hjedd/utils.js +0 -111
- package/lib/v2/hket/index.js +0 -122
- package/lib/v2/hket/radar.js +0 -45
- package/lib/v2/hket/router.js +0 -3
- package/lib/v2/hket/templates/description.art +0 -1
- package/lib/v2/hket/templates/image.art +0 -1
- package/lib/v2/hotchina/index.js +0 -55
- package/lib/v2/hotchina/maintainer.js +0 -5
- package/lib/v2/hotchina/radar.js +0 -25
- package/lib/v2/hotchina/router.js +0 -3
- package/lib/v2/huangz/index.js +0 -29
- package/lib/v2/huangz/maintainer.js +0 -3
- package/lib/v2/huangz/radar.js +0 -13
- package/lib/v2/huangz/router.js +0 -3
- package/lib/v2/huxiu/article.js +0 -33
- package/lib/v2/huxiu/author.js +0 -36
- package/lib/v2/huxiu/templates/brief.art +0 -22
- package/lib/v2/huxiu/templates/img.art +0 -3
- package/lib/v2/huxiu/templates/moment.art +0 -16
- package/lib/v2/huxiu/templates/video.art +0 -7
- package/lib/v2/huxiu/utils.js +0 -154
- package/lib/v2/hyqss/index.js +0 -89
- package/lib/v2/hyqss/maintainer.js +0 -4
- package/lib/v2/hyqss/radar.js +0 -22
- package/lib/v2/hyqss/router.js +0 -3
- package/lib/v2/i-cable/category.js +0 -74
- package/lib/v2/i-cable/maintainer.js +0 -3
- package/lib/v2/i-cable/radar.js +0 -13
- package/lib/v2/i-cable/router.js +0 -3
- package/lib/v2/i-cable/templates/desc.art +0 -8
- package/lib/v2/ibc/maintainer.js +0 -4
- package/lib/v2/ibc/maitta.js +0 -32
- package/lib/v2/ibc/radar.js +0 -19
- package/lib/v2/ibc/radio.js +0 -73
- package/lib/v2/ibc/router.js +0 -4
- package/lib/v2/ibc/templates/description.art +0 -6
- package/lib/v2/independent/maintainer.js +0 -3
- package/lib/v2/independent/ps5-stock-uk.js +0 -27
- package/lib/v2/independent/radar.js +0 -13
- package/lib/v2/independent/router.js +0 -3
- package/lib/v2/islander/maintainer.js +0 -4
- package/lib/v2/islander/radar.js +0 -19
- package/lib/v2/islander/router.js +0 -4
- package/lib/v2/islander/search.js +0 -33
- package/lib/v2/islander/top30event.js +0 -28
- package/lib/v2/jiaoliudao/index.js +0 -35
- package/lib/v2/jiaoliudao/radar.js +0 -13
- package/lib/v2/jiemian/list.js +0 -60
- package/lib/v2/juejin/news.js +0 -25
- package/lib/v2/juejin/shares.js +0 -26
- package/lib/v2/kakuyomu/episode.js +0 -54
- package/lib/v2/kakuyomu/maintainer.js +0 -3
- package/lib/v2/kakuyomu/radar.js +0 -13
- package/lib/v2/kakuyomu/router.js +0 -1
- package/lib/v2/knowmedia/index.js +0 -38
- package/lib/v2/knowmedia/maintainer.js +0 -3
- package/lib/v2/knowmedia/radar.js +0 -31
- package/lib/v2/knowmedia/router.js +0 -3
- package/lib/v2/knowmedia/templates/desc.art +0 -3
- package/lib/v2/kuwaitlocal/index.js +0 -47
- package/lib/v2/kuwaitlocal/maintainer.js +0 -4
- package/lib/v2/kuwaitlocal/radar.js +0 -19
- package/lib/v2/kuwaitlocal/router.js +0 -3
- package/lib/v2/lativ/index.js +0 -42
- package/lib/v2/lativ/maintainer.js +0 -3
- package/lib/v2/lativ/radar.js +0 -13
- package/lib/v2/lativ/router.js +0 -3
- package/lib/v2/lativ/templates/detail.art +0 -9
- package/lib/v2/layer3/maintainer.js +0 -3
- package/lib/v2/layer3/quests.js +0 -37
- package/lib/v2/layer3/radar.js +0 -13
- package/lib/v2/layer3/router.js +0 -3
- package/lib/v2/layer3/templates/description.art +0 -24
- package/lib/v2/lever/index.js +0 -28
- package/lib/v2/lever/maintainer.js +0 -3
- package/lib/v2/lever/radar.js +0 -13
- package/lib/v2/lever/router.js +0 -3
- package/lib/v2/lianxh/index.js +0 -61
- package/lib/v2/lianxh/radar.js +0 -13
- package/lib/v2/lianxh/router.js +0 -3
- package/lib/v2/mcachicago/exhibitions.js +0 -17
- package/lib/v2/mcachicago/maintainer.js +0 -3
- package/lib/v2/mcachicago/radar.js +0 -11
- package/lib/v2/mcachicago/router.js +0 -3
- package/lib/v2/mclaren/index.js +0 -96
- package/lib/v2/mclaren/maintainer.js +0 -3
- package/lib/v2/mclaren/radar.js +0 -29
- package/lib/v2/mclaren/router.js +0 -3
- package/lib/v2/mclaren/templates/desc.art +0 -6
- package/lib/v2/meituclub/latest.js +0 -41
- package/lib/v2/meituclub/maintainer.js +0 -3
- package/lib/v2/meituclub/radar.js +0 -13
- package/lib/v2/meituclub/router.js +0 -3
- package/lib/v2/meituclub/templates/description.art +0 -1
- package/lib/v2/miris/blog.js +0 -19
- package/lib/v2/miris/maintainer.js +0 -3
- package/lib/v2/miris/radar.js +0 -11
- package/lib/v2/miris/router.js +0 -3
- package/lib/v2/mobilism/forums.js +0 -75
- package/lib/v2/mobilism/maintainer.js +0 -4
- package/lib/v2/mobilism/portal.js +0 -54
- package/lib/v2/mobilism/radar.js +0 -23
- package/lib/v2/mobilism/router.js +0 -4
- package/lib/v2/mtime/maintainer.js +0 -3
- package/lib/v2/mtime/news.js +0 -52
- package/lib/v2/mtime/radar.js +0 -13
- package/lib/v2/nbd/article.js +0 -50
- package/lib/v2/nmbxd1/forum.js +0 -58
- package/lib/v2/nmbxd1/maintainer.js +0 -3
- package/lib/v2/nmbxd1/radar.js +0 -13
- package/lib/v2/nmbxd1/router.js +0 -3
- package/lib/v2/nmbxd1/templates/description.art +0 -65
- package/lib/v2/nytimes/author.js +0 -43
- package/lib/v2/pmthinking/index.js +0 -61
- package/lib/v2/pmthinking/maintainer.js +0 -3
- package/lib/v2/pmthinking/radar.js +0 -13
- package/lib/v2/pmthinking/router.js +0 -3
- package/lib/v2/pmthinking/templates/description.art +0 -4
- package/lib/v2/polkadot/home.js +0 -34
- package/lib/v2/polkadot/maintainer.js +0 -3
- package/lib/v2/polkadot/radar.js +0 -13
- package/lib/v2/polkadot/router.js +0 -3
- package/lib/v2/polkaworld/home.js +0 -24
- package/lib/v2/polkaworld/maintainer.js +0 -3
- package/lib/v2/polkaworld/radar.js +0 -13
- package/lib/v2/polkaworld/router.js +0 -3
- package/lib/v2/prestige-av/maintainer.js +0 -3
- package/lib/v2/prestige-av/radar.js +0 -18
- package/lib/v2/prestige-av/router.js +0 -3
- package/lib/v2/prestige-av/series.js +0 -42
- package/lib/v2/qdaily/index.js +0 -87
- package/lib/v2/qdaily/maintainer.js +0 -3
- package/lib/v2/qdaily/radar.js +0 -25
- package/lib/v2/qdaily/router.js +0 -3
- package/lib/v2/qdaily/templates/article.art +0 -5
- package/lib/v2/qianp/maintainer.js +0 -3
- package/lib/v2/qianp/news.js +0 -48
- package/lib/v2/qianp/radar.js +0 -13
- package/lib/v2/qianp/router.js +0 -3
- package/lib/v2/qidiantu/index.js +0 -87
- package/lib/v2/qidiantu/maintainer.js +0 -4
- package/lib/v2/qidiantu/radar.js +0 -19
- package/lib/v2/qidiantu/router.js +0 -3
- package/lib/v2/qq/live.js +0 -36
- package/lib/v2/radiofrance/geopolitique.js +0 -33
- package/lib/v2/radiofrance/maintainer.js +0 -3
- package/lib/v2/radiofrance/radar.js +0 -13
- package/lib/v2/radiofrance/router.js +0 -3
- package/lib/v2/radiofrance/templates/article.art +0 -6
- package/lib/v2/reuters/migration_prompt.js +0 -3
- package/lib/v2/rsshub/sponsors.js +0 -47
- package/lib/v2/secnews/index.js +0 -27
- package/lib/v2/secnews/maintainer.js +0 -3
- package/lib/v2/secnews/radar.js +0 -13
- package/lib/v2/secnews/router.js +0 -3
- package/lib/v2/shuiguopai/index.js +0 -80
- package/lib/v2/shuiguopai/maintainer.js +0 -3
- package/lib/v2/shuiguopai/radar.js +0 -13
- package/lib/v2/shuiguopai/router.js +0 -3
- package/lib/v2/shuiguopai/templates/description.art +0 -8
- package/lib/v2/taiwannews/hot.js +0 -52
- package/lib/v2/taiwannews/maintainer.js +0 -3
- package/lib/v2/taiwannews/radar.js +0 -13
- package/lib/v2/taiwannews/router.js +0 -3
- package/lib/v2/tencent/cloud/column.js +0 -51
- package/lib/v2/twitter/web-api/twitter-got.js +0 -113
- package/lib/v2/twreporter/category.js +0 -40
- package/lib/v2/twreporter/photography.js +0 -46
- package/lib/v2/verse/articles.js +0 -42
- package/lib/v2/verse/maintainer.js +0 -3
- package/lib/v2/verse/radar.js +0 -13
- package/lib/v2/verse/router.js +0 -3
- package/lib/v2/vlive/index.js +0 -71
- package/lib/v2/vlive/maintainer.js +0 -3
- package/lib/v2/vlive/radar.js +0 -13
- package/lib/v2/vlive/router.js +0 -3
- package/lib/v2/vlive/templates/post.art +0 -8
- package/lib/v2/vlive/templates/video.art +0 -3
- package/lib/v2/vmware/flings.js +0 -59
- package/lib/v2/vmware/maintainer.js +0 -3
- package/lib/v2/vmware/radar.js +0 -13
- package/lib/v2/vmware/router.js +0 -3
- package/lib/v2/wangqiutiyu/anchor.js +0 -42
- package/lib/v2/wangqiutiyu/maintainer.js +0 -3
- package/lib/v2/wangqiutiyu/radar.js +0 -13
- package/lib/v2/wangqiutiyu/router.js +0 -3
- package/lib/v2/watchout/index.js +0 -51
- package/lib/v2/watchout/maintainer.js +0 -3
- package/lib/v2/watchout/radar.js +0 -13
- package/lib/v2/watchout/router.js +0 -3
- package/lib/v2/whoscall/index.js +0 -55
- package/lib/v2/whoscall/maintainer.js +0 -5
- package/lib/v2/whoscall/radar.js +0 -25
- package/lib/v2/whoscall/router.js +0 -3
- package/lib/v2/woshipm/bookmarks.js +0 -34
- package/lib/v2/woshipm/latest.js +0 -27
- package/lib/v2/wp-china/news.js +0 -56
- package/lib/v2/wp-china/radar.js +0 -13
- package/lib/v2/wxkol/maintainer.js +0 -3
- package/lib/v2/wxkol/radar.js +0 -13
- package/lib/v2/wxkol/router.js +0 -3
- package/lib/v2/wxkol/show.js +0 -81
- package/lib/v2/xwlb/index.js +0 -40
- package/lib/v2/xwlb/maintainer.js +0 -4
- package/lib/v2/xwlb/radar.js +0 -13
- package/lib/v2/xwlb/router.js +0 -4
- package/lib/v2/yaohuo/index.js +0 -30
- package/lib/v2/yaohuo/maintainer.js +0 -3
- package/lib/v2/yaohuo/radar.js +0 -13
- package/lib/v2/yaohuo/router.js +0 -3
- package/lib/v2/yunspe/maintainer.js +0 -3
- package/lib/v2/yunspe/newsflash.js +0 -42
- package/lib/v2/yunspe/radar.js +0 -13
- package/lib/v2/yunspe/router.js +0 -3
- package/lib/v2/zooTeam/blog.js +0 -32
- package/lib/v2/zooTeam/maintainer.js +0 -4
- package/lib/v2/zooTeam/radar.js +0 -21
- package/lib/v2/zooTeam/router.js +0 -4
- package/lib/v2/zooTeam/weekly.js +0 -34
- package/lib/v2/zuzhirenshi/index.js +0 -87
- package/lib/v2/zuzhirenshi/maintainer.js +0 -3
- package/lib/v2/zuzhirenshi/radar.js +0 -13
- package/lib/v2/zuzhirenshi/router.js +0 -3
- /package/lib/v2/{ezone โ abc}/maintainer.js +0 -0
- /package/lib/v2/{hket โ bossdesign}/maintainer.js +0 -0
- /package/lib/v2/{dbmv โ bossdesign}/router.js +0 -0
- /package/lib/v2/{mtime โ gamegene}/router.js +0 -0
- /package/lib/{routes โ v2}/gov/moa/moa.js +0 -0
- /package/lib/{routes โ v2}/grubstreet/index.js +0 -0
- /package/lib/v2/{jiaoliudao โ grubstreet}/router.js +0 -0
- /package/lib/{routes โ v2}/hpoi/info.js +0 -0
- /package/lib/v2/{filmdeepfocus โ ianspriggs}/maintainer.js +0 -0
- /package/lib/{routes โ v2}/jianshu/collection.js +0 -0
- /package/lib/{routes โ v2}/jianshu/home.js +0 -0
- /package/lib/{routes โ v2}/jianshu/user.js +0 -0
- /package/lib/v2/{wp-china โ kamen-rider-official}/maintainer.js +0 -0
- /package/lib/v2/{wp-china โ kamen-rider-official}/router.js +0 -0
- /package/lib/{routes โ v2}/metacritic/release.js +0 -0
- /package/lib/v2/{jiaoliudao โ netflav}/maintainer.js +0 -0
- /package/lib/{routes โ v2}/sogou/doodles.js +0 -0
- /package/lib/v2/{blockbeats โ theblockbeats}/maintainer.js +0 -0
- /package/lib/v2/{lianxh โ thoughtco}/maintainer.js +0 -0
- /package/lib/v2/yahoo/news/{index.js โ us/index.js} +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
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 { category = '' } = ctx.params;
|
|
9
|
+
const limit = ctx.query.limit ? parseInt(ctx.query.limit, 10) : 50;
|
|
10
|
+
|
|
11
|
+
const rootUrl = 'https://www.thoughtco.com';
|
|
12
|
+
const currentUrl = new URL(category, rootUrl).href;
|
|
13
|
+
|
|
14
|
+
const { data: response } = await got(currentUrl);
|
|
15
|
+
|
|
16
|
+
const $ = cheerio.load(response);
|
|
17
|
+
|
|
18
|
+
let items = $('a[data-doc-id]')
|
|
19
|
+
.slice(0, limit)
|
|
20
|
+
.toArray()
|
|
21
|
+
.map((item) => {
|
|
22
|
+
item = $(item);
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
title: item.find('span.block-title').text(),
|
|
26
|
+
link: new URL(item.prop('href'), rootUrl).href,
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
items = await Promise.all(
|
|
31
|
+
items.map((item) =>
|
|
32
|
+
ctx.cache.tryGet(item.link, async () => {
|
|
33
|
+
const { data: detailResponse } = await got(item.link);
|
|
34
|
+
|
|
35
|
+
const content = cheerio.load(detailResponse);
|
|
36
|
+
|
|
37
|
+
content('div.adslot').remove();
|
|
38
|
+
content('div.sources-and-citation, .mntl-figure-caption svg').remove();
|
|
39
|
+
content('div.figure-media').each((_, e) => {
|
|
40
|
+
e = $(e);
|
|
41
|
+
|
|
42
|
+
const image = e.find('img');
|
|
43
|
+
|
|
44
|
+
e.replaceWith(
|
|
45
|
+
art(path.join(__dirname, 'templates/description.art'), {
|
|
46
|
+
image: {
|
|
47
|
+
src: image.prop('data-src'),
|
|
48
|
+
width: image.prop('width'),
|
|
49
|
+
height: image.prop('height'),
|
|
50
|
+
},
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
item.title = content('meta[property="og:title"]').prop('content');
|
|
56
|
+
item.description = art(path.join(__dirname, 'templates/description.art'), {
|
|
57
|
+
image: {
|
|
58
|
+
src: content('meta[property="og:image"]').prop('content'),
|
|
59
|
+
},
|
|
60
|
+
description: content('div.article-content').html(),
|
|
61
|
+
});
|
|
62
|
+
item.author = content('meta[name="sailthru.author"]').prop('content');
|
|
63
|
+
item.category = Array.from(
|
|
64
|
+
new Set(
|
|
65
|
+
content('meta[name="parsely-tags"]')
|
|
66
|
+
.prop('content')
|
|
67
|
+
?.split(/,/)
|
|
68
|
+
.map((c) => c.trim())
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
item.pubDate = parseDate(detailResponse.match(/"datePublished": "(.*?)"/)[1]);
|
|
72
|
+
item.updated = parseDate(detailResponse.match(/"dateModified": "(.*?)"/)[1]);
|
|
73
|
+
|
|
74
|
+
return item;
|
|
75
|
+
})
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const author = $('meta[property="og:site_name"]').prop('content');
|
|
80
|
+
const title = $('meta[property="og:title"]').prop('content');
|
|
81
|
+
const icon = new URL($('link[rel="apple-touch-icon-precomposed"]').prop('href'), rootUrl).href;
|
|
82
|
+
|
|
83
|
+
ctx.state.data = {
|
|
84
|
+
item: items,
|
|
85
|
+
title: `${author}${title.startsWith(author) ? '' : ` - ${title}`}`,
|
|
86
|
+
link: currentUrl,
|
|
87
|
+
description: $('meta[property="og:description"]').prop('content'),
|
|
88
|
+
language: $('html').prop('lang'),
|
|
89
|
+
image: $('meta[property="og:image"]').prop('content'),
|
|
90
|
+
icon,
|
|
91
|
+
logo: icon,
|
|
92
|
+
subtitle: $('meta[property="og:title"]').prop('content'),
|
|
93
|
+
author,
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'thoughtco.com': {
|
|
3
|
+
_name: 'ThoughtCo',
|
|
4
|
+
'.': [
|
|
5
|
+
{
|
|
6
|
+
title: 'Category',
|
|
7
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category',
|
|
8
|
+
source: ['/:category'],
|
|
9
|
+
target: (params) => {
|
|
10
|
+
const category = params.category;
|
|
11
|
+
|
|
12
|
+
return `/thoughtco${category ? `/${category}` : ''}`;
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: 'Science, Tech, Math - Science',
|
|
17
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-science-tech-math',
|
|
18
|
+
source: ['/science-4132464'],
|
|
19
|
+
target: '/thoughtco/science-4132464',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: 'Science, Tech, Math - Math',
|
|
23
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-science-tech-math',
|
|
24
|
+
source: ['/math-4133545'],
|
|
25
|
+
target: '/thoughtco/math-4133545',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: 'Science, Tech, Math - Social Sciences',
|
|
29
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-science-tech-math',
|
|
30
|
+
source: ['/social-sciences-4133522'],
|
|
31
|
+
target: '/thoughtco/social-sciences-4133522',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: 'Science, Tech, Math - Computer Science',
|
|
35
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-science-tech-math',
|
|
36
|
+
source: ['/computer-science-4133486'],
|
|
37
|
+
target: '/thoughtco/computer-science-4133486',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: 'Science, Tech, Math - Animals & Nature',
|
|
41
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-science-tech-math',
|
|
42
|
+
source: ['/animals-and-nature-4133421'],
|
|
43
|
+
target: '/thoughtco/animals-and-nature-4133421',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: 'Humanities - History & Culture',
|
|
47
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
48
|
+
source: ['/history-and-culture-4133356'],
|
|
49
|
+
target: '/thoughtco/history-and-culture-4133356',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: 'Humanities - Visual Arts',
|
|
53
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
54
|
+
source: ['/visual-arts-4132957'],
|
|
55
|
+
target: '/thoughtco/visual-arts-4132957',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: 'Humanities - Literature',
|
|
59
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
60
|
+
source: ['/literature-4133251'],
|
|
61
|
+
target: '/thoughtco/literature-4133251',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: 'Humanities - English',
|
|
65
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
66
|
+
source: ['/english-4688281'],
|
|
67
|
+
target: '/thoughtco/english-4688281',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: 'Humanities - Geography',
|
|
71
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
72
|
+
source: ['/geography-4133035'],
|
|
73
|
+
target: '/thoughtco/geography-4133035',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: 'Humanities - Philosophy',
|
|
77
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
78
|
+
source: ['/philosophy-4133025'],
|
|
79
|
+
target: '/thoughtco/philosophy-4133025',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
title: 'Humanities - Issues',
|
|
83
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-humanities',
|
|
84
|
+
source: ['/issues-4133022'],
|
|
85
|
+
target: '/thoughtco/issues-4133022',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: 'Languages - English as a Second Language',
|
|
89
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
90
|
+
source: ['/esl-4133095'],
|
|
91
|
+
target: '/thoughtco/esl-4133095',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: 'Languages - Spanish',
|
|
95
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
96
|
+
source: ['/spanish-4133085'],
|
|
97
|
+
target: '/thoughtco/spanish-4133085',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: 'Languages - French',
|
|
101
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
102
|
+
source: ['/french-4133079'],
|
|
103
|
+
target: '/thoughtco/french-4133079',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: 'Languages - German',
|
|
107
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
108
|
+
source: ['/german-4133073'],
|
|
109
|
+
target: '/thoughtco/german-4133073',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: 'Languages - Italian',
|
|
113
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
114
|
+
source: ['/italian-4133069'],
|
|
115
|
+
target: '/thoughtco/italian-4133069',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
title: 'Languages - Japanese',
|
|
119
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
120
|
+
source: ['/japanese-4133062'],
|
|
121
|
+
target: '/thoughtco/japanese-4133062',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: 'Languages - Mandarin',
|
|
125
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
126
|
+
source: ['/mandarin-4133057'],
|
|
127
|
+
target: '/thoughtco/mandarin-4133057',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
title: 'Languages - Russian',
|
|
131
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-languages',
|
|
132
|
+
source: ['/russian-4175265'],
|
|
133
|
+
target: '/thoughtco/russian-4175265',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
title: 'Resources - For Students & Parents',
|
|
137
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-resources',
|
|
138
|
+
source: ['/for-students-parents-4132588'],
|
|
139
|
+
target: '/thoughtco/for-students-parents-4132588',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
title: 'Resources - For Educators',
|
|
143
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-resources',
|
|
144
|
+
source: ['/for-educators-4132509'],
|
|
145
|
+
target: '/thoughtco/for-educators-4132509',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
title: 'Resources - For Adult Learners',
|
|
149
|
+
docs: 'https://docs.rsshub.app/routes/new-media#thoughtco-category-resources',
|
|
150
|
+
source: ['/for-adult-learners-4132469'],
|
|
151
|
+
target: '/thoughtco/for-adult-learners-4132469',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{{ if image }}
|
|
2
|
+
<figure>
|
|
3
|
+
<img
|
|
4
|
+
{{ if width }}
|
|
5
|
+
width="{{ image.width }}"
|
|
6
|
+
{{ /if }}
|
|
7
|
+
{{ if height }}
|
|
8
|
+
height="{{ image.height }}"
|
|
9
|
+
{{ /if }}
|
|
10
|
+
src="{{ image.src }}">
|
|
11
|
+
</figure>
|
|
12
|
+
{{ /if }}
|
|
13
|
+
|
|
14
|
+
{{ if description }}
|
|
15
|
+
{{@ description }}
|
|
16
|
+
{{ /if }}
|
package/lib/v2/threads/index.js
CHANGED
|
@@ -1,146 +1,6 @@
|
|
|
1
1
|
const got = require('@/utils/got');
|
|
2
|
-
const cheerio = require('cheerio');
|
|
3
2
|
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const profileUrl = (user) => `https://www.threads.net/@${user}`;
|
|
7
|
-
const threadUrl = (code) => `https://www.threads.net/t/${code}`;
|
|
8
|
-
const apiUrl = 'https://www.threads.net/api/graphql';
|
|
9
|
-
const THREADS_QUERY = 6232751443445612;
|
|
10
|
-
const REPLIES_QUERY = 6307072669391286;
|
|
11
|
-
const USER_AGENT = 'Barcelona 289.0.0.77.109 Android';
|
|
12
|
-
|
|
13
|
-
const load = async (url) => {
|
|
14
|
-
// user id fetching needs puppeteer
|
|
15
|
-
const browser = await require('@/utils/puppeteer')();
|
|
16
|
-
const page = await browser.newPage();
|
|
17
|
-
await page.setRequestInterception(true);
|
|
18
|
-
page.on('request', (request) => {
|
|
19
|
-
request.resourceType() === 'document' ? request.continue() : request.abort();
|
|
20
|
-
});
|
|
21
|
-
await page.goto(url, {
|
|
22
|
-
waitUntil: 'domcontentloaded',
|
|
23
|
-
});
|
|
24
|
-
const response = await page.content();
|
|
25
|
-
browser.close();
|
|
26
|
-
|
|
27
|
-
return cheerio.load(response);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const extractTokens = async (user, ctx) => {
|
|
31
|
-
const $ = await load(profileUrl(user));
|
|
32
|
-
const lsd = $('script:contains("LSD"):first')
|
|
33
|
-
.html()
|
|
34
|
-
.match(/"LSD",\[],\{"token":"([a-zA-Z0-9@_-]+)"},/)?.[1];
|
|
35
|
-
|
|
36
|
-
// This needs puppeteer
|
|
37
|
-
const userId = $('script:contains("user_id"):first')
|
|
38
|
-
.html()
|
|
39
|
-
.match(/"user_id":"(\d+)"/)?.[1];
|
|
40
|
-
|
|
41
|
-
ctx.state.json = { lsd, userId };
|
|
42
|
-
return { lsd, userId };
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const makeHeader = (user, lsd) => ({
|
|
46
|
-
Accept: 'application/json',
|
|
47
|
-
Host: 'www.threads.net',
|
|
48
|
-
Origin: 'https://www.threads.net',
|
|
49
|
-
Referer: `https://www.threads.net/@${user}`,
|
|
50
|
-
'User-Agent': USER_AGENT,
|
|
51
|
-
'X-FB-LSD': lsd,
|
|
52
|
-
'X-IG-App-ID': '238260118697367',
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
const hasMedia = (post) => post.image_versions2 || post.carousel_media || post.video_versions;
|
|
56
|
-
const buildMedia = (post) => {
|
|
57
|
-
let html = '';
|
|
58
|
-
|
|
59
|
-
if (!post.carousel_media) {
|
|
60
|
-
const mainImage = post.image_versions2?.candidates?.[0];
|
|
61
|
-
const mainVideo = post.video_versions?.[0];
|
|
62
|
-
if (mainImage) {
|
|
63
|
-
if (!mainVideo) {
|
|
64
|
-
html += `<img src="${mainImage.url}"/>`;
|
|
65
|
-
} else {
|
|
66
|
-
html += `<video controls autoplay loop poster="${mainImage.url}">`;
|
|
67
|
-
html += `<source src="${mainVideo.url}"/>`;
|
|
68
|
-
html += '</video>';
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
} else {
|
|
72
|
-
post.carousel_media.forEach((media) => {
|
|
73
|
-
const firstImage = media.image_versions2?.candidates[0];
|
|
74
|
-
const firstVideo = media.video_versions?.[0];
|
|
75
|
-
if (!firstVideo) {
|
|
76
|
-
html += `<img src="${firstImage.url}"/>`;
|
|
77
|
-
} else {
|
|
78
|
-
html += `<video controls autoplay loop poster="${firstImage.url}">`;
|
|
79
|
-
html += `<source src="${firstVideo.url}"/>`;
|
|
80
|
-
html += '</video>';
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return html;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const buildContent = (item, options) => {
|
|
89
|
-
let title = '';
|
|
90
|
-
let description = '';
|
|
91
|
-
const quotedPost = item.post.text_post_app_info?.share_info?.quoted_post;
|
|
92
|
-
const repostedPost = item.post.text_post_app_info?.share_info?.reposted_post;
|
|
93
|
-
const isReply = item.post.text_post_app_info?.reply_to_author;
|
|
94
|
-
const embededPost = quotedPost ?? repostedPost;
|
|
95
|
-
|
|
96
|
-
if (options.showAuthorInTitle) {
|
|
97
|
-
title += `@${item.post.user?.username}: `;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (options.showAuthorInDesc) {
|
|
101
|
-
description += '<p>';
|
|
102
|
-
if (options.showAuthorAvatarInDesc) {
|
|
103
|
-
description += `<img src="${item.post.user?.profile_pic_url}" width="48px" height="48px"> `;
|
|
104
|
-
}
|
|
105
|
-
description += `<strong>@${item.post.user?.username}</strong>`;
|
|
106
|
-
if (embededPost) {
|
|
107
|
-
description += options.showEmojiForQuotesAndReply ? ' ๐' : ' quoted';
|
|
108
|
-
} else if (isReply) {
|
|
109
|
-
description += options.showEmojiForQuotesAndReply ? ' โฉ๏ธ' : ' replied';
|
|
110
|
-
}
|
|
111
|
-
description += ':</p>';
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (item.post.caption?.text) {
|
|
115
|
-
title += item.post.caption?.text;
|
|
116
|
-
description += `<p>${item.post.caption?.text}</p>`;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (hasMedia(item.post)) {
|
|
120
|
-
description += `<p>${buildMedia(item.post)}</p>`;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (embededPost) {
|
|
124
|
-
if (options.showQuotedInTitle) {
|
|
125
|
-
title += options.showEmojiForQuotesAndReply ? ' ๐ ' : ' QT: ';
|
|
126
|
-
title += `@${embededPost.user?.username}: `;
|
|
127
|
-
title += `"${embededPost.caption?.text}"`;
|
|
128
|
-
}
|
|
129
|
-
description += '<blockquote>';
|
|
130
|
-
description += `<p>${embededPost.caption?.text}</p>`;
|
|
131
|
-
if (hasMedia(embededPost)) {
|
|
132
|
-
description += `<p>${buildMedia(embededPost)}</p>`;
|
|
133
|
-
}
|
|
134
|
-
description += 'โ ';
|
|
135
|
-
if (options.showQuotedAuthorAvatarInDesc) {
|
|
136
|
-
description += `<img src="${embededPost.user?.profile_pic_url}" width="24px" height="24px"> `;
|
|
137
|
-
}
|
|
138
|
-
description += `@${embededPost.user?.username} โ `;
|
|
139
|
-
description += `<a href="${threadUrl(embededPost.code)}">${dayjs(embededPost.taken_at, 'X').toString()}</a>`;
|
|
140
|
-
description += '</blockquote>';
|
|
141
|
-
}
|
|
142
|
-
return { title, description };
|
|
143
|
-
};
|
|
3
|
+
const { PROFILE_QUERY, REPLIES_QUERY, THREADS_QUERY, apiUrl, threadUrl, profileUrl, extractTokens, makeHeader, buildContent } = require('./utils');
|
|
144
4
|
|
|
145
5
|
module.exports = async (ctx) => {
|
|
146
6
|
const { user, routeParams } = ctx.params;
|
|
@@ -159,9 +19,17 @@ module.exports = async (ctx) => {
|
|
|
159
19
|
replies: params.get('replies') ?? false,
|
|
160
20
|
};
|
|
161
21
|
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
22
|
+
const { data: profileResponse } = await got.post(apiUrl, {
|
|
23
|
+
headers: makeHeader(user, lsd),
|
|
24
|
+
form: {
|
|
25
|
+
lsd,
|
|
26
|
+
variables: JSON.stringify({ userID: userId }),
|
|
27
|
+
doc_id: PROFILE_QUERY,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const { data: threadsResponse, request: threadsRequest } = await got.post(apiUrl, {
|
|
32
|
+
headers: makeHeader(user, lsd),
|
|
165
33
|
form: {
|
|
166
34
|
lsd,
|
|
167
35
|
variables: JSON.stringify({ userID: userId }),
|
|
@@ -169,13 +37,14 @@ module.exports = async (ctx) => {
|
|
|
169
37
|
},
|
|
170
38
|
});
|
|
171
39
|
|
|
40
|
+
ctx.state.json.profileData = profileResponse;
|
|
172
41
|
ctx.state.json.request = {
|
|
173
|
-
headers:
|
|
174
|
-
body:
|
|
42
|
+
headers: threadsRequest.options.headers,
|
|
43
|
+
body: threadsRequest.options.body,
|
|
175
44
|
};
|
|
176
45
|
|
|
177
|
-
const
|
|
178
|
-
const threads =
|
|
46
|
+
const userData = profileResponse?.data?.userData?.user || {};
|
|
47
|
+
const threads = threadsResponse?.data?.mediaData?.threads || [];
|
|
179
48
|
|
|
180
49
|
const items = threads.flatMap((thread) =>
|
|
181
50
|
thread.thread_items
|
|
@@ -195,9 +64,10 @@ module.exports = async (ctx) => {
|
|
|
195
64
|
ctx.state.json.items = items;
|
|
196
65
|
|
|
197
66
|
ctx.state.data = {
|
|
198
|
-
title:
|
|
67
|
+
title: `${userData.full_name} (@${userData.username}) on Threads`,
|
|
199
68
|
link: profileUrl(user),
|
|
200
|
-
|
|
69
|
+
image: userData.hd_profile_pic_versions?.sort((a, b) => b.width - a.width)[0].url ?? userData.profile_pic_url,
|
|
70
|
+
description: userData.biography,
|
|
201
71
|
item: items,
|
|
202
72
|
};
|
|
203
73
|
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const dayjs = require('dayjs');
|
|
4
|
+
|
|
5
|
+
const profileUrl = (user) => `https://www.threads.net/@${user}`;
|
|
6
|
+
const threadUrl = (code) => `https://www.threads.net/t/${code}`;
|
|
7
|
+
|
|
8
|
+
const apiUrl = 'https://www.threads.net/api/graphql';
|
|
9
|
+
const PROFILE_QUERY = 23996318473300828;
|
|
10
|
+
const THREADS_QUERY = 6232751443445612;
|
|
11
|
+
const REPLIES_QUERY = 6307072669391286;
|
|
12
|
+
const USER_AGENT = 'Barcelona 289.0.0.77.109 Android';
|
|
13
|
+
const appId = '238260118697367';
|
|
14
|
+
|
|
15
|
+
const extractTokens = async (user, ctx) => {
|
|
16
|
+
const { data: response } = await got(profileUrl(user), {
|
|
17
|
+
headers: {
|
|
18
|
+
'User-Agent': USER_AGENT,
|
|
19
|
+
'X-IG-App-ID': appId,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
const $ = cheerio.load(response);
|
|
23
|
+
|
|
24
|
+
const data = $('script:contains("LSD"):first').text();
|
|
25
|
+
|
|
26
|
+
const lsd = data.match(/"LSD",\[],\{"token":"([a-zA-Z0-9@_-]+)"\},/)?.[1];
|
|
27
|
+
|
|
28
|
+
const userId = data.match(/\{"user_id":"(\d+)"\},/)?.[1];
|
|
29
|
+
|
|
30
|
+
ctx.state.json = { lsd, userId };
|
|
31
|
+
return { lsd, userId };
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const makeHeader = (user, lsd) => ({
|
|
35
|
+
Accept: 'application/json',
|
|
36
|
+
Host: 'www.threads.net',
|
|
37
|
+
Origin: 'https://www.threads.net',
|
|
38
|
+
Referer: profileUrl(user),
|
|
39
|
+
'User-Agent': USER_AGENT,
|
|
40
|
+
'X-FB-LSD': lsd,
|
|
41
|
+
'X-IG-App-ID': appId,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const hasMedia = (post) => post.image_versions2 || post.carousel_media || post.video_versions;
|
|
45
|
+
const buildMedia = (post) => {
|
|
46
|
+
let html = '';
|
|
47
|
+
|
|
48
|
+
if (!post.carousel_media) {
|
|
49
|
+
const mainImage = post.image_versions2?.candidates?.[0];
|
|
50
|
+
const mainVideo = post.video_versions?.[0];
|
|
51
|
+
if (mainImage) {
|
|
52
|
+
if (!mainVideo) {
|
|
53
|
+
html += `<img src="${mainImage.url}"/>`;
|
|
54
|
+
} else {
|
|
55
|
+
html += `<video controls autoplay loop poster="${mainImage.url}">`;
|
|
56
|
+
html += `<source src="${mainVideo.url}"/>`;
|
|
57
|
+
html += '</video>';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
post.carousel_media.forEach((media) => {
|
|
62
|
+
const firstImage = media.image_versions2?.candidates[0];
|
|
63
|
+
const firstVideo = media.video_versions?.[0];
|
|
64
|
+
if (!firstVideo) {
|
|
65
|
+
html += `<img src="${firstImage.url}"/>`;
|
|
66
|
+
} else {
|
|
67
|
+
html += `<video controls autoplay loop poster="${firstImage.url}">`;
|
|
68
|
+
html += `<source src="${firstVideo.url}"/>`;
|
|
69
|
+
html += '</video>';
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return html;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const buildContent = (item, options) => {
|
|
78
|
+
let title = '';
|
|
79
|
+
let description = '';
|
|
80
|
+
const quotedPost = item.post.text_post_app_info?.share_info?.quoted_post;
|
|
81
|
+
const repostedPost = item.post.text_post_app_info?.share_info?.reposted_post;
|
|
82
|
+
const isReply = item.post.text_post_app_info?.reply_to_author;
|
|
83
|
+
const embededPost = quotedPost ?? repostedPost;
|
|
84
|
+
|
|
85
|
+
if (options.showAuthorInTitle) {
|
|
86
|
+
title += `@${item.post.user?.username}: `;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (options.showAuthorInDesc) {
|
|
90
|
+
description += '<p>';
|
|
91
|
+
if (options.showAuthorAvatarInDesc) {
|
|
92
|
+
description += `<img src="${item.post.user?.profile_pic_url}" width="48px" height="48px"> `;
|
|
93
|
+
}
|
|
94
|
+
description += `<strong>@${item.post.user?.username}</strong>`;
|
|
95
|
+
if (embededPost) {
|
|
96
|
+
description += options.showEmojiForQuotesAndReply ? ' ๐' : ' quoted';
|
|
97
|
+
} else if (isReply) {
|
|
98
|
+
description += options.showEmojiForQuotesAndReply ? ' โฉ๏ธ' : ' replied';
|
|
99
|
+
}
|
|
100
|
+
description += ':</p>';
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (item.post.caption?.text) {
|
|
104
|
+
title += item.post.caption?.text;
|
|
105
|
+
description += `<p>${item.post.caption?.text}</p>`;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (hasMedia(item.post)) {
|
|
109
|
+
description += `<p>${buildMedia(item.post)}</p>`;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (embededPost) {
|
|
113
|
+
if (options.showQuotedInTitle) {
|
|
114
|
+
title += options.showEmojiForQuotesAndReply ? ' ๐ ' : ' QT: ';
|
|
115
|
+
title += `@${embededPost.user?.username}: `;
|
|
116
|
+
title += `"${embededPost.caption?.text}"`;
|
|
117
|
+
}
|
|
118
|
+
description += '<blockquote>';
|
|
119
|
+
description += `<p>${embededPost.caption?.text}</p>`;
|
|
120
|
+
if (hasMedia(embededPost)) {
|
|
121
|
+
description += `<p>${buildMedia(embededPost)}</p>`;
|
|
122
|
+
}
|
|
123
|
+
description += 'โ ';
|
|
124
|
+
if (options.showQuotedAuthorAvatarInDesc) {
|
|
125
|
+
description += `<img src="${embededPost.user?.profile_pic_url}" width="24px" height="24px"> `;
|
|
126
|
+
}
|
|
127
|
+
description += `@${embededPost.user?.username} โ `;
|
|
128
|
+
description += `<a href="${threadUrl(embededPost.code)}">${dayjs(embededPost.taken_at, 'X').toString()}</a>`;
|
|
129
|
+
description += '</blockquote>';
|
|
130
|
+
}
|
|
131
|
+
return { title, description };
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
module.exports = {
|
|
135
|
+
apiUrl,
|
|
136
|
+
profileUrl,
|
|
137
|
+
threadUrl,
|
|
138
|
+
PROFILE_QUERY,
|
|
139
|
+
THREADS_QUERY,
|
|
140
|
+
REPLIES_QUERY,
|
|
141
|
+
USER_AGENT,
|
|
142
|
+
extractTokens,
|
|
143
|
+
makeHeader,
|
|
144
|
+
hasMedia,
|
|
145
|
+
buildMedia,
|
|
146
|
+
buildContent,
|
|
147
|
+
};
|
package/lib/v2/thwiki/radar.js
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const config = require('@/config').value;
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const { art } = require('@/utils/render');
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const id = ctx.params.id;
|
|
9
|
+
const link = `https://tophub.today/n/${id}`;
|
|
10
|
+
const response = await got.get(link, {
|
|
11
|
+
headers: {
|
|
12
|
+
Referer: 'https://tophub.today',
|
|
13
|
+
Cookie: config.tophub.cookie,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const $ = cheerio.load(response.data);
|
|
17
|
+
const title = $('div.Xc-ec-L.b-L').text().trim();
|
|
18
|
+
const items = $('div.Zd-p-Sc > div:nth-child(1) tr')
|
|
19
|
+
.toArray()
|
|
20
|
+
.map((e) => ({
|
|
21
|
+
title: $(e).find('td.al a').text().trim(),
|
|
22
|
+
link: $(e).find('td.al a').attr('href'),
|
|
23
|
+
heatRate: $(e).find('td:nth-child(3)').text().trim(),
|
|
24
|
+
}));
|
|
25
|
+
const combinedTitles = items.map((item) => item.title).join('');
|
|
26
|
+
const renderRank = art(path.join(__dirname, 'templates/rank.art'), { items });
|
|
27
|
+
|
|
28
|
+
ctx.state.data = {
|
|
29
|
+
title,
|
|
30
|
+
link,
|
|
31
|
+
item: [
|
|
32
|
+
{
|
|
33
|
+
title,
|
|
34
|
+
link,
|
|
35
|
+
description: renderRank,
|
|
36
|
+
guid: combinedTitles,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
};
|