rsshub 1.0.0-master.cb1974d → 1.0.0-master.cb7a9fa
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/lib/app.js +2 -0
- package/lib/config.js +10 -2
- package/lib/maintainer.js +1 -1
- package/lib/radar-rules.js +0 -91
- package/lib/router.js +43 -42
- package/lib/routes/hopper/index.js +2 -2
- package/lib/static/logo.png +0 -0
- package/lib/utils/got.js +5 -1
- package/lib/utils/request-wrapper.js +53 -13
- package/lib/utils/wechat-mp.js +1 -1
- package/lib/v2/141jav/index.js +71 -0
- package/lib/v2/141jav/maintainer.js +3 -0
- package/lib/v2/141jav/radar.js +40 -0
- package/lib/v2/141jav/router.js +3 -0
- package/lib/v2/141jav/templates/description.art +47 -0
- package/lib/v2/141ppv/index.js +71 -0
- package/lib/v2/141ppv/maintainer.js +3 -0
- package/lib/v2/141ppv/radar.js +40 -0
- package/lib/v2/141ppv/router.js +3 -0
- package/lib/v2/141ppv/templates/description.art +47 -0
- package/lib/v2/18comic/album.js +3 -1
- package/lib/v2/18comic/blogs.js +3 -1
- package/lib/v2/18comic/index.js +4 -2
- package/lib/v2/18comic/search.js +4 -2
- package/lib/v2/18comic/utils.js +15 -4
- package/lib/v2/2048/index.js +7 -5
- package/lib/v2/36kr/hot-list.js +59 -0
- package/lib/v2/36kr/index.js +3 -30
- package/lib/v2/36kr/maintainer.js +1 -0
- package/lib/v2/36kr/radar.js +6 -0
- package/lib/v2/36kr/router.js +1 -0
- package/lib/v2/36kr/utils.js +36 -0
- package/lib/v2/4ksj/forum.js +128 -0
- package/lib/v2/4ksj/maintainer.js +3 -0
- package/lib/v2/4ksj/radar.js +13 -0
- package/lib/v2/4ksj/router.js +3 -0
- package/lib/v2/4ksj/templates/description.art +56 -0
- package/lib/v2/5eplay/index.js +100 -0
- package/lib/v2/5eplay/maintainer.js +3 -0
- package/lib/v2/5eplay/radar.js +13 -0
- package/lib/v2/5eplay/router.js +3 -0
- package/lib/v2/5eplay/utils.js +35 -0
- package/lib/v2/81/81rc/index.js +62 -0
- package/lib/v2/81/maintainer.js +3 -0
- package/lib/v2/81/radar.js +18 -0
- package/lib/v2/81/router.js +3 -0
- package/lib/v2/aeon/category.js +27 -0
- package/lib/v2/aeon/maintainer.js +4 -0
- package/lib/v2/aeon/radar.js +19 -0
- package/lib/v2/aeon/router.js +4 -0
- package/lib/v2/aeon/templates/essay.art +3 -0
- package/lib/v2/aeon/templates/video.art +10 -0
- package/lib/v2/aeon/type.js +29 -0
- package/lib/v2/aeon/utils.js +50 -0
- package/lib/v2/agefans/detail.js +20 -15
- package/lib/v2/agefans/radar.js +20 -17
- package/lib/v2/agefans/update.js +17 -8
- package/lib/v2/agefans/utils.js +5 -0
- package/lib/v2/agirls/index.js +14 -42
- package/lib/v2/agirls/topic.js +16 -43
- package/lib/v2/agirls/topic_list.js +14 -14
- package/lib/v2/agirls/utils.js +37 -0
- package/lib/v2/aisixiang/column.js +45 -0
- package/lib/v2/aisixiang/maintainer.js +7 -0
- package/lib/v2/aisixiang/radar.js +35 -0
- package/lib/v2/aisixiang/router.js +7 -0
- package/lib/v2/aisixiang/thinktank.js +49 -0
- package/lib/v2/aisixiang/toplist.js +43 -0
- package/lib/v2/aisixiang/utils.js +43 -0
- package/lib/v2/aisixiang/zhuanti.js +45 -0
- package/lib/v2/aliresearch/information.js +57 -0
- package/lib/v2/aliresearch/maintainer.js +3 -0
- package/lib/v2/aliresearch/radar.js +13 -0
- package/lib/v2/aliresearch/router.js +3 -0
- package/lib/v2/alistapart/index.js +19 -0
- package/lib/v2/alistapart/maintainer.js +4 -0
- package/lib/v2/alistapart/radar.js +19 -0
- package/lib/v2/alistapart/router.js +4 -0
- package/lib/v2/alistapart/topic.js +21 -0
- package/lib/v2/alistapart/utils.js +22 -0
- package/lib/v2/altervista/radar.js +13 -0
- package/lib/v2/apnews/topics.js +24 -29
- package/lib/v2/bad/index.js +58 -0
- package/lib/v2/bad/maintainer.js +3 -0
- package/lib/v2/bad/radar.js +13 -0
- package/lib/v2/bad/router.js +3 -0
- package/lib/v2/baozimh/index.js +10 -15
- package/lib/v2/bilibili/cache.js +13 -2
- package/lib/v2/bilibili/channel.js +31 -0
- package/lib/v2/bilibili/followers.js +12 -1
- package/lib/v2/bilibili/followings.js +16 -1
- package/lib/v2/bilibili/hotSearch.js +5 -1
- package/lib/v2/bilibili/liveSearch.js +18 -10
- package/lib/v2/bilibili/maintainer.js +3 -2
- package/lib/v2/bilibili/radar.js +7 -1
- package/lib/v2/bilibili/router.js +3 -2
- package/lib/v2/bilibili/utils.js +2 -3
- package/lib/v2/bilibili/video-all.js +6 -1
- package/lib/v2/bilibili/vsearch.js +2 -1
- package/lib/v2/blizzard/maintainer.js +3 -0
- package/lib/{routes → v2}/blizzard/news.js +14 -15
- package/lib/v2/blizzard/radar.js +13 -0
- package/lib/v2/blizzard/router.js +3 -0
- package/lib/v2/bloomberg/react-renderer.js +225 -0
- package/lib/v2/bloomberg/templates/chart_media.art +21 -0
- package/lib/v2/bloomberg/templates/image_figure.art +1 -1
- package/lib/v2/bloomberg/utils.js +46 -41
- package/lib/v2/bmkg/earthquake.js +29 -0
- package/lib/v2/bmkg/maintainer.js +4 -0
- package/lib/v2/bmkg/news.js +42 -0
- package/lib/v2/bmkg/radar.js +19 -0
- package/lib/v2/bmkg/router.js +4 -0
- package/lib/v2/bsky/keyword.js +22 -0
- package/lib/v2/bsky/maintainer.js +3 -0
- package/lib/v2/bsky/radar.js +13 -0
- package/lib/v2/bsky/router.js +3 -0
- package/lib/v2/caixin/latest.js +5 -5
- package/lib/v2/cas/is/index.js +44 -0
- package/lib/v2/cas/maintainer.js +1 -0
- package/lib/v2/cas/radar.js +12 -0
- package/lib/v2/cas/router.js +1 -0
- package/lib/v2/cbaigui/index.js +100 -0
- package/lib/v2/cbaigui/maintainer.js +3 -0
- package/lib/v2/cbaigui/radar.js +18 -0
- package/lib/v2/cbaigui/router.js +3 -0
- package/lib/v2/cbaigui/templates/figure.art +3 -0
- package/lib/v2/cbaigui/utils.js +18 -0
- package/lib/v2/cnki/author.js +38 -26
- package/lib/v2/cnki/journals.js +28 -32
- package/lib/v2/cnki/maintainer.js +2 -2
- package/lib/v2/comicat/maintainer.js +3 -0
- package/lib/v2/comicat/radar.js +11 -0
- package/lib/v2/comicat/router.js +3 -0
- package/lib/v2/comicat/search.js +42 -0
- package/lib/v2/coolapk/utils.js +3 -4
- package/lib/v2/coomer/utils.js +3 -1
- package/lib/v2/copymanga/comic.js +74 -58
- package/lib/v2/copymanga/templates/comic.art +1 -1
- package/lib/v2/curiouscat/maintainer.js +3 -0
- package/lib/v2/curiouscat/radar.js +13 -0
- package/lib/v2/curiouscat/router.js +3 -0
- package/lib/{routes → v2}/curiouscat/user.js +4 -4
- package/lib/v2/daily/discussed.js +73 -0
- package/lib/v2/daily/index.js +83 -0
- package/lib/v2/daily/maintainer.js +5 -0
- package/lib/v2/daily/radar.js +25 -0
- package/lib/v2/daily/router.js +5 -0
- package/lib/v2/daily/upvoted.js +77 -0
- package/lib/v2/daily/utils.js +39 -0
- package/lib/v2/dblp/maintainer.js +3 -0
- package/lib/v2/dblp/publication.js +70 -0
- package/lib/v2/dblp/radar.js +13 -0
- package/lib/v2/dblp/router.js +3 -0
- package/lib/v2/deadline/maintainer.js +4 -0
- package/lib/v2/deadline/posts.js +53 -0
- package/lib/v2/deadline/radar.js +13 -0
- package/lib/v2/deadline/router.js +3 -0
- package/lib/v2/deadline/templates/desc.art +10 -0
- package/lib/v2/devolverdigital/blog.js +50 -0
- package/lib/v2/devolverdigital/maintainer.js +3 -0
- package/lib/v2/devolverdigital/radar.js +13 -0
- package/lib/v2/devolverdigital/router.js +3 -0
- package/lib/v2/dhu/maintainer.js +3 -0
- package/lib/v2/dhu/news/xsxx.js +42 -0
- package/lib/v2/dhu/radar.js +20 -0
- package/lib/v2/dhu/router.js +3 -0
- package/lib/v2/dhu/yjs/news.js +47 -0
- package/lib/v2/dhu/yjs/zs.js +46 -0
- package/lib/v2/discord/channel.js +8 -8
- package/lib/v2/discord/maintainer.js +1 -1
- package/lib/v2/discord/radar.js +2 -2
- package/lib/v2/discord/router.js +1 -1
- package/lib/v2/dnaindia/category.js +66 -0
- package/lib/v2/dnaindia/maintainer.js +4 -0
- package/lib/v2/dnaindia/radar.js +19 -0
- package/lib/v2/dnaindia/router.js +4 -0
- package/lib/v2/domp4/detail.js +26 -0
- package/lib/v2/dorohedoro/maintainer.js +3 -0
- package/lib/v2/dorohedoro/news.js +69 -0
- package/lib/v2/dorohedoro/radar.js +13 -0
- package/lib/v2/dorohedoro/router.js +3 -0
- package/lib/v2/dxy/maintainer.js +4 -0
- package/lib/v2/dxy/profile/thread.js +82 -0
- package/lib/v2/dxy/radar.js +21 -0
- package/lib/v2/dxy/router.js +4 -0
- package/lib/v2/dxy/special.js +79 -0
- package/lib/v2/dxy/utils.js +72 -0
- package/lib/v2/eastmoney/maintainer.js +1 -0
- package/lib/v2/eastmoney/radar.js +8 -0
- package/lib/v2/eastmoney/report/index.js +59 -0
- package/lib/v2/eastmoney/router.js +2 -1
- package/lib/v2/eet-china/maintainer.js +4 -0
- package/lib/v2/eet-china/mp/index.js +10 -0
- package/lib/v2/eet-china/mp/tags.js +10 -0
- package/lib/v2/eet-china/mp/util.js +67 -0
- package/lib/v2/eet-china/radar.js +24 -0
- package/lib/v2/eet-china/router.js +4 -0
- package/lib/v2/elsevier/journal.js +1 -1
- package/lib/v2/embassy/supportedList.js +4 -4
- package/lib/v2/finviz/news.js +44 -20
- package/lib/v2/firecore/index.js +37 -0
- package/lib/v2/firecore/maintainer.js +3 -0
- package/lib/v2/firecore/radar.js +13 -0
- package/lib/v2/firecore/router.js +3 -0
- package/lib/v2/followin/index.js +35 -0
- package/lib/v2/followin/kol.js +25 -0
- package/lib/v2/followin/maintainer.js +7 -0
- package/lib/v2/followin/news.js +21 -0
- package/lib/v2/followin/radar.js +37 -0
- package/lib/v2/followin/router.js +7 -0
- package/lib/v2/followin/tag.js +44 -0
- package/lib/v2/followin/templates/thread.art +15 -0
- package/lib/v2/followin/topic.js +25 -0
- package/lib/v2/followin/utils.js +84 -0
- package/lib/v2/futunn/main.js +67 -0
- package/lib/v2/futunn/maintainer.js +3 -0
- package/lib/v2/futunn/radar.js +13 -0
- package/lib/v2/futunn/router.js +5 -0
- package/lib/v2/futunn/templates/description.art +6 -0
- package/lib/v2/fx678/kx.js +44 -0
- package/lib/v2/fx678/maintainer.js +3 -0
- package/lib/v2/fx678/radar.js +13 -0
- package/lib/v2/fx678/router.js +3 -0
- package/lib/v2/fzmtr/announcements.js +38 -0
- package/lib/v2/fzmtr/maintainer.js +3 -0
- package/lib/v2/fzmtr/radar.js +11 -0
- package/lib/v2/fzmtr/router.js +3 -0
- package/lib/v2/gcores/collection.js +136 -0
- package/lib/v2/gcores/maintainer.js +1 -0
- package/lib/v2/gcores/radar.js +6 -0
- package/lib/v2/gcores/router.js +1 -0
- package/lib/v2/github/comments.js +65 -3
- package/lib/v2/github/maintainer.js +1 -1
- package/lib/v2/github/radar.js +6 -0
- package/lib/v2/github/router.js +1 -1
- package/lib/v2/globallawreview/index.js +55 -0
- package/lib/v2/globallawreview/maintainer.js +3 -0
- package/lib/v2/globallawreview/radar.js +13 -0
- package/lib/v2/globallawreview/router.js +3 -0
- package/lib/v2/gov/cac/index.js +4 -4
- package/lib/{routes → v2}/gov/chinatax/latest.js +14 -8
- package/lib/v2/gov/maintainer.js +3 -0
- package/lib/v2/gov/news/index.js +10 -5
- package/lib/v2/gov/nifdc/index.js +2 -17
- package/lib/v2/gov/nmpa/generic.js +5 -27
- package/lib/v2/gov/nrta/dsj.js +59 -0
- package/lib/v2/gov/nsfc/index.js +47 -45
- package/lib/v2/gov/nsfc/shortcuts.js +52 -0
- package/lib/v2/gov/radar.js +32 -0
- package/lib/v2/gov/router.js +4 -1
- package/lib/v2/gov/shanghai/wgj/templates/wgj.art +15 -0
- package/lib/v2/gov/shanghai/wgj/wgj.js +72 -0
- package/lib/v2/gov/zhengce/zuixin.js +1 -1
- package/lib/v2/guangzhoumetro/maintainer.js +3 -0
- package/lib/v2/guangzhoumetro/news.js +37 -0
- package/lib/v2/guangzhoumetro/radar.js +11 -0
- package/lib/v2/guangzhoumetro/router.js +3 -0
- package/lib/v2/hacking8/index.js +45 -0
- package/lib/v2/hacking8/maintainer.js +4 -0
- package/lib/v2/hacking8/radar.js +19 -0
- package/lib/v2/hacking8/router.js +4 -0
- package/lib/v2/hacking8/search.js +48 -0
- package/lib/v2/hinatazaka46/blog.js +40 -0
- package/lib/v2/hinatazaka46/maintainer.js +4 -0
- package/lib/v2/hinatazaka46/news.js +51 -0
- package/lib/v2/hinatazaka46/radar.js +19 -0
- package/lib/v2/hinatazaka46/router.js +4 -0
- package/lib/v2/huggingface/daily-papers.js +23 -0
- package/lib/v2/huggingface/maintainer.js +3 -0
- package/lib/v2/huggingface/radar.js +13 -0
- package/lib/v2/huggingface/router.js +3 -0
- package/lib/v2/hunau/gfxy/index.js +11 -0
- package/lib/v2/hunau/ied.js +12 -0
- package/lib/v2/hunau/jwc.js +10 -0
- package/lib/v2/hunau/maintainer.js +6 -0
- package/lib/v2/hunau/radar.js +37 -0
- package/lib/v2/hunau/router.js +6 -0
- package/lib/v2/hunau/utils/categoryTitle.js +31 -0
- package/lib/v2/hunau/utils/common.js +61 -0
- package/lib/v2/hunau/utils/indexPage.js +10 -0
- package/lib/v2/hunau/utils/newsContent.js +47 -0
- package/lib/v2/hunau/xky/index.js +12 -0
- package/lib/v2/huoxian/maintainer.js +3 -0
- package/lib/v2/huoxian/radar.js +11 -0
- package/lib/v2/huoxian/router.js +3 -0
- package/lib/v2/huoxian/zone.js +19 -0
- package/lib/v2/i-cable/category.js +74 -0
- package/lib/v2/i-cable/maintainer.js +3 -0
- package/lib/v2/i-cable/radar.js +13 -0
- package/lib/v2/i-cable/router.js +3 -0
- package/lib/v2/i-cable/templates/desc.art +8 -0
- package/lib/v2/ifeng/feng.js +40 -42
- package/lib/v2/ifeng/radar.js +11 -1
- package/lib/v2/ifeng/templates/video.art +5 -0
- package/lib/v2/ifeng/utils.js +12 -14
- package/lib/v2/instructables/projects.js +1 -1
- package/lib/v2/iwara/index.js +36 -24
- package/lib/v2/jandan/radar.js +6 -4
- package/lib/v2/javdb/lists.js +28 -0
- package/lib/v2/javdb/maintainer.js +5 -4
- package/lib/v2/javdb/radar.js +6 -0
- package/lib/v2/javdb/router.js +5 -4
- package/lib/v2/javdb/search.js +9 -2
- package/lib/v2/javdb/utils.js +6 -5
- package/lib/v2/jike/radar.js +20 -0
- package/lib/v2/jin10/maintainer.js +1 -0
- package/lib/v2/jin10/radar.js +8 -0
- package/lib/v2/jin10/router.js +1 -0
- package/lib/v2/jin10/topic.js +50 -0
- package/lib/v2/keylol/index.js +82 -0
- package/lib/v2/keylol/maintainer.js +3 -0
- package/lib/v2/keylol/radar.js +18 -0
- package/lib/v2/keylol/router.js +3 -0
- package/lib/v2/line/publisher.js +1 -1
- package/lib/v2/line/utils.js +18 -2
- package/lib/v2/luogu/userFeed.js +1 -0
- package/lib/v2/macupdate/app.js +43 -0
- package/lib/v2/macupdate/maintainer.js +3 -0
- package/lib/v2/macupdate/radar.js +13 -0
- package/lib/v2/macupdate/router.js +3 -0
- package/lib/v2/mastodon/maintainer.js +6 -0
- package/lib/v2/mastodon/radar.js +30 -0
- package/lib/v2/mastodon/router.js +6 -0
- package/lib/{routes → v2}/mastodon/timeline_local.js +1 -1
- package/lib/{routes → v2}/mastodon/timeline_remote.js +1 -1
- package/lib/{routes → v2}/mastodon/utils.js +11 -9
- package/lib/v2/mingpao/index.js +16 -6
- package/lib/v2/nasa/apod-cn.js +24 -0
- package/lib/v2/nasa/apod-ncku.js +51 -0
- package/lib/v2/nasa/apod.js +51 -0
- package/lib/v2/nasa/maintainer.js +5 -0
- package/lib/v2/nasa/radar.js +22 -0
- package/lib/v2/nasa/router.js +5 -0
- package/lib/v2/nationalgeographic/latest-stories.js +56 -0
- package/lib/v2/nationalgeographic/maintainer.js +3 -0
- package/lib/v2/nationalgeographic/radar.js +13 -0
- package/lib/v2/nationalgeographic/router.js +3 -0
- package/lib/v2/nationalgeographic/templates/stories.art +44 -0
- package/lib/v2/nenu/maintainer.js +4 -0
- package/lib/v2/nenu/radar.js +21 -0
- package/lib/v2/nenu/router.js +4 -0
- package/lib/v2/nenu/sohac.js +60 -0
- package/lib/v2/nenu/yjsy.js +64 -0
- package/lib/v2/nextapple/realtime.js +1 -1
- package/lib/v2/nhentai/util.js +2 -1
- package/lib/v2/nhk/news_web_easy.js +8 -3
- package/lib/v2/nhk/templates/news_web_easy.art +7 -0
- package/lib/v2/nikkei/cn/index.js +2 -2
- package/lib/v2/nju/zcc.js +7 -13
- package/lib/v2/nogizaka46/blog.js +5 -1
- package/lib/v2/nogizaka46/maintainer.js +1 -1
- package/lib/v2/nogizaka46/router.js +1 -1
- package/lib/v2/notateslaapp/maintainer.js +3 -0
- package/lib/v2/notateslaapp/radar.js +13 -0
- package/lib/v2/notateslaapp/router.js +3 -0
- package/lib/{routes/tesla → v2/notateslaapp}/update.js +6 -12
- package/lib/v2/notefolio/maintainer.js +3 -0
- package/lib/v2/notefolio/radar.js +13 -0
- package/lib/v2/notefolio/router.js +3 -0
- package/lib/v2/notefolio/search.js +145 -0
- package/lib/v2/notefolio/templates/search.art +9 -0
- package/lib/v2/notion/database.js +161 -0
- package/lib/v2/notion/maintainer.js +3 -0
- package/lib/v2/notion/radar.js +13 -0
- package/lib/v2/notion/router.js +3 -0
- package/lib/v2/npr/full.js +89 -0
- package/lib/v2/npr/maintainer.js +3 -0
- package/lib/v2/npr/radar.js +11 -0
- package/lib/v2/npr/router.js +3 -0
- package/lib/v2/nytimes/author.js +1 -1
- package/lib/v2/odaily/maintainer.js +1 -0
- package/lib/v2/odaily/radar.js +38 -58
- package/lib/v2/odaily/router.js +1 -0
- package/lib/v2/odaily/search_news.js +26 -0
- package/lib/v2/openai/blog.js +3 -56
- package/lib/v2/openai/common.js +72 -0
- package/lib/v2/openai/maintainer.js +1 -0
- package/lib/v2/openai/radar.js +8 -0
- package/lib/v2/openai/research.js +32 -0
- package/lib/v2/openai/router.js +1 -0
- package/lib/v2/ouc/jwc.js +39 -0
- package/lib/v2/ouc/jwgl.js +42 -0
- package/lib/v2/ouc/maintainer.js +2 -0
- package/lib/v2/ouc/radar.js +19 -3
- package/lib/v2/ouc/router.js +2 -0
- package/lib/v2/picuki/profile.js +96 -116
- package/lib/v2/picuki/templates/video.art +3 -1
- package/lib/v2/picuki/utils.js +7 -2
- package/lib/v2/pixiv/novels.js +4 -1
- package/lib/v2/qidian/chapter.js +14 -18
- package/lib/v2/qidian/maintainer.js +2 -2
- package/lib/v2/qqorw/index.js +77 -0
- package/lib/v2/qqorw/maintainer.js +4 -0
- package/lib/v2/qqorw/radar.js +13 -0
- package/lib/v2/qqorw/router.js +3 -0
- package/lib/v2/radiofrance/geopolitique.js +33 -0
- package/lib/v2/radiofrance/maintainer.js +3 -0
- package/lib/v2/radiofrance/radar.js +13 -0
- package/lib/v2/radiofrance/router.js +3 -0
- package/lib/v2/radiofrance/templates/article.art +6 -0
- package/lib/v2/rattibha/maintainer.js +3 -0
- package/lib/v2/rattibha/radar.js +13 -0
- package/lib/v2/rattibha/router.js +3 -0
- package/lib/v2/rattibha/user.js +45 -0
- package/lib/v2/rawkuma/maintainer.js +3 -0
- package/lib/v2/rawkuma/manga.js +81 -0
- package/lib/v2/rawkuma/radar.js +13 -0
- package/lib/v2/rawkuma/router.js +3 -0
- package/lib/v2/rawkuma/templates/description.art +3 -0
- package/lib/v2/reuters/common.js +48 -18
- package/lib/v2/reuters/investigates.js +1 -1
- package/lib/v2/reuters/maintainer.js +1 -1
- package/lib/v2/reuters/templates/description.art +2 -2
- package/lib/v2/rsshub/maintainer.js +2 -0
- package/lib/v2/rsshub/router.js +2 -2
- package/lib/v2/rsshub/transform/html.js +75 -0
- package/lib/v2/rsshub/transform/json.js +57 -0
- package/lib/v2/runtrail/maintainer.js +4 -0
- package/lib/v2/runtrail/posts.js +34 -0
- package/lib/v2/runtrail/radar.js +13 -0
- package/lib/v2/runtrail/router.js +3 -0
- package/lib/v2/sakurazaka46/blog.js +4 -2
- package/lib/v2/sakurazaka46/maintainer.js +1 -1
- package/lib/v2/sakurazaka46/router.js +1 -1
- package/lib/v2/sdzk/index.js +55 -0
- package/lib/v2/sdzk/maintainer.js +3 -0
- package/lib/v2/sdzk/radar.js +17 -0
- package/lib/v2/sdzk/router.js +3 -0
- package/lib/v2/sec/radar.js +13 -0
- package/lib/v2/sec-in/index.js +19 -0
- package/lib/v2/sec-in/maintainer.js +3 -0
- package/lib/v2/sec-in/radar.js +11 -0
- package/lib/v2/sec-in/router.js +3 -0
- package/lib/v2/sec-wiki/maintainer.js +3 -0
- package/lib/v2/sec-wiki/radar.js +11 -0
- package/lib/v2/sec-wiki/router.js +3 -0
- package/lib/v2/sec-wiki/weekly.js +16 -0
- package/lib/v2/segmentfault/user.js +8 -2
- package/lib/v2/segmentfault/utils.js +34 -0
- package/lib/v2/sehuatang/maintainer.js +1 -0
- package/lib/v2/sehuatang/router.js +1 -0
- package/lib/v2/sehuatang/user.js +113 -0
- package/lib/v2/shcstheatre/maintainer.js +3 -0
- package/lib/v2/shcstheatre/programs.js +39 -0
- package/lib/v2/shcstheatre/radar.js +13 -0
- package/lib/v2/shcstheatre/router.js +3 -0
- package/lib/v2/shcstheatre/templates/description.art +65 -0
- package/lib/v2/shiep/config.js +69 -0
- package/lib/v2/shiep/index.js +13 -34
- package/lib/v2/shiep/radar.js +341 -13
- package/lib/v2/shu/index.js +48 -0
- package/lib/v2/shu/jwb.js +45 -0
- package/lib/v2/shu/maintainer.js +4 -0
- package/lib/v2/shu/radar.js +21 -0
- package/lib/v2/shu/router.js +5 -0
- package/lib/v2/shuiguopai/index.js +11 -7
- package/lib/v2/shuiguopai/templates/description.art +3 -1
- package/lib/v2/sina/chuangshiji.js +17 -0
- package/lib/v2/sina/discovery.js +32 -0
- package/lib/v2/sina/finance/china.js +25 -0
- package/lib/v2/sina/finance/stock/usstock.js +37 -0
- package/lib/v2/sina/maintainer.js +8 -0
- package/lib/v2/sina/radar.js +49 -0
- package/lib/v2/sina/rollnews.js +31 -0
- package/lib/v2/sina/router.js +8 -0
- package/lib/v2/sina/sports.js +43 -0
- package/lib/v2/sina/templates/slide.art +3 -0
- package/lib/v2/sina/templates/video.art +5 -0
- package/lib/v2/sina/utils.js +104 -0
- package/lib/v2/sjtu/gs.js +60 -0
- package/lib/{routes/universities → v2}/sjtu/jwc.js +13 -12
- package/lib/v2/sjtu/maintainer.js +9 -0
- package/lib/v2/sjtu/radar.js +126 -0
- package/lib/v2/sjtu/router.js +9 -0
- package/lib/{routes/universities → v2}/sjtu/seiee/academic.js +4 -5
- package/lib/{routes/universities → v2}/sjtu/seiee/bjwb.js +7 -8
- package/lib/v2/sjtu/seiee/utils.js +40 -0
- package/lib/{routes/universities → v2}/sjtu/seiee/xsb.js +2 -3
- package/lib/v2/sjtu/templates/activity.art +6 -0
- package/lib/{routes/universities → v2}/sjtu/tongqu/activity.js +4 -3
- package/lib/{routes/universities → v2}/sjtu/yzb/zkxx.js +6 -7
- package/lib/v2/smashingmagazine/category.js +68 -0
- package/lib/v2/smashingmagazine/maintainer.js +3 -0
- package/lib/v2/smashingmagazine/radar.js +19 -0
- package/lib/v2/smashingmagazine/router.js +3 -0
- package/lib/v2/spotify/maintainer.js +1 -0
- package/lib/v2/spotify/radar.js +15 -9
- package/lib/v2/spotify/router.js +2 -1
- package/lib/v2/spotify/show.js +43 -0
- package/lib/v2/stbu/jsjxy.js +51 -0
- package/lib/v2/stbu/maintainer.js +4 -0
- package/lib/v2/stbu/radar.js +21 -0
- package/lib/v2/stbu/router.js +4 -0
- package/lib/v2/stbu/xyxw.js +52 -0
- package/lib/v2/stheadline/std/realtime.js +2 -2
- package/lib/v2/stockedge/daily-news.js +29 -0
- package/lib/v2/stockedge/maintainer.js +3 -0
- package/lib/v2/stockedge/radar.js +13 -0
- package/lib/v2/stockedge/router.js +3 -0
- package/lib/v2/stockedge/utils.js +31 -0
- package/lib/v2/storyfm/episodes.js +63 -0
- package/lib/v2/storyfm/maintainer.js +4 -0
- package/lib/v2/storyfm/radar.js +19 -0
- package/lib/v2/storyfm/router.js +4 -0
- package/lib/v2/storyfm/templates/description.art +6 -0
- package/lib/v2/tangshufang/index.js +59 -0
- package/lib/v2/tangshufang/maintainer.js +3 -0
- package/lib/v2/tangshufang/radar.js +13 -0
- package/lib/v2/tangshufang/router.js +3 -0
- package/lib/v2/techpowerup/index.js +69 -0
- package/lib/v2/techpowerup/maintainer.js +5 -0
- package/lib/v2/techpowerup/radar.js +19 -0
- package/lib/v2/techpowerup/review.js +69 -0
- package/lib/v2/techpowerup/router.js +4 -0
- package/lib/v2/techpowerup/utils.js +84 -0
- package/lib/v2/telegram/radar.js +1 -2
- package/lib/v2/tencent/news/author.js +12 -8
- package/lib/v2/thehindu/maintainer.js +3 -0
- package/lib/v2/thehindu/radar.js +13 -0
- package/lib/v2/thehindu/router.js +3 -0
- package/lib/v2/thehindu/topic.js +57 -0
- package/lib/v2/threads/index.js +203 -0
- package/lib/v2/threads/maintainer.js +3 -0
- package/lib/v2/threads/radar.js +13 -0
- package/lib/v2/threads/router.js +3 -0
- package/lib/v2/tiktok/user.js +5 -5
- package/lib/v2/tingshuitz/maintainer.js +1 -0
- package/lib/v2/tingshuitz/radar.js +11 -0
- package/lib/v2/tingshuitz/router.js +1 -0
- package/lib/v2/tingshuitz/shenzhen.js +29 -0
- package/lib/v2/tingshuitz/templates/shenzhen.art +8 -0
- package/lib/v2/tingtingfm/maintainer.js +3 -0
- package/lib/v2/tingtingfm/program.js +104 -0
- package/lib/v2/tingtingfm/radar.js +13 -0
- package/lib/v2/tingtingfm/router.js +3 -0
- package/lib/v2/tingtingfm/templates/audio.art +5 -0
- package/lib/v2/tingtingfm/utils.js +32 -0
- package/lib/v2/twitter/developer-api/user.js +14 -6
- package/lib/v2/twitter/maintainer.js +1 -1
- package/lib/v2/twitter/utils.js +10 -4
- package/lib/v2/twitter/web-api/constants.js +77 -0
- package/lib/v2/twitter/web-api/media.js +1 -1
- package/lib/v2/twitter/web-api/tweet.js +1 -1
- package/lib/v2/twitter/web-api/twitter-api.js +99 -69
- package/lib/v2/twitter/web-api/twitter-got.js +28 -6
- package/lib/v2/twitter/web-api/user.js +1 -1
- package/lib/v2/utgd/category.js +68 -0
- package/lib/v2/utgd/maintainer.js +5 -0
- package/lib/v2/utgd/radar.js +25 -0
- package/lib/v2/utgd/router.js +5 -0
- package/lib/v2/utgd/templates/description.art +7 -0
- package/lib/v2/utgd/timeline.js +54 -0
- package/lib/v2/utgd/topic.js +70 -0
- package/lib/v2/v2rayshare/index.js +22 -0
- package/lib/v2/v2rayshare/maintainer.js +3 -0
- package/lib/v2/v2rayshare/radar.js +13 -0
- package/lib/v2/v2rayshare/router.js +3 -0
- package/lib/v2/wechat/feeddd.js +12 -3
- package/lib/v2/wechat/radar.js +2 -2
- package/lib/v2/wechat/router.js +3 -3
- package/lib/v2/weibo/group.js +93 -0
- package/lib/v2/weibo/keyword.js +1 -10
- package/lib/v2/weibo/maintainer.js +4 -3
- package/lib/v2/weibo/router.js +1 -0
- package/lib/v2/weibo/super_index.js +1 -10
- package/lib/v2/weibo/timeline.js +5 -5
- package/lib/v2/weibo/user.js +2 -8
- package/lib/v2/weibo/utils.js +15 -3
- package/lib/v2/wikinews/index.js +28 -29
- package/lib/v2/winstall/maintainer.js +3 -0
- package/lib/v2/winstall/radar.js +13 -0
- package/lib/v2/winstall/router.js +3 -0
- package/lib/v2/winstall/templates/desc.art +5 -0
- package/lib/v2/winstall/update.js +43 -0
- package/lib/v2/wnacg/index.js +1 -1
- package/lib/v2/wnacg/templates/manga.art +4 -4
- package/lib/v2/wtu/index.js +37 -0
- package/lib/v2/wtu/job.js +80 -0
- package/lib/v2/wtu/maintainer.js +4 -0
- package/lib/v2/wtu/radar.js +22 -0
- package/lib/v2/wtu/router.js +4 -0
- package/lib/v2/wxkol/show.js +4 -3
- package/lib/v2/xboxfan/maintainer.js +3 -0
- package/lib/v2/xboxfan/news.js +45 -0
- package/lib/v2/xboxfan/radar.js +13 -0
- package/lib/v2/xboxfan/router.js +3 -0
- package/lib/v2/xiaohongshu/maintainer.js +1 -1
- package/lib/v2/xiaohongshu/notes.js +16 -0
- package/lib/v2/xiaohongshu/router.js +1 -0
- package/lib/v2/xiaohongshu/util.js +122 -0
- package/lib/{routes → v2}/ximalaya/album.js +20 -19
- package/lib/v2/ximalaya/maintainer.js +4 -0
- package/lib/v2/ximalaya/radar.js +17 -0
- package/lib/v2/ximalaya/router.js +4 -0
- package/lib/{routes → v2}/ximalaya/utils.js +6 -5
- package/lib/v2/xueqiu/radar.js +2 -2
- package/lib/v2/yahoo/news/index.js +19 -20
- package/lib/v2/yangtzeu/dongke.js +60 -0
- package/lib/v2/yangtzeu/maintainer.js +3 -0
- package/lib/v2/yangtzeu/radar.js +18 -0
- package/lib/v2/yangtzeu/router.js +3 -0
- package/lib/v2/yomiuri/maintainer.js +1 -1
- package/lib/v2/yomiuri/news.js +50 -100
- package/lib/v2/yomiuri/radar.js +3 -3
- package/lib/v2/youtube/radar.js +6 -0
- package/lib/v2/youtube/user.js +1 -1
- package/lib/v2/zaobao/util.js +38 -31
- package/lib/v2/zhihu/answers.js +2 -2
- package/lib/v2/zhubai/maintainer.js +1 -0
- package/lib/v2/zhubai/radar.js +7 -0
- package/lib/v2/zhubai/router.js +1 -0
- package/lib/v2/zhubai/templates/description.art +31 -0
- package/lib/v2/zhubai/top20.js +57 -0
- package/lib/v2/zyw/hot.js +63 -0
- package/lib/v2/zyw/maintainer.js +3 -0
- package/lib/v2/zyw/radar.js +16 -0
- package/lib/v2/zyw/router.js +3 -0
- package/lib/views/error.art +7 -3
- package/lib/views/rss.art +1 -1
- package/lib/views/welcome.art +2 -2
- package/package.json +42 -32
- package/lib/routes/141jav/141jav.js +0 -37
- package/lib/routes/141ppv/141ppv.js +0 -37
- package/lib/routes/aeon/category.js +0 -70
- package/lib/routes/aisixiang/column.js +0 -37
- package/lib/routes/aisixiang/ranking.js +0 -37
- package/lib/routes/aisixiang/thinktank.js +0 -40
- package/lib/routes/aisixiang/utils.js +0 -39
- package/lib/routes/futunn/highlights.js +0 -58
- package/lib/routes/fx678/kx.js +0 -44
- package/lib/routes/hinatazaka46/blog.js +0 -38
- package/lib/routes/hinatazaka46/news.js +0 -34
- package/lib/routes/icable/category.js +0 -64
- package/lib/routes/nasa/apod-cn.js +0 -66
- package/lib/routes/nasa/apod-ncku.js +0 -30
- package/lib/routes/nasa/apod.js +0 -30
- package/lib/routes/notefolio/index.js +0 -67
- package/lib/routes/sina/chuangshiji.js +0 -38
- package/lib/routes/sina/discovery.js +0 -52
- package/lib/routes/sina/finance.js +0 -37
- package/lib/routes/sina/rollnews.js +0 -41
- package/lib/routes/sina/sports.js +0 -54
- package/lib/routes/universities/shu/index.js +0 -75
- package/lib/routes/universities/shu/jwc.js +0 -62
- package/lib/routes/universities/sjtu/gs/tzgg.js +0 -31
- package/lib/routes/universities/sjtu/gs/utils.js +0 -64
- package/lib/routes/universities/sjtu/seiee/utils.js +0 -45
- package/lib/routes/universities/wtu/index.js +0 -34
- package/lib/v2/agirls/templates/description.art +0 -1
- /package/lib/{routes → v2}/mastodon/account_id.js +0 -0
- /package/lib/{routes → v2}/mastodon/acct.js +0 -0
- /package/lib/{routes → v2}/storyfm/index.js +0 -0
package/lib/app.js
CHANGED
|
@@ -13,6 +13,7 @@ const cache = require('./middleware/cache');
|
|
|
13
13
|
const parameter = require('./middleware/parameter');
|
|
14
14
|
const template = require('./middleware/template');
|
|
15
15
|
const favicon = require('koa-favicon');
|
|
16
|
+
const serve = require('koa-static');
|
|
16
17
|
const debug = require('./middleware/debug');
|
|
17
18
|
const accessControl = require('./middleware/access-control');
|
|
18
19
|
const antiHotlink = require('./middleware/anti-hotlink');
|
|
@@ -37,6 +38,7 @@ app.proxy = true;
|
|
|
37
38
|
|
|
38
39
|
// favicon
|
|
39
40
|
app.use(favicon(__dirname + '/favicon.png'));
|
|
41
|
+
app.use(serve(__dirname + '/static'));
|
|
40
42
|
|
|
41
43
|
// global error handing
|
|
42
44
|
app.use(onerror);
|
package/lib/config.js
CHANGED
|
@@ -73,6 +73,8 @@ const calculateValue = () => {
|
|
|
73
73
|
auth: envs.PROXY_AUTH,
|
|
74
74
|
url_regex: envs.PROXY_URL_REGEX || '.*',
|
|
75
75
|
},
|
|
76
|
+
proxyStrategy: envs.PROXY_STRATEGY || 'all', // all / on_retry
|
|
77
|
+
reverseProxyUrl: envs.REVERSE_PROXY_URL,
|
|
76
78
|
// auth
|
|
77
79
|
authentication: {
|
|
78
80
|
name: envs.HTTP_BASIC_AUTH_NAME || 'usernam3',
|
|
@@ -234,6 +236,9 @@ const calculateValue = () => {
|
|
|
234
236
|
username: envs.NHENTAI_USERNAME,
|
|
235
237
|
password: envs.NHENTAI_PASSWORD,
|
|
236
238
|
},
|
|
239
|
+
notion: {
|
|
240
|
+
key: envs.NOTION_TOKEN,
|
|
241
|
+
},
|
|
237
242
|
pianyuan: {
|
|
238
243
|
cookie: envs.PIANYUAN_COOKIE,
|
|
239
244
|
},
|
|
@@ -253,6 +258,9 @@ const calculateValue = () => {
|
|
|
253
258
|
saraba1st: {
|
|
254
259
|
cookie: envs.SARABA1ST_COOKIE,
|
|
255
260
|
},
|
|
261
|
+
sehuatang: {
|
|
262
|
+
cookie: envs.SEHUATANG_COOKIE,
|
|
263
|
+
},
|
|
256
264
|
scboy: {
|
|
257
265
|
token: envs.SCBOY_BBS_TOKEN,
|
|
258
266
|
},
|
|
@@ -271,12 +279,12 @@ const calculateValue = () => {
|
|
|
271
279
|
consumer_key: envs.TWITTER_CONSUMER_KEY,
|
|
272
280
|
consumer_secret: envs.TWITTER_CONSUMER_SECRET,
|
|
273
281
|
tokens: twitter_tokens,
|
|
274
|
-
authorization: envs.TWITTER_WEBAPI_AUTHORIZAION
|
|
275
|
-
// reference: https://github.com/dangeredwolf/FixTweet/blob/f3082bbb0d69798687481a605f6760b2eb7558e0/src/constants.ts#L23-L25
|
|
282
|
+
authorization: envs.TWITTER_WEBAPI_AUTHORIZAION && envs.TWITTER_WEBAPI_AUTHORIZAION.split(','),
|
|
276
283
|
},
|
|
277
284
|
weibo: {
|
|
278
285
|
app_key: envs.WEIBO_APP_KEY,
|
|
279
286
|
app_secret: envs.WEIBO_APP_SECRET,
|
|
287
|
+
cookies: envs.WEIBO_COOKIES,
|
|
280
288
|
redirect_url: envs.WEIBO_REDIRECT_URL,
|
|
281
289
|
},
|
|
282
290
|
wenku8: {
|
package/lib/maintainer.js
CHANGED
|
@@ -5,7 +5,7 @@ const { join } = require('path');
|
|
|
5
5
|
// Presence Check
|
|
6
6
|
for (const dir of fs.readdirSync(dirname)) {
|
|
7
7
|
const dirPath = join(dirname, dir);
|
|
8
|
-
if (!fs.existsSync(join(dirPath, 'maintainer.js'))) {
|
|
8
|
+
if (fs.existsSync(join(dirPath, 'router.js')) && !fs.existsSync(join(dirPath, 'maintainer.js'))) {
|
|
9
9
|
throw Error(`No maintainer.js in "${dirPath}".`);
|
|
10
10
|
}
|
|
11
11
|
}
|
package/lib/radar-rules.js
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
'ximalaya.com': {
|
|
3
|
-
_name: '喜马拉雅',
|
|
4
|
-
'.': [
|
|
5
|
-
{
|
|
6
|
-
title: '专辑',
|
|
7
|
-
docs: 'https://docs.rsshub.app/multimedia.html#xi-ma-la-ya',
|
|
8
|
-
source: '/:type/:id',
|
|
9
|
-
target: (params) => {
|
|
10
|
-
if (parseInt(params.id) + '' === params.id) {
|
|
11
|
-
return '/ximalaya/:type/:id/';
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
2
|
'algocasts.io': {
|
|
18
3
|
_name: 'AlgoCasts',
|
|
19
4
|
'.': [
|
|
@@ -789,82 +774,6 @@ module.exports = {
|
|
|
789
774
|
},
|
|
790
775
|
],
|
|
791
776
|
},
|
|
792
|
-
'141jav.com': {
|
|
793
|
-
_name: '141JAV BT',
|
|
794
|
-
'.': [
|
|
795
|
-
{
|
|
796
|
-
title: '今日种子',
|
|
797
|
-
docs: 'https://docs.rsshub.app/multimedia.html#141jav',
|
|
798
|
-
source: '/',
|
|
799
|
-
target: (params, url, document) => {
|
|
800
|
-
const today = document.querySelector('div.card.mb-1.card-overview').getAttribute('data-date').replace(/-/g, '');
|
|
801
|
-
return `/141jav/day/${today}`;
|
|
802
|
-
},
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
title: '今日演员',
|
|
806
|
-
docs: 'https://docs.rsshub.app/multimedia.html#141jav',
|
|
807
|
-
source: '/',
|
|
808
|
-
target: (params, url, document) => {
|
|
809
|
-
const star = document.querySelector('div.card-content > div > a').getAttribute('href');
|
|
810
|
-
return `/141jav${star}`;
|
|
811
|
-
},
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
title: '页面种子',
|
|
815
|
-
docs: 'https://docs.rsshub.app/multimedia.html#141jav',
|
|
816
|
-
source: ['/:type', '/:type/:key', '/:type/:key/:morekey'],
|
|
817
|
-
target: (params, url, document) => {
|
|
818
|
-
const itype = params.morekey === undefined ? params.type : params.type === 'tag' ? 'tag' : 'day';
|
|
819
|
-
let ikey = `${itype === 'day' ? params.type : ''}${params.key || ''}${itype === 'tag' && params.morekey !== undefined ? '%2F' : ''}${params.morekey || ''}`;
|
|
820
|
-
if (ikey === '' && itype === 'tag') {
|
|
821
|
-
ikey = document.querySelector('div.thumbnail.is-inline > a').getAttribute('href').replace('/tag/', '').replace('/', '%2F');
|
|
822
|
-
} else if (ikey === '' && itype === 'actress') {
|
|
823
|
-
ikey = document.querySelector('div.card > a').getAttribute('href').replace('/actress/', '');
|
|
824
|
-
}
|
|
825
|
-
return `/141jav/${itype}/${ikey}`;
|
|
826
|
-
},
|
|
827
|
-
},
|
|
828
|
-
],
|
|
829
|
-
},
|
|
830
|
-
'141ppv.com': {
|
|
831
|
-
_name: '141ppv BT',
|
|
832
|
-
'.': [
|
|
833
|
-
{
|
|
834
|
-
title: '今日种子',
|
|
835
|
-
docs: 'https://docs.rsshub.app/multimedia.html#141pvp',
|
|
836
|
-
source: '/',
|
|
837
|
-
target: (params, url, document) => {
|
|
838
|
-
const today = document.querySelector('div.card.mb-1.card-overview').getAttribute('data-date').replace(/-/g, '');
|
|
839
|
-
return `/141ppv/day/${today}`;
|
|
840
|
-
},
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
title: '今日演员',
|
|
844
|
-
docs: 'https://docs.rsshub.app/multimedia.html#141ppv',
|
|
845
|
-
source: '/',
|
|
846
|
-
target: (params, url, document) => {
|
|
847
|
-
const star = document.querySelector('div.card-content > div > a').getAttribute('href');
|
|
848
|
-
return `/141ppv${star}`;
|
|
849
|
-
},
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
title: '页面种子',
|
|
853
|
-
docs: 'https://docs.rsshub.app/multimedia.html#141ppv',
|
|
854
|
-
source: ['/:type', '/:type/:key', '/:type/:key/:morekey'],
|
|
855
|
-
target: (params, url, document) => {
|
|
856
|
-
const itype = params.morekey === undefined ? params.type : params.type === 'tag' ? 'tag' : 'day';
|
|
857
|
-
let ikey = `${itype === 'day' ? params.type : ''}${params.key || ''}${itype === 'tag' && params.morekey !== undefined ? '%2F' : ''}${params.morekey || ''}`;
|
|
858
|
-
if (ikey === '' && itype === 'tag') {
|
|
859
|
-
ikey = document.querySelector('div.thumbnail.is-inline > a').getAttribute('href').replace('/tag/', '').replace('/', '%2F');
|
|
860
|
-
} else if (ikey === '' && itype === 'actress') {
|
|
861
|
-
ikey = document.querySelector('div.card > a').getAttribute('href').replace('/actress/', '');
|
|
862
|
-
}
|
|
863
|
-
return `/141ppv/${itype}/${ikey}`;
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
],
|
|
867
|
-
},
|
|
868
777
|
'sexinsex.net': {
|
|
869
778
|
_name: 'sexinsex',
|
|
870
779
|
'.': [
|
package/lib/router.js
CHANGED
|
@@ -246,8 +246,8 @@ router.get('/yande.re/post/popular_recent/:period', lazyloadRouteHandler('./rout
|
|
|
246
246
|
// router.get('/3dm/news', lazyloadRouteHandler('./routes/3dm/news_center'));
|
|
247
247
|
|
|
248
248
|
// 喜马拉雅
|
|
249
|
-
router.get('/ximalaya/:type/:id/:all?', lazyloadRouteHandler('./routes/ximalaya/album'));
|
|
250
|
-
router.get('/ximalaya/:type/:id/:all/:shownote?', lazyloadRouteHandler('./routes/ximalaya/album'));
|
|
249
|
+
// router.get('/ximalaya/:type/:id/:all?', lazyloadRouteHandler('./routes/ximalaya/album'));
|
|
250
|
+
// router.get('/ximalaya/:type/:id/:all/:shownote?', lazyloadRouteHandler('./routes/ximalaya/album'));
|
|
251
251
|
|
|
252
252
|
// EZTV
|
|
253
253
|
router.get('/eztv/torrents/:imdb_id', lazyloadRouteHandler('./routes/eztv/imdb'));
|
|
@@ -541,14 +541,14 @@ router.get('/shanghaitech/activity', lazyloadRouteHandler('./routes/universities
|
|
|
541
541
|
router.get('/shanghaitech/sist/activity', lazyloadRouteHandler('./routes/universities/shanghaitech/sist/activity'));
|
|
542
542
|
|
|
543
543
|
// 上海交通大学
|
|
544
|
-
router.get('/sjtu/seiee/academic', lazyloadRouteHandler('./routes/universities/sjtu/seiee/academic'));
|
|
545
|
-
router.get('/sjtu/seiee/bjwb/:type', lazyloadRouteHandler('./routes/universities/sjtu/seiee/bjwb'));
|
|
546
|
-
router.get('/sjtu/seiee/xsb/:type?', lazyloadRouteHandler('./routes/universities/sjtu/seiee/xsb'));
|
|
544
|
+
// router.get('/sjtu/seiee/academic', lazyloadRouteHandler('./routes/universities/sjtu/seiee/academic'));
|
|
545
|
+
// router.get('/sjtu/seiee/bjwb/:type', lazyloadRouteHandler('./routes/universities/sjtu/seiee/bjwb'));
|
|
546
|
+
// router.get('/sjtu/seiee/xsb/:type?', lazyloadRouteHandler('./routes/universities/sjtu/seiee/xsb'));
|
|
547
547
|
|
|
548
|
-
router.get('/sjtu/gs/tzgg/:type?', lazyloadRouteHandler('./routes/universities/sjtu/gs/tzgg'));
|
|
549
|
-
router.get('/sjtu/jwc/:type?', lazyloadRouteHandler('./routes/universities/sjtu/jwc'));
|
|
550
|
-
router.get('/sjtu/tongqu/:type?', lazyloadRouteHandler('./routes/universities/sjtu/tongqu/activity'));
|
|
551
|
-
router.get('/sjtu/yzb/zkxx/:type', lazyloadRouteHandler('./routes/universities/sjtu/yzb/zkxx'));
|
|
548
|
+
// router.get('/sjtu/gs/tzgg/:type?', lazyloadRouteHandler('./routes/universities/sjtu/gs/tzgg'));
|
|
549
|
+
// router.get('/sjtu/jwc/:type?', lazyloadRouteHandler('./routes/universities/sjtu/jwc'));
|
|
550
|
+
// router.get('/sjtu/tongqu/:type?', lazyloadRouteHandler('./routes/universities/sjtu/tongqu/activity'));
|
|
551
|
+
// router.get('/sjtu/yzb/zkxx/:type', lazyloadRouteHandler('./routes/universities/sjtu/yzb/zkxx'));
|
|
552
552
|
|
|
553
553
|
// 江南大学
|
|
554
554
|
router.get('/ju/jwc/:type?', lazyloadRouteHandler('./routes/universities/ju/jwc'));
|
|
@@ -744,8 +744,9 @@ router.get('/zjut/:type', lazyloadRouteHandler('./routes/universities/zjut/index
|
|
|
744
744
|
router.get('/zjut/design/:type', lazyloadRouteHandler('./routes/universities/zjut/design'));
|
|
745
745
|
|
|
746
746
|
// 上海大学
|
|
747
|
-
router.get('/shu/:type?', lazyloadRouteHandler('./routes/universities/shu/index'));
|
|
748
|
-
router.get('/shu/jwc/:type?', lazyloadRouteHandler('./routes/universities/shu/jwc'));
|
|
747
|
+
// router.get('/shu/:type?', lazyloadRouteHandler('./routes/universities/shu/index'));
|
|
748
|
+
// router.get('/shu/jwc/:type?', lazyloadRouteHandler('./routes/universities/shu/jwc'));
|
|
749
|
+
// router.get('/shu/jwb/:type?', lazyloadRouteHandler('./routes/universities/shu/jwc'));
|
|
749
750
|
|
|
750
751
|
// 北京科技大学天津学院
|
|
751
752
|
// router.get('/ustb/tj/news/:type?', lazyloadRouteHandler('./routes/universities/ustb/tj/news'));
|
|
@@ -1247,19 +1248,19 @@ router.get('/fitchratings/site/:type', lazyloadRouteHandler('./routes/fitchratin
|
|
|
1247
1248
|
// router.get('/mpaypass/main/:type?', lazyloadRouteHandler('./routes/mpaypass/main'));
|
|
1248
1249
|
|
|
1249
1250
|
// 新浪科技探索
|
|
1250
|
-
router.get('/sina/discovery/:type', lazyloadRouteHandler('./routes/sina/discovery'));
|
|
1251
|
+
// router.get('/sina/discovery/:type', lazyloadRouteHandler('./routes/sina/discovery'));
|
|
1251
1252
|
|
|
1252
1253
|
// 新浪科技滚动新闻
|
|
1253
|
-
router.get('/sina/rollnews', lazyloadRouteHandler('./routes/sina/rollnews'));
|
|
1254
|
+
// router.get('/sina/rollnews', lazyloadRouteHandler('./routes/sina/rollnews'));
|
|
1254
1255
|
|
|
1255
1256
|
// 新浪体育
|
|
1256
|
-
router.get('/sina/sports/:type', lazyloadRouteHandler('./routes/sina/sports'));
|
|
1257
|
+
// router.get('/sina/sports/:type', lazyloadRouteHandler('./routes/sina/sports'));
|
|
1257
1258
|
|
|
1258
1259
|
// 新浪专栏创事记
|
|
1259
|
-
router.get('/sina/csj', lazyloadRouteHandler('./routes/sina/chuangshiji'));
|
|
1260
|
+
// router.get('/sina/csj', lazyloadRouteHandler('./routes/sina/chuangshiji'));
|
|
1260
1261
|
|
|
1261
1262
|
// 新浪财经-国內
|
|
1262
|
-
router.get('/sina/finance', lazyloadRouteHandler('./routes/sina/finance'));
|
|
1263
|
+
// router.get('/sina/finance', lazyloadRouteHandler('./routes/sina/finance'));
|
|
1263
1264
|
|
|
1264
1265
|
// Animen
|
|
1265
1266
|
router.get('/animen/news/:type', lazyloadRouteHandler('./routes/animen/news'));
|
|
@@ -1297,9 +1298,9 @@ router.get('/whalegogo/home', lazyloadRouteHandler('./routes/whalegogo/home'));
|
|
|
1297
1298
|
router.get('/whalegogo/portal/:type_id/:tagid?', lazyloadRouteHandler('./routes/whalegogo/portal'));
|
|
1298
1299
|
|
|
1299
1300
|
// 爱思想
|
|
1300
|
-
router.get('/aisixiang/column/:id', lazyloadRouteHandler('./routes/aisixiang/column'));
|
|
1301
|
-
router.get('/aisixiang/ranking/:type?/:range?', lazyloadRouteHandler('./routes/aisixiang/ranking'));
|
|
1302
|
-
router.get('/aisixiang/thinktank/:name/:type?', lazyloadRouteHandler('./routes/aisixiang/thinktank'));
|
|
1301
|
+
// router.get('/aisixiang/column/:id', lazyloadRouteHandler('./routes/aisixiang/column'));
|
|
1302
|
+
// router.get('/aisixiang/ranking/:type?/:range?', lazyloadRouteHandler('./routes/aisixiang/ranking'));
|
|
1303
|
+
// router.get('/aisixiang/thinktank/:name/:type?', lazyloadRouteHandler('./routes/aisixiang/thinktank'));
|
|
1303
1304
|
|
|
1304
1305
|
// Hacker News
|
|
1305
1306
|
// router.get('/hackernews/:section/:type?', lazyloadRouteHandler('./routes/hackernews/story'));
|
|
@@ -1576,7 +1577,7 @@ router.get('/asahi/area/:id', lazyloadRouteHandler('./routes/asahi/area'));
|
|
|
1576
1577
|
router.get('/asahi/:genre?/:category?', lazyloadRouteHandler('./routes/asahi/index'));
|
|
1577
1578
|
|
|
1578
1579
|
// 7x24小时快讯
|
|
1579
|
-
router.get('/fx678/kx', lazyloadRouteHandler('./routes/fx678/kx'));
|
|
1580
|
+
// router.get('/fx678/kx', lazyloadRouteHandler('./routes/fx678/kx'));
|
|
1580
1581
|
|
|
1581
1582
|
// SoundCloud
|
|
1582
1583
|
router.get('/soundcloud/tracks/:user', lazyloadRouteHandler('./routes/soundcloud/tracks'));
|
|
@@ -1664,7 +1665,7 @@ router.get('/ningmeng/song', lazyloadRouteHandler('./routes/ningmeng/song'));
|
|
|
1664
1665
|
router.get('/zzz/:category?/:language?', lazyloadRouteHandler('./routes/zzz'));
|
|
1665
1666
|
|
|
1666
1667
|
// AEON
|
|
1667
|
-
router.get('/aeon/:cid', lazyloadRouteHandler('./routes/aeon/category'));
|
|
1668
|
+
// router.get('/aeon/:cid', lazyloadRouteHandler('./routes/aeon/category'));
|
|
1668
1669
|
|
|
1669
1670
|
// AlgoCasts
|
|
1670
1671
|
router.get('/algocasts', lazyloadRouteHandler('./routes/algocasts/all'));
|
|
@@ -1885,9 +1886,9 @@ router.get('/kaiyan/index', lazyloadRouteHandler('./routes/kaiyan/index'));
|
|
|
1885
1886
|
// 坂道系列资讯
|
|
1886
1887
|
// 坂道系列官网新闻
|
|
1887
1888
|
router.get('/keyakizaka46/news', lazyloadRouteHandler('./routes/keyakizaka46/news'));
|
|
1888
|
-
router.get('/hinatazaka46/news', lazyloadRouteHandler('./routes/hinatazaka46/news'));
|
|
1889
|
+
// router.get('/hinatazaka46/news', lazyloadRouteHandler('./routes/hinatazaka46/news'));
|
|
1889
1890
|
router.get('/keyakizaka46/blog', lazyloadRouteHandler('./routes/keyakizaka46/blog'));
|
|
1890
|
-
router.get('/hinatazaka46/blog', lazyloadRouteHandler('./routes/hinatazaka46/blog'));
|
|
1891
|
+
// router.get('/hinatazaka46/blog', lazyloadRouteHandler('./routes/hinatazaka46/blog'));
|
|
1891
1892
|
// router.get('/sakurazaka46/blog', lazyloadRouteHandler('./routes/sakurazaka46/blog'));
|
|
1892
1893
|
|
|
1893
1894
|
// 酷安 migrated to v2
|
|
@@ -1925,7 +1926,7 @@ router.get('/ctfhub/search/:limit?/:form?/:class?/:title?', lazyloadRouteHandler
|
|
|
1925
1926
|
router.get('/liwushuo/index', lazyloadRouteHandler('./routes/liwushuo/index.js'));
|
|
1926
1927
|
|
|
1927
1928
|
// 故事fm
|
|
1928
|
-
router.get('/storyfm/index', lazyloadRouteHandler('./routes/storyfm/index.js'));
|
|
1929
|
+
// router.get('/storyfm/index', lazyloadRouteHandler('./routes/storyfm/index.js'));
|
|
1929
1930
|
|
|
1930
1931
|
// 中国日报
|
|
1931
1932
|
router.get('/chinadaily/english/:category', lazyloadRouteHandler('./routes/chinadaily/english.js'));
|
|
@@ -2281,10 +2282,10 @@ router.get('/755/user/:username', lazyloadRouteHandler('./routes/755/user'));
|
|
|
2281
2282
|
// router.get('/ikea/uk/offer', lazyloadRouteHandler('./routes/ikea/uk/offer'));
|
|
2282
2283
|
|
|
2283
2284
|
// Mastodon
|
|
2284
|
-
router.get('/mastodon/timeline/:site/:only_media?', lazyloadRouteHandler('./routes/mastodon/timeline_local'));
|
|
2285
|
-
router.get('/mastodon/remote/:site/:only_media?', lazyloadRouteHandler('./routes/mastodon/timeline_remote'));
|
|
2286
|
-
router.get('/mastodon/account_id/:site/:account_id/statuses/:only_media?', lazyloadRouteHandler('./routes/mastodon/account_id'));
|
|
2287
|
-
router.get('/mastodon/acct/:acct/statuses/:only_media?', lazyloadRouteHandler('./routes/mastodon/acct'));
|
|
2285
|
+
// router.get('/mastodon/timeline/:site/:only_media?', lazyloadRouteHandler('./routes/mastodon/timeline_local'));
|
|
2286
|
+
// router.get('/mastodon/remote/:site/:only_media?', lazyloadRouteHandler('./routes/mastodon/timeline_remote'));
|
|
2287
|
+
// router.get('/mastodon/account_id/:site/:account_id/statuses/:only_media?', lazyloadRouteHandler('./routes/mastodon/account_id'));
|
|
2288
|
+
// router.get('/mastodon/acct/:acct/statuses/:only_media?', lazyloadRouteHandler('./routes/mastodon/acct'));
|
|
2288
2289
|
|
|
2289
2290
|
// Kernel Aliyun
|
|
2290
2291
|
router.get('/aliyun-kernel/index', lazyloadRouteHandler('./routes/aliyun-kernel/index'));
|
|
@@ -2875,14 +2876,14 @@ router.get('/dcinside/board/:id', lazyloadRouteHandler('./routes/dcinside/board'
|
|
|
2875
2876
|
// 企鹅电竞
|
|
2876
2877
|
router.get('/egameqq/room/:id', lazyloadRouteHandler('./routes/tencent/egame/room'));
|
|
2877
2878
|
|
|
2878
|
-
// 国家税务总局
|
|
2879
|
-
router.get('/gov/chinatax/latest', lazyloadRouteHandler('./routes/gov/chinatax/latest'));
|
|
2879
|
+
// 国家税务总局 migrated to v2
|
|
2880
|
+
// router.get('/gov/chinatax/latest', lazyloadRouteHandler('./routes/gov/chinatax/latest'));
|
|
2880
2881
|
|
|
2881
2882
|
// 荔枝FM
|
|
2882
2883
|
router.get('/lizhi/user/:id', lazyloadRouteHandler('./routes/lizhi/user'));
|
|
2883
2884
|
|
|
2884
2885
|
// 富途牛牛
|
|
2885
|
-
router.get('/futunn/highlights', lazyloadRouteHandler('./routes/futunn/highlights'));
|
|
2886
|
+
// router.get('/futunn/highlights', lazyloadRouteHandler('./routes/futunn/highlights'));
|
|
2886
2887
|
|
|
2887
2888
|
// 即刻 migrated to v2
|
|
2888
2889
|
// router.get('/jike/topic/:id', lazyloadRouteHandler('./routes/jike/topic'));
|
|
@@ -3037,13 +3038,13 @@ router.get('/hfut/tzgg', lazyloadRouteHandler('./routes/universities/hfut/tzgg')
|
|
|
3037
3038
|
router.get('/onejav/:type/:key?', lazyloadRouteHandler('./routes/onejav/one'));
|
|
3038
3039
|
|
|
3039
3040
|
// 141jav
|
|
3040
|
-
router.get('/141jav/:type/:key?', lazyloadRouteHandler('./routes/141jav/141jav'));
|
|
3041
|
+
// router.get('/141jav/:type/:key?', lazyloadRouteHandler('./routes/141jav/141jav'));
|
|
3041
3042
|
|
|
3042
3043
|
// 141ppv
|
|
3043
|
-
router.get('/141ppv/:type/:key?', lazyloadRouteHandler('./routes/141ppv/141ppv'));
|
|
3044
|
+
// router.get('/141ppv/:type/:key?', lazyloadRouteHandler('./routes/141ppv/141ppv'));
|
|
3044
3045
|
|
|
3045
3046
|
// CuriousCat
|
|
3046
|
-
router.get('/curiouscat/user/:id', lazyloadRouteHandler('./routes/curiouscat/user'));
|
|
3047
|
+
// router.get('/curiouscat/user/:id', lazyloadRouteHandler('./routes/curiouscat/user'));
|
|
3047
3048
|
|
|
3048
3049
|
// Telecompaper
|
|
3049
3050
|
// router.get('/telecompaper/news/:caty/:year?/:country?/:type?', lazyloadRouteHandler('./routes/telecompaper/news'));
|
|
@@ -3078,9 +3079,9 @@ router.get('/bioon/latest', lazyloadRouteHandler('./routes/bioon/latest'));
|
|
|
3078
3079
|
router.get('/soomal/topics/:category/:language?', lazyloadRouteHandler('./routes/soomal/topics'));
|
|
3079
3080
|
|
|
3080
3081
|
// NASA
|
|
3081
|
-
router.get('/nasa/apod', lazyloadRouteHandler('./routes/nasa/apod'));
|
|
3082
|
-
router.get('/nasa/apod-ncku', lazyloadRouteHandler('./routes/nasa/apod-ncku'));
|
|
3083
|
-
router.get('/nasa/apod-cn', lazyloadRouteHandler('./routes/nasa/apod-cn'));
|
|
3082
|
+
// router.get('/nasa/apod', lazyloadRouteHandler('./routes/nasa/apod'));
|
|
3083
|
+
// router.get('/nasa/apod-ncku', lazyloadRouteHandler('./routes/nasa/apod-ncku'));
|
|
3084
|
+
// router.get('/nasa/apod-cn', lazyloadRouteHandler('./routes/nasa/apod-cn'));
|
|
3084
3085
|
|
|
3085
3086
|
// 爱Q生活网
|
|
3086
3087
|
// router.get('/iqshw/latest', lazyloadRouteHandler('./routes/3k8/latest'));
|
|
@@ -3232,7 +3233,7 @@ router.get('/mamibuy/:caty?/:age?/:sort?', lazyloadRouteHandler('./routes/mamibu
|
|
|
3232
3233
|
router.get('/mercari/:type/:id', lazyloadRouteHandler('./routes/mercari/index'));
|
|
3233
3234
|
|
|
3234
3235
|
// notefolio
|
|
3235
|
-
router.get('/notefolio/:caty?/:order?/:time?/:query?', lazyloadRouteHandler('./routes/notefolio/index'));
|
|
3236
|
+
// router.get('/notefolio/:caty?/:order?/:time?/:query?', lazyloadRouteHandler('./routes/notefolio/index'));
|
|
3236
3237
|
|
|
3237
3238
|
// JavDB
|
|
3238
3239
|
// router.get('/javdb/home/:category?/:sort?/:filter?', lazyloadRouteHandler('./routes/javdb'));
|
|
@@ -3408,7 +3409,7 @@ router.get('/rescuetime/release-notes/:os?', lazyloadRouteHandler('./routes/resc
|
|
|
3408
3409
|
router.get('/totalcommander/whatsnew', lazyloadRouteHandler('./routes/totalcommander/whatsnew'));
|
|
3409
3410
|
|
|
3410
3411
|
// Blizzard
|
|
3411
|
-
router.get('/blizzard/news/:language?/:category?', lazyloadRouteHandler('./routes/blizzard/news'));
|
|
3412
|
+
// router.get('/blizzard/news/:language?/:category?', lazyloadRouteHandler('./routes/blizzard/news'));
|
|
3412
3413
|
|
|
3413
3414
|
// DeepMind
|
|
3414
3415
|
// router.get('/deepmind/blog/:category?', lazyloadRouteHandler('./routes/deepmind/blog'));
|
|
@@ -3459,7 +3460,7 @@ router.get('/zhimap/:categoryUuid?/:recommend?', lazyloadRouteHandler('./routes/
|
|
|
3459
3460
|
// router.get('/fantia/user/:id', lazyloadRouteHandler('./routes/fantia/user'));
|
|
3460
3461
|
|
|
3461
3462
|
// i-Cable
|
|
3462
|
-
router.get('/icable/:category/:option?', lazyloadRouteHandler('./routes/icable/category'));
|
|
3463
|
+
// router.get('/icable/:category/:option?', lazyloadRouteHandler('./routes/icable/category'));
|
|
3463
3464
|
|
|
3464
3465
|
// ProcessOn
|
|
3465
3466
|
router.get('/processon/popular/:cate?/:sort?', lazyloadRouteHandler('./routes/processon/popular'));
|
|
@@ -3511,7 +3512,7 @@ router.get('/chuapp/index/:category?', lazyloadRouteHandler('./routes/chuapp/ind
|
|
|
3511
3512
|
router.get('/deloitte/industries/:category?', lazyloadRouteHandler('./routes/deloitte/industries'));
|
|
3512
3513
|
|
|
3513
3514
|
// 特斯拉系统更新
|
|
3514
|
-
router.get('/tesla', lazyloadRouteHandler('./routes/tesla/update'));
|
|
3515
|
+
// router.get('/tesla/ota', lazyloadRouteHandler('./routes/tesla/update'));
|
|
3515
3516
|
|
|
3516
3517
|
// 复旦大学继续教育学院
|
|
3517
3518
|
router.get('/fudan/cce', lazyloadRouteHandler('./routes/universities/fudan/cce'));
|
|
@@ -3719,7 +3720,7 @@ router.get('/thrillist/:tag?', lazyloadRouteHandler('./routes/thrillist/index'))
|
|
|
3719
3720
|
router.get('/dxy/vaccine/:province?/:city?/:location?', lazyloadRouteHandler('./routes/dxy/vaccine'));
|
|
3720
3721
|
|
|
3721
3722
|
// Wtu
|
|
3722
|
-
router.get('/wtu/:type', lazyloadRouteHandler('./routes/universities/wtu'));
|
|
3723
|
+
// router.get('/wtu/:type', lazyloadRouteHandler('./routes/universities/wtu'));
|
|
3723
3724
|
|
|
3724
3725
|
// 中国庭审公开网
|
|
3725
3726
|
router.get('/tingshen', lazyloadRouteHandler('./routes/tingshen/tingshen'));
|
|
@@ -72,8 +72,8 @@ const formatDesc = (e) => {
|
|
|
72
72
|
|
|
73
73
|
const description = `<table><tbody><tr><th align="left" style="border: 1px solid black;">From</th><th align="left" style="border: 1px solid black;">To</th><th align="left" style="border: 1px solid black;">Price</th></tr><tr><td style="border: 1px solid black;">
|
|
74
74
|
${origin}</td><td style="border: 1px solid black;">${destination}</td><td style="border: 1px solid black;">${price}</td></tr></tbody></table>${dayjs(departureDate).format('YYYY MMM DD')} ✈ ${dayjs(returnDate).format(
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
'YYYY MMM DD'
|
|
76
|
+
)}`;
|
|
77
77
|
return {
|
|
78
78
|
title,
|
|
79
79
|
description,
|
|
Binary file
|
package/lib/utils/got.js
CHANGED
|
@@ -3,11 +3,15 @@ const config = require('@/config').value;
|
|
|
3
3
|
const got = require('got');
|
|
4
4
|
|
|
5
5
|
const custom = got.extend({
|
|
6
|
-
retry:
|
|
6
|
+
retry: {
|
|
7
|
+
limit: config.requestRetry,
|
|
8
|
+
statusCodes: [400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511, 521, 522, 524],
|
|
9
|
+
},
|
|
7
10
|
hooks: {
|
|
8
11
|
beforeRetry: [
|
|
9
12
|
(options, err, count) => {
|
|
10
13
|
logger.error(`Request ${options.url} fail, retry attempt #${count}: ${err}`);
|
|
14
|
+
options.retryCount = count;
|
|
11
15
|
},
|
|
12
16
|
],
|
|
13
17
|
afterResponse: [
|
|
@@ -20,7 +20,13 @@ if (agent) {
|
|
|
20
20
|
const proxyRegex = new RegExp(proxyObj.url_regex);
|
|
21
21
|
const protocolMatch = (protocolLike) => protocolLike && protocolLike.toLowerCase().startsWith('http');
|
|
22
22
|
|
|
23
|
-
proxyWrapper = (url, options
|
|
23
|
+
proxyWrapper = (url, options) => {
|
|
24
|
+
let urlHandler;
|
|
25
|
+
try {
|
|
26
|
+
urlHandler = new URL(url);
|
|
27
|
+
} catch (error) {
|
|
28
|
+
// ignore
|
|
29
|
+
}
|
|
24
30
|
if (proxyRegex.test(url)) {
|
|
25
31
|
if ((protocolMatch(options.protocol) || protocolMatch(url)) && (!urlHandler || urlHandler.host !== proxyUrlHandler.host)) {
|
|
26
32
|
options.agent = agent;
|
|
@@ -32,40 +38,73 @@ if (agent) {
|
|
|
32
38
|
}
|
|
33
39
|
return false;
|
|
34
40
|
};
|
|
41
|
+
} else if (config.reverseProxyUrl) {
|
|
42
|
+
proxyWrapper = (url, options) => {
|
|
43
|
+
const urlIn = options.url?.toString() || url;
|
|
44
|
+
const proxyRegex = new RegExp(proxyObj.url_regex);
|
|
45
|
+
if (
|
|
46
|
+
proxyRegex.test(urlIn) &&
|
|
47
|
+
!urlIn.startsWith(config.reverseProxyUrl) &&
|
|
48
|
+
!options.cookieJar &&
|
|
49
|
+
!options.headers['user-agent']?.startsWith('PixivIOSApp') &&
|
|
50
|
+
!options.headers['x-goog-api-client'] &&
|
|
51
|
+
options.headers.accept !== 'application/dns-json'
|
|
52
|
+
) {
|
|
53
|
+
options.url = new URL(`${config.reverseProxyUrl}${encodeURIComponent(urlIn)}`);
|
|
54
|
+
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
};
|
|
35
59
|
}
|
|
36
60
|
|
|
37
|
-
const requestWrapper = (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} catch (error) {
|
|
42
|
-
// ignore
|
|
61
|
+
const requestWrapper = (
|
|
62
|
+
url,
|
|
63
|
+
options = {
|
|
64
|
+
headers: {},
|
|
43
65
|
}
|
|
66
|
+
) => {
|
|
44
67
|
options.headers = options.headers || {};
|
|
45
68
|
const headersLowerCaseKeys = Object.keys(options.headers).map((key) => key.toLowerCase());
|
|
46
69
|
|
|
47
|
-
|
|
70
|
+
let prxied = false;
|
|
71
|
+
if (config.proxyStrategy === 'all') {
|
|
72
|
+
prxied = proxyWrapper(url, options);
|
|
73
|
+
} else if (config.proxyStrategy === 'on_retry') {
|
|
74
|
+
if (options.retryCount) {
|
|
75
|
+
prxied = proxyWrapper(url, options);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (prxied) {
|
|
79
|
+
logger.debug(`Proxy for ${url}`);
|
|
80
|
+
} else {
|
|
81
|
+
logger.debug(`Requesting ${url}`);
|
|
82
|
+
}
|
|
48
83
|
|
|
49
84
|
// ua
|
|
50
85
|
if (!headersLowerCaseKeys.includes('user-agent')) {
|
|
51
86
|
options.headers['user-agent'] = config.ua;
|
|
52
87
|
}
|
|
53
88
|
|
|
89
|
+
let urlHandler;
|
|
90
|
+
try {
|
|
91
|
+
urlHandler = new URL(options.url || url);
|
|
92
|
+
} catch (error) {
|
|
93
|
+
// ignore
|
|
94
|
+
}
|
|
95
|
+
|
|
54
96
|
if (urlHandler) {
|
|
55
97
|
// referer
|
|
56
98
|
if (!headersLowerCaseKeys.includes('referer')) {
|
|
57
99
|
options.headers.referer = urlHandler.origin;
|
|
58
100
|
}
|
|
59
|
-
// host
|
|
60
|
-
if (!headersLowerCaseKeys.includes('host')) {
|
|
61
|
-
options.headers.host = urlHandler.host;
|
|
62
|
-
}
|
|
63
101
|
}
|
|
64
102
|
};
|
|
65
103
|
|
|
66
104
|
const httpWrap = (func) => {
|
|
67
105
|
const origin = func;
|
|
68
106
|
return function (url, request) {
|
|
107
|
+
const args = Array.prototype.slice.call(arguments);
|
|
69
108
|
if (typeof url === 'object') {
|
|
70
109
|
if (url instanceof URL) {
|
|
71
110
|
requestWrapper(url.toString(), request);
|
|
@@ -76,7 +115,8 @@ const httpWrap = (func) => {
|
|
|
76
115
|
} else {
|
|
77
116
|
requestWrapper(url, request);
|
|
78
117
|
}
|
|
79
|
-
|
|
118
|
+
args[0] = request?.url || url;
|
|
119
|
+
return origin.apply(this, args);
|
|
80
120
|
};
|
|
81
121
|
};
|
|
82
122
|
|
package/lib/utils/wechat-mp.js
CHANGED
|
@@ -213,7 +213,7 @@ const fetchArticle = (ctx, url, bypassHostCheck = false) => {
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
let pubDate;
|
|
216
|
-
const publish_time_script = $('script[nonce][type="text/javascript"]:contains("var ct")').
|
|
216
|
+
const publish_time_script = $('script[nonce][type="text/javascript"]:contains("var ct")').text();
|
|
217
217
|
const publish_time_match = publish_time_script && publish_time_script.match(/var ct *= *"?(\d{10})"?/);
|
|
218
218
|
const publish_timestamp = publish_time_match && publish_time_match[1];
|
|
219
219
|
if (publish_timestamp) {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const got = require('@/utils/got');
|
|
2
|
+
const cheerio = require('cheerio');
|
|
3
|
+
const { parseDate } = require('@/utils/parse-date');
|
|
4
|
+
const { art } = require('@/utils/render');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
module.exports = async (ctx) => {
|
|
8
|
+
const rootUrl = 'https://www.141jav.com';
|
|
9
|
+
const currentUrl = `${rootUrl}${ctx.path}`;
|
|
10
|
+
|
|
11
|
+
const response = await got({
|
|
12
|
+
method: 'get',
|
|
13
|
+
url: currentUrl,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const $ = cheerio.load(response.data);
|
|
17
|
+
|
|
18
|
+
if (ctx.path === '/') {
|
|
19
|
+
ctx.redirect(`/141jav${$('.overview').first().attr('href')}`);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const items = $('.columns')
|
|
24
|
+
.toArray()
|
|
25
|
+
.map((item) => {
|
|
26
|
+
item = $(item);
|
|
27
|
+
|
|
28
|
+
const id = item.find('.title a').text();
|
|
29
|
+
const size = item.find('.title span').text();
|
|
30
|
+
const pubDate = item.find('.subtitle a').attr('href').split('/date/').pop();
|
|
31
|
+
const description = item.find('.has-text-grey-dark').text();
|
|
32
|
+
const actresses = item
|
|
33
|
+
.find('.panel-block')
|
|
34
|
+
.toArray()
|
|
35
|
+
.map((a) => $(a).text().trim());
|
|
36
|
+
const tags = item
|
|
37
|
+
.find('.tag')
|
|
38
|
+
.toArray()
|
|
39
|
+
.map((t) => $(t).text().trim());
|
|
40
|
+
const magnet = item.find('a[title="Magnet torrent"]').attr('href');
|
|
41
|
+
const link = item.find('a[title="Download .torrent"]').attr('href');
|
|
42
|
+
const image = item.find('.image').attr('src');
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
title: `${id} ${size}`,
|
|
46
|
+
pubDate: parseDate(pubDate, 'YYYY/MM/DD'),
|
|
47
|
+
link: new URL(item.find('a').first().attr('href'), rootUrl).href,
|
|
48
|
+
description: art(path.join(__dirname, 'templates/description.art'), {
|
|
49
|
+
image,
|
|
50
|
+
id,
|
|
51
|
+
size,
|
|
52
|
+
pubDate,
|
|
53
|
+
description,
|
|
54
|
+
actresses,
|
|
55
|
+
tags,
|
|
56
|
+
magnet,
|
|
57
|
+
link,
|
|
58
|
+
}),
|
|
59
|
+
author: actresses.join(', '),
|
|
60
|
+
category: [...tags, ...actresses],
|
|
61
|
+
enclosure_type: 'application/x-bittorrent',
|
|
62
|
+
enclosure_url: magnet,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
ctx.state.data = {
|
|
67
|
+
title: `141JAV - ${$('title').text().split('-')[0].trim()}`,
|
|
68
|
+
link: currentUrl,
|
|
69
|
+
item: items,
|
|
70
|
+
};
|
|
71
|
+
};
|