rsshub 1.0.0-master.fb6d4f3 → 1.0.0-master.fb7e42c
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/assets/logo.svg +1 -0
- package/lib/config.ts +10 -0
- package/lib/errors/index.test.ts +15 -5
- package/lib/errors/types/captcha.ts +5 -0
- package/lib/middleware/cache.ts +4 -0
- package/lib/middleware/parameter.ts +1 -1
- package/lib/registry.ts +6 -2
- package/lib/routes/10000link/info.ts +1 -1
- package/lib/routes/18comic/album.ts +1 -0
- package/lib/routes/18comic/blogs.ts +1 -0
- package/lib/routes/18comic/search.ts +1 -0
- package/lib/routes/199it/index.ts +1 -1
- package/lib/routes/21caijing/channel.ts +1 -1
- package/lib/routes/51cto/utils.ts +1 -1
- package/lib/routes/6v123/index.ts +487 -0
- package/lib/routes/6v123/namespace.ts +1 -0
- package/lib/routes/8kcos/cat.ts +3 -0
- package/lib/routes/8kcos/latest.ts +1 -0
- package/lib/routes/8kcos/tag.ts +1 -0
- package/lib/routes/91porn/author.ts +1 -0
- package/lib/routes/95mm/category.ts +1 -0
- package/lib/routes/95mm/tag.ts +1 -0
- package/lib/routes/aa1/60s.ts +189 -0
- package/lib/routes/{xinhuanet → aa1}/namespace.ts +3 -3
- package/lib/routes/abc/index.ts +1 -1
- package/lib/routes/abskoop/index.ts +3 -0
- package/lib/routes/abskoop/nsfw.ts +3 -0
- package/lib/routes/acgvinyl/namespace.ts +6 -0
- package/lib/routes/acgvinyl/news.ts +86 -0
- package/lib/routes/ally/rail.ts +1 -1
- package/lib/routes/amazfitwatchfaces/index.ts +1 -2
- package/lib/routes/anthropic/news.ts +13 -11
- package/lib/routes/apnews/mobile-api.ts +1 -1
- package/lib/routes/apnews/sitemap.ts +1 -1
- package/lib/routes/app-sales/index.ts +1 -1
- package/lib/routes/apple/apps.ts +2 -2
- package/lib/routes/apple/podcast.ts +58 -25
- package/lib/routes/apple/security-releases.ts +2 -2
- package/lib/routes/asiafruitchina/categories.ts +1 -1
- package/lib/routes/asiantolick/index.ts +3 -0
- package/lib/routes/asmr-200/index.ts +1 -0
- package/lib/routes/bandisoft/history.ts +2 -2
- package/lib/routes/bangumi.tv/group/reply.ts +1 -1
- package/lib/routes/banshujiang/index.ts +1 -1
- package/lib/routes/banyuetan/index.ts +1 -1
- package/lib/routes/baozimh/index.ts +21 -3
- package/lib/routes/baselang/index.ts +117 -0
- package/lib/routes/baselang/namespace.ts +6 -0
- package/lib/routes/bbc/learningenglish.ts +35 -20
- package/lib/routes/bestofjs/monthly.ts +137 -0
- package/lib/routes/bestofjs/namespace.ts +7 -0
- package/lib/routes/bestofjs/templates/description.art +36 -0
- package/lib/routes/bilibili/cache.ts +17 -1
- package/lib/routes/bilibili/dynamic.ts +34 -8
- package/lib/routes/bilibili/page.ts +1 -1
- package/lib/routes/bilibili/ranking.ts +25 -17
- package/lib/routes/bilibili/wasm-exec.ts +1 -1
- package/lib/routes/bilibili/weekly-recommend.ts +22 -6
- package/lib/routes/bjp/apod.ts +1 -1
- package/lib/routes/bnext/index.ts +58 -0
- package/lib/routes/bnext/namespace.ts +7 -0
- package/lib/routes/bookwalker/namespace.ts +9 -0
- package/lib/routes/bookwalker/search.ts +114 -0
- package/lib/routes/bookwalker/templates/description.art +13 -0
- package/lib/routes/booru/mmda.ts +1 -0
- package/lib/routes/buaa/jiaowu.ts +1 -1
- package/lib/routes/bullionvault/gold-news.ts +4 -4
- package/lib/routes/cast/index.ts +1 -1
- package/lib/routes/cbndata/information.ts +250 -0
- package/lib/routes/cbndata/namespace.ts +9 -0
- package/lib/routes/cbndata/templates/description.art +17 -0
- package/lib/routes/cccmc/index.ts +1 -1
- package/lib/routes/ccg/index.ts +181 -0
- package/lib/routes/ccg/namespace.ts +9 -0
- package/lib/routes/ccg/templates/description.art +21 -0
- package/lib/routes/chikubi/category.ts +1 -0
- package/lib/routes/chikubi/navigation.ts +1 -0
- package/lib/routes/chikubi/nipple-video-category.ts +1 -0
- package/lib/routes/chikubi/nipple-video-maker.ts +1 -0
- package/lib/routes/chikubi/search.ts +1 -0
- package/lib/routes/chinadaily/language.ts +1 -1
- package/lib/routes/chinaratings/credit-research.ts +1 -1
- package/lib/routes/chub/characters.ts +3 -0
- package/lib/routes/civitai/discussions.ts +1 -0
- package/lib/routes/civitai/models.ts +1 -0
- package/lib/routes/civitai/user.ts +3 -0
- package/lib/routes/cline/blog.ts +34 -23
- package/lib/routes/coolapk/utils.ts +5 -4
- package/lib/routes/coolbuy/index.ts +106 -0
- package/lib/routes/coolbuy/namespace.ts +9 -0
- package/lib/routes/coolbuy/templates/description.art +48 -0
- package/lib/routes/coolidge/film-guide.ts +60 -0
- package/lib/routes/coolidge/namespace.ts +7 -0
- package/lib/routes/coolidge/news.ts +65 -0
- package/lib/routes/coolidge/templates/description.art +4 -0
- package/lib/routes/coomer/index.ts +4 -6
- package/lib/routes/copymanga/comic.ts +2 -1
- package/lib/routes/cosplaytele/category.ts +1 -0
- package/lib/routes/cosplaytele/latest.ts +1 -0
- package/lib/routes/cosplaytele/popular.ts +1 -0
- package/lib/routes/cosplaytele/tag.ts +1 -0
- package/lib/routes/cpta/handler.ts +1 -1
- package/lib/routes/creative-comic/book.ts +1 -1
- package/lib/routes/crush/index.ts +77 -0
- package/lib/routes/crush/namespace.ts +7 -0
- package/lib/routes/cursor/blog.ts +84 -0
- package/lib/routes/daum/potplayer.ts +3 -3
- package/lib/routes/dbaplus/new.ts +392 -0
- package/lib/routes/dbaplus/templates/description.art +21 -0
- package/lib/routes/deepl/blog.ts +2 -3
- package/lib/routes/diariofruticola/filtro.ts +1 -1
- package/lib/routes/digitalpolicyalert/activity-tracker.ts +1 -1
- package/lib/routes/dlsite/campaign.ts +1 -0
- package/lib/routes/dlsite/ci-en/article.ts +1 -0
- package/lib/routes/dlsite/new.ts +1 -0
- package/lib/routes/dlsite/z-index/index.ts +3 -0
- package/lib/routes/dockerhub/utils.ts +1 -1
- package/lib/routes/dora-world/article.ts +2 -2
- package/lib/routes/dytt/index.ts +1 -2
- package/lib/routes/eeo/kuaixun.ts +154 -0
- package/lib/routes/eeo/namespace.ts +9 -0
- package/lib/routes/eeo/templates/description.art +7 -0
- package/lib/routes/ehentai/ehapi.ts +3 -3
- package/lib/routes/ehentai/favorites.ts +1 -0
- package/lib/routes/ehentai/search.ts +1 -0
- package/lib/routes/elecfans/article.ts +64 -0
- package/lib/routes/elecfans/namespace.ts +7 -0
- package/lib/routes/elecfans/soft.ts +69 -0
- package/lib/routes/engineering/namespace.ts +8 -0
- package/lib/routes/engineering/tag.ts +55 -0
- package/lib/routes/eventbrite/events.ts +152 -0
- package/lib/routes/eventbrite/namespace.ts +7 -0
- package/lib/routes/eventernote/actors.ts +61 -64
- package/lib/routes/everia/category.ts +1 -0
- package/lib/routes/everia/latest.ts +1 -0
- package/lib/routes/everia/search.ts +1 -0
- package/lib/routes/everia/tag.ts +1 -0
- package/lib/routes/expats/czech-news.ts +1 -1
- package/lib/routes/fangchan/list.ts +1 -1
- package/lib/routes/fansly/post.ts +1 -0
- package/lib/routes/fantia/search.ts +1 -0
- package/lib/routes/fantia/user.ts +1 -0
- package/lib/routes/finology/tag.ts +1 -1
- package/lib/routes/furaffinity/art.ts +1 -0
- package/lib/routes/furaffinity/browse.ts +1 -0
- package/lib/routes/furaffinity/commissions.ts +1 -0
- package/lib/routes/furaffinity/home.ts +1 -0
- package/lib/routes/furaffinity/journal-comments.ts +1 -0
- package/lib/routes/furaffinity/journals.ts +1 -0
- package/lib/routes/furaffinity/search.ts +1 -0
- package/lib/routes/furaffinity/shouts.ts +1 -0
- package/lib/routes/furaffinity/status.ts +1 -0
- package/lib/routes/furaffinity/submission-comments.ts +1 -0
- package/lib/routes/furaffinity/user.ts +1 -0
- package/lib/routes/furaffinity/watchers.ts +1 -0
- package/lib/routes/furaffinity/watching.ts +1 -0
- package/lib/routes/gamebase/news.ts +2 -2
- package/lib/routes/gamer/gnn-index.ts +8 -3
- package/lib/routes/gcores/categories.ts +1 -1
- package/lib/routes/gcores/collections.ts +1 -1
- package/lib/routes/gcores/tags.ts +1 -1
- package/lib/routes/gcores/topics.ts +1 -1
- package/lib/routes/gdufs/xwxy/index.ts +196 -0
- package/lib/routes/gelbooru/post.ts +1 -0
- package/lib/routes/genossenschaften/index.ts +2 -3
- package/lib/routes/github/activity.ts +1 -1
- package/lib/routes/gitstar-ranking/index.ts +1 -1
- package/lib/routes/go/jihs/idwr.ts +3 -4
- package/lib/routes/google/jules.ts +63 -0
- package/lib/routes/gov/mem/namespace.ts +7 -0
- package/lib/routes/gov/mem/zfxxgkpt.ts +96 -0
- package/lib/routes/gov/moa/gjs.ts +1 -1
- package/lib/routes/gov/mot/index.ts +157 -53
- package/lib/routes/grainoil/category.ts +1 -2
- package/lib/routes/gxmzu/lib.ts +2 -2
- package/lib/routes/gxmzu/utils/index.ts +2 -2
- package/lib/routes/hameln/chapter.ts +1 -1
- package/lib/routes/hanime1/previews.ts +1 -0
- package/lib/routes/hanime1/search.ts +1 -0
- package/lib/routes/hex-rays/index.ts +1 -1
- package/lib/routes/hit/hitgs.ts +1 -1
- package/lib/routes/hit/namespace.ts +1 -1
- package/lib/routes/hpoi/banner-item.ts +28 -11
- package/lib/routes/hpoi/info.ts +1 -1
- package/lib/routes/hudsonrivertrading/index.ts +122 -0
- package/lib/routes/hudsonrivertrading/namespace.ts +7 -0
- package/lib/routes/huggingface/daily-papers.ts +45 -9
- package/lib/routes/huijin-inv/namespace.ts +7 -0
- package/lib/routes/huijin-inv/news.ts +83 -0
- package/lib/routes/hupu/index.ts +170 -74
- package/lib/routes/hupu/types.ts +163 -0
- package/lib/routes/hust/gs.ts +1 -1
- package/lib/routes/hust/mse.ts +1 -1
- package/lib/routes/huxiu/util.ts +2 -2
- package/lib/routes/immich/cursed-knowledge.ts +49 -0
- package/lib/routes/immich/namespace.ts +7 -0
- package/lib/routes/infoq/presentations.ts +1 -1
- package/lib/routes/instagram/common-utils.ts +3 -3
- package/lib/routes/investor/index.ts +362 -148
- package/lib/routes/itch/devlog.ts +7 -3
- package/lib/routes/iwara/index.ts +3 -0
- package/lib/routes/iwara/subscriptions.ts +1 -0
- package/lib/routes/javbus/index.ts +1 -1
- package/lib/routes/javdb/actors.ts +1 -0
- package/lib/routes/javdb/index.ts +3 -0
- package/lib/routes/javdb/lists.ts +3 -0
- package/lib/routes/javdb/makers.ts +1 -0
- package/lib/routes/javdb/rankings.ts +1 -0
- package/lib/routes/javdb/search.ts +1 -0
- package/lib/routes/javdb/series.ts +1 -0
- package/lib/routes/javdb/videocodes.ts +1 -0
- package/lib/routes/javlibrary/bestrated.ts +3 -0
- package/lib/routes/javlibrary/bestreviews.ts +1 -0
- package/lib/routes/javlibrary/genre.ts +3 -0
- package/lib/routes/javlibrary/maker.ts +1 -0
- package/lib/routes/javlibrary/mostwanted.ts +3 -0
- package/lib/routes/javlibrary/newentries.ts +3 -0
- package/lib/routes/javlibrary/newrelease.ts +3 -0
- package/lib/routes/javlibrary/update.ts +3 -0
- package/lib/routes/javlibrary/user.ts +3 -0
- package/lib/routes/javlibrary/utils.ts +1 -1
- package/lib/routes/javtrailers/categories.ts +3 -0
- package/lib/routes/javtrailers/studios.ts +3 -0
- package/lib/routes/jbma/namespace.ts +17 -0
- package/lib/routes/jbma/report.ts +471 -0
- package/lib/routes/jetbrains/comments.ts +1 -1
- package/lib/routes/jingzhengu/utils.ts +1 -1
- package/lib/routes/jou/utils/index.ts +2 -2
- package/lib/routes/jpxgmn/search.ts +3 -0
- package/lib/routes/jpxgmn/weekly.ts +3 -0
- package/lib/routes/juejin/aicoding.ts +102 -0
- package/lib/routes/juejin/trending.ts +70 -20
- package/lib/routes/juejin/utils.ts +36 -51
- package/lib/routes/jumeili/home.ts +1 -1
- package/lib/routes/kakuyomu/works.ts +1 -1
- package/lib/routes/kemono/index.ts +11 -3
- package/lib/routes/kemono/templates/discord.art +1 -1
- package/lib/routes/kisskiss/blog.ts +1 -0
- package/lib/routes/komiic/comic.ts +2 -1
- package/lib/routes/koyso/index.ts +339 -0
- package/lib/routes/koyso/namespace.ts +9 -0
- package/lib/routes/koyso/templates/description.art +13 -0
- package/lib/routes/kpopping/kpics.ts +3 -4
- package/lib/routes/kpopping/news.ts +2 -2
- package/lib/routes/laimanhua/index.ts +1 -0
- package/lib/routes/letterboxd/index.ts +65 -0
- package/lib/routes/letterboxd/namespace.ts +8 -0
- package/lib/routes/lhratings/research.ts +1 -1
- package/lib/routes/literotica/category.ts +3 -0
- package/lib/routes/lovelive-anime/topics.ts +5 -6
- package/lib/routes/maccms/index.ts +1 -1
- package/lib/routes/mangadex/index.ts +3 -0
- package/lib/routes/mangadex/mdlist/feed.ts +1 -0
- package/lib/routes/mangadex/user/feed.ts +1 -0
- package/lib/routes/mangadex/user/follows.ts +1 -0
- package/lib/routes/manhuagui/comic.ts +1 -0
- package/lib/routes/manhuagui/subscribe.ts +1 -0
- package/lib/routes/manyvids/video.ts +3 -0
- package/lib/routes/mercari/util.ts +1 -1
- package/lib/routes/mihoyo/sr/news.ts +2 -1
- package/lib/routes/mihoyo/zzz/news.ts +2 -1
- package/lib/routes/mingpao/index.ts +1 -1
- package/lib/routes/musify/index.ts +2 -3
- package/lib/routes/mycard520/news.ts +2 -2
- package/lib/routes/nankai/ai-notice.ts +142 -0
- package/lib/routes/nankai/graduate-notice.ts +162 -0
- package/lib/routes/natgeo/natgeo.ts +3 -2
- package/lib/routes/naturalism/namespace.ts +7 -0
- package/lib/routes/naturalism/new.ts +59 -0
- package/lib/routes/netflav/index.ts +3 -0
- package/lib/routes/nhentai/search.ts +1 -0
- package/lib/routes/nhk/news-web-easy.ts +1 -1
- package/lib/routes/nicovideo/mylist.ts +39 -0
- package/lib/routes/nicovideo/types.ts +27 -0
- package/lib/routes/nicovideo/utils.ts +27 -1
- package/lib/routes/nikkei/cn/index.ts +1 -4
- package/lib/routes/nio/nioradio.ts +1 -1
- package/lib/routes/njxzc/utils/index.ts +2 -2
- package/lib/routes/notion/namespace.ts +2 -2
- package/lib/routes/now/news.ts +1 -1
- package/lib/routes/nytimes/index.ts +1 -1
- package/lib/routes/olevod/vod.ts +3 -0
- package/lib/routes/olevod/vodlist.ts +3 -0
- package/lib/routes/oreno3d/main.ts +1 -0
- package/lib/routes/oschina/column.ts +1 -2
- package/lib/routes/oschina/event.ts +1 -1
- package/lib/routes/osu/beatmaps/latest-ranked.ts +2 -3
- package/lib/routes/papers/category.ts +3 -4
- package/lib/routes/patreon/feed.ts +1 -0
- package/lib/routes/picuki/profile.ts +13 -5
- package/lib/routes/pixiv/bookmarks.ts +1 -0
- package/lib/routes/pixiv/illustfollow.ts +1 -0
- package/lib/routes/pixiv/novel-api/user-novels/sfw.ts +1 -1
- package/lib/routes/pixiv/novel-series.ts +17 -3
- package/lib/routes/pixiv/novels.ts +1 -0
- package/lib/routes/pixiv/ranking.ts +1 -0
- package/lib/routes/pixiv/search.ts +1 -0
- package/lib/routes/pixiv/user.ts +1 -0
- package/lib/routes/pixivision/utils.ts +1 -1
- package/lib/routes/pku/hr.ts +1 -1
- package/lib/routes/pku/scc/recruit.ts +1 -1
- package/lib/routes/pornhub/category-url.ts +1 -0
- package/lib/routes/pornhub/category.ts +1 -0
- package/lib/routes/pornhub/pornstar.ts +1 -0
- package/lib/routes/pornhub/search.ts +1 -0
- package/lib/routes/pornhub/users.ts +1 -0
- package/lib/routes/producthunt/templates/description.art +2 -2
- package/lib/routes/producthunt/today.ts +17 -8
- package/lib/routes/ps/trophy.ts +1 -1
- package/lib/routes/pubscholar/utils.ts +14 -1
- package/lib/routes/qq/lol/news.ts +1 -1
- package/lib/routes/qweather/3days.ts +14 -14
- package/lib/routes/qweather/now.ts +12 -10
- package/lib/routes/qweather/util.tsx +89 -0
- package/lib/routes/qwenlm/blog.ts +75 -0
- package/lib/routes/qwenlm/namespace.ts +6 -0
- package/lib/routes/radio-canada/latest.ts +30 -17
- package/lib/routes/rawkuma/manga.ts +1 -0
- package/lib/routes/ruc/ai.ts +1 -1
- package/lib/routes/ruc/hr.ts +1 -1
- package/lib/routes/samrdprc/index.ts +241 -0
- package/lib/routes/samrdprc/namespace.ts +1 -1
- package/lib/routes/scientificamerican/podcast.ts +2 -2
- package/lib/routes/scitechvista/index.ts +99 -0
- package/lib/routes/scitechvista/namespace.ts +7 -0
- package/lib/routes/scitechvista/templates/description.art +6 -0
- package/lib/routes/scoop/apps.ts +2 -4
- package/lib/routes/sdo/ff14risingstones/api.ts +78 -0
- package/lib/routes/sdo/ff14risingstones/constant.ts +338 -0
- package/lib/routes/sdo/ff14risingstones/posts.ts +80 -0
- package/lib/routes/sdo/ff14risingstones/strats.ts +75 -0
- package/lib/routes/sdo/ff14risingstones/templates/duties-party.art +41 -0
- package/lib/routes/sdo/ff14risingstones/templates/fc-party.art +26 -0
- package/lib/routes/sdo/ff14risingstones/templates/novice-network-party.art +9 -0
- package/lib/routes/sdo/ff14risingstones/templates/rp-party.art +15 -0
- package/lib/routes/sdo/ff14risingstones/timeline.ts +31 -0
- package/lib/routes/sdo/ff14risingstones/types/dynamic.ts +50 -0
- package/lib/routes/sdo/ff14risingstones/types/index.ts +3 -0
- package/lib/routes/sdo/ff14risingstones/types/other.ts +57 -0
- package/lib/routes/sdo/ff14risingstones/types/party.ts +111 -0
- package/lib/routes/sdo/ff14risingstones/user-dynamics.ts +32 -0
- package/lib/routes/sdo/ff14risingstones/user-posts.ts +32 -0
- package/lib/routes/sdo/ff14risingstones/user-resently.ts +38 -0
- package/lib/routes/sdo/ff14risingstones/user-strats.ts +32 -0
- package/lib/routes/sdo/ff14risingstones/utils.ts +215 -0
- package/lib/routes/sdo/namespace.ts +7 -0
- package/lib/routes/secretsanfrancisco/namespace.ts +7 -0
- package/lib/routes/secretsanfrancisco/rss.ts +101 -0
- package/lib/routes/secretsanfrancisco/templates/description.art +9 -0
- package/lib/routes/sehuatang/user.ts +1 -0
- package/lib/routes/showstart/utils.ts +1 -1
- package/lib/routes/shu/global.ts +6 -5
- package/lib/routes/shu/xxgk.ts +107 -0
- package/lib/routes/shuiguopai/index.ts +3 -0
- package/lib/routes/sis001/author.ts +1 -0
- package/lib/routes/sjtu/jwc.ts +1 -1
- package/lib/routes/skeb/following-creators.ts +1 -0
- package/lib/routes/skeb/following-works.ts +1 -0
- package/lib/routes/skeb/friend-works.ts +1 -0
- package/lib/routes/skeb/index.ts +1 -0
- package/lib/routes/skeb/search.ts +1 -0
- package/lib/routes/skeb/works.ts +44 -25
- package/lib/routes/skebetter/illust.ts +1 -0
- package/lib/routes/skebetter/index.ts +1 -0
- package/lib/routes/skebetter/manga.ts +1 -0
- package/lib/routes/sohu/mp.ts +1 -1
- package/lib/routes/sotwe/user.ts +1 -1
- package/lib/routes/sspai/index.ts +5 -1
- package/lib/routes/stcn/index.ts +1 -2
- package/lib/routes/stcn/rank.ts +1 -2
- package/lib/routes/surfshark/blog.ts +273 -77
- package/lib/routes/surfshark/templates/description.art +16 -4
- package/lib/routes/sustainabilitymag/articles.ts +1 -1
- package/lib/routes/syosetu/dev.ts +1 -1
- package/lib/routes/syosetu/ranking-isekai.ts +1 -1
- package/lib/routes/szse/disclosure/listed-notice.ts +44 -6
- package/lib/routes/t66y/post.ts +1 -0
- package/lib/routes/techcrunch/news.ts +1 -0
- package/lib/routes/techpowerup/index.ts +11 -11
- package/lib/routes/techpowerup/namespace.ts +1 -1
- package/lib/routes/techpowerup/review.ts +12 -12
- package/lib/routes/techpowerup/utils.ts +2 -2
- package/lib/routes/telegram/channel-media.ts +249 -0
- package/lib/routes/telegram/channel.ts +5 -4
- package/lib/routes/telegram/stories.ts +130 -0
- package/lib/routes/telegram/tglib/channel.ts +146 -117
- package/lib/routes/telegram/tglib/client.ts +37 -139
- package/lib/routes/tesla/cx.ts +1 -1
- package/lib/routes/test/index.ts +4 -0
- package/lib/routes/thegadgetflow/namespace.ts +7 -0
- package/lib/routes/thegadgetflow/rss.ts +99 -0
- package/lib/routes/thegadgetflow/templates/description.art +9 -0
- package/lib/routes/theverge/index.ts +20 -6
- package/lib/routes/threads/utils.ts +7 -3
- package/lib/routes/tidb/blog.ts +2 -2
- package/lib/routes/tmtpost/column.ts +1 -1
- package/lib/routes/toutiao/user.ts +2 -2
- package/lib/routes/trendforce/namespace.ts +9 -0
- package/lib/routes/trendforce/new.ts +113 -0
- package/lib/routes/tsinghua/news.ts +87 -0
- package/lib/routes/twitter/api/mobile-api/api.ts +1 -1
- package/lib/routes/twitter/api/web-api/api.ts +5 -1
- package/lib/routes/txrjy/fornumtopic.ts +2 -2
- package/lib/routes/typst/universe.ts +1 -1
- package/lib/routes/uber/blog.ts +87 -46
- package/lib/routes/uraaka-joshi/uraaka-joshi-user.ts +1 -0
- package/lib/routes/uraaka-joshi/uraaka-joshi.ts +3 -0
- package/lib/routes/wainao/topics.ts +1 -1
- package/lib/routes/wdfxw/bookfree.ts +1 -1
- package/lib/routes/weibo/utils.ts +17 -9
- package/lib/routes/wikipedia/current-events.ts +411 -0
- package/lib/routes/wikipedia/namespace.ts +7 -0
- package/lib/routes/wnacg/category.ts +3 -0
- package/lib/routes/wnacg/index.ts +3 -0
- package/lib/routes/wnacg/tag.ts +3 -0
- package/lib/routes/wohnnet/index.ts +2 -2
- package/lib/routes/xiaohongshu/user.ts +2 -2
- package/lib/routes/xiaohongshu/util.ts +16 -9
- package/lib/routes/xjtu/ee-jzxx.ts +1 -1
- package/lib/routes/xjtu/zs.ts +1 -1
- package/lib/routes/xsijishe/forum.ts +1 -0
- package/lib/routes/xsijishe/rank.ts +1 -0
- package/lib/routes/xwenming/index.ts +1 -1
- package/lib/routes/yahoo/news/utils.ts +7 -3
- package/lib/routes/ymgal/article.ts +1 -1
- package/lib/routes/yoasobi-music/media.ts +1 -1
- package/lib/routes/youtube/api/google.ts +20 -6
- package/lib/routes/youtube/api/subtitles.ts +86 -0
- package/lib/routes/youtube/api/youtubei.ts +7 -51
- package/lib/routes/youtube/channel.ts +1 -1
- package/lib/routes/youtube/community.ts +4 -4
- package/lib/routes/youtube/user.ts +1 -1
- package/lib/routes/yuanliao/index.ts +1 -1
- package/lib/routes/zaimanhua/comic.ts +1 -0
- package/lib/routes/zaimanhua/update.ts +1 -0
- package/lib/routes/zaker/utils.ts +1 -1
- package/lib/routes/zaobao/interactive.ts +18 -7
- package/lib/routes/zaobao/other.ts +3 -2
- package/lib/routes/zaobao/realtime.ts +3 -2
- package/lib/routes/zaobao/util.tsx +185 -0
- package/lib/routes/zaobao/zaobao.tsx +23 -0
- package/lib/routes/zaobao/znews.ts +3 -2
- package/lib/routes/zhihu/daily-section.ts +19 -24
- package/lib/routes/zhihu/daily.ts +8 -11
- package/lib/routes/zju/cse/index.ts +102 -0
- package/lib/routes/zodgame/forum.ts +1 -0
- package/lib/server.ts +1 -1
- package/lib/types.ts +1 -1
- package/lib/utils/puppeteer-utils.test.ts +5 -5
- package/lib/utils/puppeteer.test.ts +1 -1
- package/lib/views/index.tsx +4 -4
- package/package.json +55 -57
- package/lib/routes/gdufs/xwxy/xwxy-news.ts +0 -90
- package/lib/routes/hit/jwc.ts +0 -86
- package/lib/routes/picuki/utils.ts +0 -19
- package/lib/routes/qweather/templates/3days.art +0 -22
- package/lib/routes/qweather/templates/now.art +0 -16
- package/lib/routes/xinhuanet/app.ts +0 -109
- package/lib/routes/zaobao/templates/zaobao.art +0 -17
- package/lib/routes/zaobao/util.ts +0 -198
|
@@ -6,7 +6,76 @@ export const route: Route = {
|
|
|
6
6
|
path: '/trending/:category/:type',
|
|
7
7
|
categories: ['programming'],
|
|
8
8
|
example: '/juejin/trending/ios/monthly',
|
|
9
|
-
parameters: {
|
|
9
|
+
parameters: {
|
|
10
|
+
category: {
|
|
11
|
+
description: '分类名',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
value: 'android',
|
|
15
|
+
label: 'Android',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
value: 'frontend',
|
|
19
|
+
label: '前端',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: 'ios',
|
|
23
|
+
label: 'iOS',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
value: 'backend',
|
|
27
|
+
label: '后端',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: 'design',
|
|
31
|
+
label: '设计',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: 'product',
|
|
35
|
+
label: '产品',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: 'freebie',
|
|
39
|
+
label: '工具资源',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: 'article',
|
|
43
|
+
label: '阅读',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: 'ai',
|
|
47
|
+
label: '人工智能',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
value: 'devops',
|
|
51
|
+
label: '运维',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
value: 'all',
|
|
55
|
+
label: '全部',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
default: 'all',
|
|
59
|
+
},
|
|
60
|
+
type: {
|
|
61
|
+
description: '类型',
|
|
62
|
+
options: [
|
|
63
|
+
{
|
|
64
|
+
value: 'weekly',
|
|
65
|
+
label: '本周最热',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: 'monthly',
|
|
69
|
+
label: '本月最热',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
value: 'historical',
|
|
73
|
+
label: '历史最热',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
default: 'weekly',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
10
79
|
features: {
|
|
11
80
|
requireConfig: false,
|
|
12
81
|
requirePuppeteer: false,
|
|
@@ -18,25 +87,6 @@ export const route: Route = {
|
|
|
18
87
|
name: '热门',
|
|
19
88
|
maintainers: ['moaix'],
|
|
20
89
|
handler,
|
|
21
|
-
description: `| category | 标签 |
|
|
22
|
-
| -------- | -------- |
|
|
23
|
-
| android | Android |
|
|
24
|
-
| frontend | 前端 |
|
|
25
|
-
| ios | iOS |
|
|
26
|
-
| backend | 后端 |
|
|
27
|
-
| design | 设计 |
|
|
28
|
-
| product | 产品 |
|
|
29
|
-
| freebie | 工具资源 |
|
|
30
|
-
| article | 阅读 |
|
|
31
|
-
| ai | 人工智能 |
|
|
32
|
-
| devops | 运维 |
|
|
33
|
-
| all | 全部 |
|
|
34
|
-
|
|
35
|
-
| type | 类型 |
|
|
36
|
-
| ---------- | -------- |
|
|
37
|
-
| weekly | 本周最热 |
|
|
38
|
-
| monthly | 本月最热 |
|
|
39
|
-
| historical | 历史最热 |`,
|
|
40
90
|
};
|
|
41
91
|
|
|
42
92
|
async function handler(ctx) {
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import ofetch from '@/utils/ofetch';
|
|
2
2
|
import * as cheerio from 'cheerio';
|
|
3
3
|
import { parseDate } from '@/utils/parse-date';
|
|
4
|
-
// import MarkdownIt from 'markdown-it';
|
|
5
|
-
// const md = MarkdownIt({
|
|
6
|
-
// html: true,
|
|
7
|
-
// });
|
|
8
4
|
import crypto from 'node:crypto';
|
|
9
5
|
import cache from '@/utils/cache';
|
|
10
6
|
import { Category, Collection, Tag } from './types';
|
|
@@ -18,22 +14,6 @@ const s256 = (s1: Uint8Array, s2: string) => {
|
|
|
18
14
|
return sha.digest('hex');
|
|
19
15
|
};
|
|
20
16
|
|
|
21
|
-
// 加载文章页
|
|
22
|
-
// async function loadContent(id) {
|
|
23
|
-
// const response = await ofetch('https://api.juejin.cn/content_api/v1/article/detail', {
|
|
24
|
-
// method: 'post',
|
|
25
|
-
// body: {
|
|
26
|
-
// article_id: id,
|
|
27
|
-
// },
|
|
28
|
-
// });
|
|
29
|
-
// let description;
|
|
30
|
-
// if (response.data) {
|
|
31
|
-
// description = md.render(response.data.article_info.mark_content) || response.data.article_info.content;
|
|
32
|
-
// }
|
|
33
|
-
|
|
34
|
-
// return { description };
|
|
35
|
-
// }
|
|
36
|
-
|
|
37
17
|
const solveWafChallenge = (cs) => {
|
|
38
18
|
const c = JSON.parse(Buffer.from(cs, 'base64').toString());
|
|
39
19
|
const prefix = b64tou8a(c.v.a);
|
|
@@ -49,6 +29,11 @@ const solveWafChallenge = (cs) => {
|
|
|
49
29
|
return Buffer.from(JSON.stringify(c)).toString('base64');
|
|
50
30
|
};
|
|
51
31
|
|
|
32
|
+
export const generateUuid = () => {
|
|
33
|
+
const e = (t) => (t ? (t ^ ((16 * 0.5) >> (t / 4))).toString(10) : '10000000-1000-4000-8000-100000000000'.replaceAll(/[018]/g, e));
|
|
34
|
+
return e().replaceAll('-', '').slice(0, 19);
|
|
35
|
+
};
|
|
36
|
+
|
|
52
37
|
export const getArticle = async (link) => {
|
|
53
38
|
let response = await ofetch(link);
|
|
54
39
|
let $ = cheerio.load(response);
|
|
@@ -70,16 +55,23 @@ export const getArticle = async (link) => {
|
|
|
70
55
|
return $('.article-viewer').html();
|
|
71
56
|
};
|
|
72
57
|
|
|
73
|
-
// const loadNews = async (link) => {
|
|
74
|
-
// const response = await ofetch(link);
|
|
75
|
-
// const $ = cheerio.load(response);
|
|
76
|
-
// $('h1.title, .main-box .message').remove();
|
|
77
|
-
// return { description: $('.main-box .article').html() };
|
|
78
|
-
// };
|
|
79
|
-
|
|
80
58
|
export const parseList = (data) =>
|
|
81
59
|
data.map((item) => {
|
|
82
60
|
const isArticle = !!item.article_info;
|
|
61
|
+
const isShortMsg = !!item.msg_Info;
|
|
62
|
+
if (isShortMsg) {
|
|
63
|
+
const msg = item.msg_Info;
|
|
64
|
+
const contentMatches = msg.content.match(/\[(.*?)\]\s+(.*)/);
|
|
65
|
+
return {
|
|
66
|
+
title: contentMatches?.[1],
|
|
67
|
+
description: contentMatches?.[2]?.trim(),
|
|
68
|
+
pubDate: parseDate(msg.ctime, 'X'),
|
|
69
|
+
author: item.author_user_info.user_name,
|
|
70
|
+
link: `https://juejin.cn/pin/7548882523352186915${item.msg_id}`,
|
|
71
|
+
category: [item.topic.title],
|
|
72
|
+
isShortMsg: true,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
83
75
|
|
|
84
76
|
return {
|
|
85
77
|
title: isArticle ? item.article_info.title : item.content_info.title,
|
|
@@ -95,36 +87,13 @@ export const ProcessFeed = (list) =>
|
|
|
95
87
|
Promise.all(
|
|
96
88
|
list.map((item) =>
|
|
97
89
|
cache.tryGet(item.link, async () => {
|
|
98
|
-
item.description = (await getArticle(item.link)) || item.description;
|
|
90
|
+
item.description = item.isShortMsg ? item.description : (await getArticle(item.link)) || item.description;
|
|
99
91
|
|
|
100
92
|
return item;
|
|
101
93
|
})
|
|
102
94
|
)
|
|
103
95
|
);
|
|
104
96
|
|
|
105
|
-
// export const ProcessFeed = (list, caches) =>
|
|
106
|
-
// Promise.all(
|
|
107
|
-
// list.map(async (item) => {
|
|
108
|
-
// const isArticle = !!item.article_info;
|
|
109
|
-
// const pubDate = parseDate((isArticle ? item.article_info.ctime : item.content_info.ctime) * 1000);
|
|
110
|
-
// const link = `https://juejin.cn${isArticle ? '/post/' + item.article_id : '/news/' + item.content_id}`;
|
|
111
|
-
// // 列表上提取到的信息
|
|
112
|
-
// const single = {
|
|
113
|
-
// title: isArticle ? item.article_info.title : item.content_info.title,
|
|
114
|
-
// description: ((isArticle ? item.article_info.brief_content : item.content_info.brief) || '无描述').replaceAll(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, ''),
|
|
115
|
-
// pubDate,
|
|
116
|
-
// author: item.author_user_info.user_name,
|
|
117
|
-
// link,
|
|
118
|
-
// };
|
|
119
|
-
|
|
120
|
-
// // 使用tryGet方法从缓存获取内容。
|
|
121
|
-
// // 当缓存中无法获取到链接内容的时候,则使用load方法加载文章内容。
|
|
122
|
-
// const other = await caches.tryGet(link, () => (isArticle ? loadContent(item.article_id) : loadNews(link)));
|
|
123
|
-
// // 合并解析后的结果集作为该篇文章最终的输出结果
|
|
124
|
-
// return { ...single, ...other };
|
|
125
|
-
// })
|
|
126
|
-
// );
|
|
127
|
-
|
|
128
97
|
export const getCategoryBrief = () =>
|
|
129
98
|
cache.tryGet('juejin:categoryBriefs', async () => {
|
|
130
99
|
const response = await ofetch('https://api.juejin.cn/tag_api/v1/query_category_briefs');
|
|
@@ -152,3 +121,19 @@ export const getTag = (tag) =>
|
|
|
152
121
|
});
|
|
153
122
|
return response.data;
|
|
154
123
|
}) as Promise<{ tag_id: string; tag: Tag }>;
|
|
124
|
+
|
|
125
|
+
export const getTagList = () =>
|
|
126
|
+
cache.tryGet('juejin:tagList', async () => {
|
|
127
|
+
const response = await ofetch('https://api.juejin.cn/tag_api/v1/query_tag_list', {
|
|
128
|
+
method: 'POST',
|
|
129
|
+
body: {
|
|
130
|
+
key_word: '',
|
|
131
|
+
status: [0],
|
|
132
|
+
id_type: 1101,
|
|
133
|
+
sort_type: 0,
|
|
134
|
+
cursor: '0',
|
|
135
|
+
limit: 100,
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
return response.data;
|
|
139
|
+
}) as Promise<{ tag_id: string; tag: Tag }[]>;
|
|
@@ -49,7 +49,7 @@ async function handler(ctx: Context): Promise<Data> {
|
|
|
49
49
|
const episodes = values.filter((value) => value.__typename === 'Episode') as NextDataEpisode[];
|
|
50
50
|
const items = (await Promise.all(
|
|
51
51
|
episodes
|
|
52
|
-
.
|
|
52
|
+
.toSorted((a, b) => b.publishedAt.localeCompare(a.publishedAt))
|
|
53
53
|
.slice(0, limit)
|
|
54
54
|
.map((item) => {
|
|
55
55
|
const episodeUrl = `https://kakuyomu.jp/works/${id}/episodes/${item.id}`;
|
|
@@ -9,6 +9,8 @@ import path from 'node:path';
|
|
|
9
9
|
import { KEMONO_API_URL, KEMONO_ROOT_URL, MIME_TYPE_MAP } from './const';
|
|
10
10
|
import { KemonoPost, KemonoFile, DiscordMessage } from './types';
|
|
11
11
|
|
|
12
|
+
const headers = { Accept: 'text/css' };
|
|
13
|
+
|
|
12
14
|
export const route: Route = {
|
|
13
15
|
path: '/:source?/:id?/:type?',
|
|
14
16
|
categories: ['anime'],
|
|
@@ -44,6 +46,10 @@ export const route: Route = {
|
|
|
44
46
|
source: ['kemono.cr/:source/user/:id/fancards'],
|
|
45
47
|
target: '/:source/:id/fancards',
|
|
46
48
|
},
|
|
49
|
+
{
|
|
50
|
+
source: ['kemono.cr/discord/server/:id'],
|
|
51
|
+
target: '/discord/:id',
|
|
52
|
+
},
|
|
47
53
|
],
|
|
48
54
|
name: 'Posts',
|
|
49
55
|
maintainers: ['nczitzk', 'AiraNadih'],
|
|
@@ -57,7 +63,7 @@ export const route: Route = {
|
|
|
57
63
|
::: tip
|
|
58
64
|
When \`posts\` is selected as the value of the parameter **source**, the parameter **id** does not take effect.
|
|
59
65
|
There is an optinal parameter **limit** which controls the number of posts to fetch, default value is 25.
|
|
60
|
-
|
|
66
|
+
|
|
61
67
|
Support for announcements and fancards:
|
|
62
68
|
- Use \`/:source/:id/announcements\` to get announcements
|
|
63
69
|
- Use \`/:source/:id/fancards\` to get fancards
|
|
@@ -117,7 +123,7 @@ function buildFrontendUrl(source: string, userId?: string, contentType?: string)
|
|
|
117
123
|
async function fetchUserProfile(source: string, userId: string): Promise<string> {
|
|
118
124
|
try {
|
|
119
125
|
const profileUrl = `${KEMONO_API_URL}/${source}/user/${userId}/profile`;
|
|
120
|
-
const response = await got({ method: 'get', url: profileUrl });
|
|
126
|
+
const response = await got({ method: 'get', url: profileUrl, headers });
|
|
121
127
|
return response.data.name || 'Unknown User';
|
|
122
128
|
} catch {
|
|
123
129
|
return 'Unknown User';
|
|
@@ -190,10 +196,12 @@ async function processDiscordMessages(channels: any[], limit: number) {
|
|
|
190
196
|
const channelResponse = await got({
|
|
191
197
|
method: 'get',
|
|
192
198
|
url: `${KEMONO_ROOT_URL}/api/v1/discord/channel/${channel.id}?o=0`,
|
|
199
|
+
headers,
|
|
193
200
|
});
|
|
194
201
|
|
|
195
202
|
return channelResponse.data
|
|
196
203
|
.filter((message: DiscordMessage) => message.content || message.attachments)
|
|
204
|
+
.toSorted((a, b) => b.id.localeCompare(a.id))
|
|
197
205
|
.slice(0, limit)
|
|
198
206
|
.map((message: DiscordMessage) => ({
|
|
199
207
|
title: message.content || 'Discord Message',
|
|
@@ -295,7 +303,7 @@ async function handler(ctx) {
|
|
|
295
303
|
const apiUrl = buildApiUrl(source, userId, contentType);
|
|
296
304
|
const frontendUrl = buildFrontendUrl(source, userId, contentType);
|
|
297
305
|
|
|
298
|
-
const response = await got({ method: 'get', url: apiUrl });
|
|
306
|
+
const response = await got({ method: 'get', url: apiUrl, headers });
|
|
299
307
|
|
|
300
308
|
const authorName = isPostsMode || isDiscordMode || !userId ? '' : await fetchUserProfile(source, userId);
|
|
301
309
|
|
|
@@ -14,6 +14,7 @@ export const route: Route = {
|
|
|
14
14
|
supportBT: false,
|
|
15
15
|
supportPodcast: false,
|
|
16
16
|
supportScihub: false,
|
|
17
|
+
nsfw: true,
|
|
17
18
|
},
|
|
18
19
|
radar: [
|
|
19
20
|
{
|
|
@@ -62,7 +63,7 @@ async function handler(ctx) {
|
|
|
62
63
|
},
|
|
63
64
|
});
|
|
64
65
|
|
|
65
|
-
const sortedChapters = chapterData.data.chaptersByComicId.
|
|
66
|
+
const sortedChapters = chapterData.data.chaptersByComicId.toSorted((a, b) => Date.parse(b.dateUpdated) - Date.parse(a.dateUpdated));
|
|
66
67
|
|
|
67
68
|
const chapterLimit = Number(limit) || sortedChapters.length;
|
|
68
69
|
const filteredChapters = sortedChapters.slice(0, chapterLimit);
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { type Data, type DataItem, type Route, ViewType } from '@/types';
|
|
2
|
+
|
|
3
|
+
import { art } from '@/utils/render';
|
|
4
|
+
import cache from '@/utils/cache';
|
|
5
|
+
import ofetch from '@/utils/ofetch';
|
|
6
|
+
|
|
7
|
+
import { type CheerioAPI, type Cheerio, load } from 'cheerio';
|
|
8
|
+
import type { Element } from 'domhandler';
|
|
9
|
+
import { type Context } from 'hono';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
|
|
12
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
13
|
+
const { category = '0', sort = 'latest' } = ctx.req.param();
|
|
14
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
|
|
15
|
+
|
|
16
|
+
const baseUrl: string = 'https://koyso.to';
|
|
17
|
+
const targetUrl: string = new URL(`?${category === '0' ? '' : `category=${category}&`}sort=${sort}`, baseUrl).href;
|
|
18
|
+
|
|
19
|
+
const response = await ofetch(targetUrl);
|
|
20
|
+
const $: CheerioAPI = load(response);
|
|
21
|
+
const language = $('html').attr('lang') ?? 'en';
|
|
22
|
+
|
|
23
|
+
let items: DataItem[] = [];
|
|
24
|
+
|
|
25
|
+
items = $('a.game_item')
|
|
26
|
+
.slice(0, limit)
|
|
27
|
+
.toArray()
|
|
28
|
+
.map((el): Element => {
|
|
29
|
+
const $el: Cheerio<Element> = $(el);
|
|
30
|
+
|
|
31
|
+
const title: string = $el.find('div.game_info').text();
|
|
32
|
+
const image: string | undefined = $el.find('div.game_media img').attr('data-src');
|
|
33
|
+
const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
|
|
34
|
+
images: image
|
|
35
|
+
? [
|
|
36
|
+
{
|
|
37
|
+
src: image,
|
|
38
|
+
alt: title,
|
|
39
|
+
},
|
|
40
|
+
]
|
|
41
|
+
: undefined,
|
|
42
|
+
});
|
|
43
|
+
const linkUrl: string | undefined = $el.attr('href');
|
|
44
|
+
|
|
45
|
+
const processedItem: DataItem = {
|
|
46
|
+
title,
|
|
47
|
+
description,
|
|
48
|
+
link: linkUrl ? new URL(linkUrl, baseUrl).href : undefined,
|
|
49
|
+
content: {
|
|
50
|
+
html: description,
|
|
51
|
+
text: description,
|
|
52
|
+
},
|
|
53
|
+
image,
|
|
54
|
+
banner: image,
|
|
55
|
+
language,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return processedItem;
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
items = await Promise.all(
|
|
62
|
+
items.map((item) => {
|
|
63
|
+
if (!item.link) {
|
|
64
|
+
return item;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return cache.tryGet(item.link, async (): Promise<DataItem> => {
|
|
68
|
+
const detailResponse = await ofetch(item.link);
|
|
69
|
+
const $$: CheerioAPI = load(detailResponse);
|
|
70
|
+
|
|
71
|
+
$$('div.ind').remove();
|
|
72
|
+
$$('div.download_div').remove();
|
|
73
|
+
|
|
74
|
+
const title: string = $$('h1.content_title').text();
|
|
75
|
+
|
|
76
|
+
$$('h1.content_title').remove();
|
|
77
|
+
|
|
78
|
+
const description: string | undefined = item.description + ($$('div.game_content').html() || '');
|
|
79
|
+
|
|
80
|
+
const processedItem: DataItem = {
|
|
81
|
+
title,
|
|
82
|
+
description,
|
|
83
|
+
content: {
|
|
84
|
+
html: description,
|
|
85
|
+
text: description,
|
|
86
|
+
},
|
|
87
|
+
language,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
...item,
|
|
92
|
+
...processedItem,
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
})
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const categoryName: string = $(`ul.category li#category_${category}`).text();
|
|
99
|
+
const sortName: string = $(`div.genres_content ul li.${sort}`).text();
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
title: `${$('title').text()} - ${categoryName} - ${sortName}`,
|
|
103
|
+
description: $('meta[name="description"]').attr('content'),
|
|
104
|
+
link: targetUrl,
|
|
105
|
+
item: items,
|
|
106
|
+
allowEmpty: true,
|
|
107
|
+
language,
|
|
108
|
+
id: targetUrl,
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export const route: Route = {
|
|
113
|
+
path: '/:category?/:sort?',
|
|
114
|
+
name: '游戏',
|
|
115
|
+
url: 'koyso.to',
|
|
116
|
+
maintainers: ['nczitzk'],
|
|
117
|
+
handler,
|
|
118
|
+
example: '/koyso/0/latest',
|
|
119
|
+
parameters: {
|
|
120
|
+
category: {
|
|
121
|
+
description: '排序,默认为 `0`,即全部,可在对应分类页 URL 中找到',
|
|
122
|
+
options: [
|
|
123
|
+
{
|
|
124
|
+
label: '全部游戏',
|
|
125
|
+
value: '0',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: '动作游戏',
|
|
129
|
+
value: '3',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: '冒险游戏',
|
|
133
|
+
value: '5',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
label: '绅士游戏',
|
|
137
|
+
value: '7',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: '射击游戏',
|
|
141
|
+
value: '1',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: '休闲游戏',
|
|
145
|
+
value: '2',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: '体育竞速',
|
|
149
|
+
value: '4',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: '模拟经营',
|
|
153
|
+
value: '6',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: '角色扮演',
|
|
157
|
+
value: '8',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: '策略游戏',
|
|
161
|
+
value: '9',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: '格斗游戏',
|
|
165
|
+
value: '10',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: '恐怖游戏',
|
|
169
|
+
value: '11',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
label: '即时战略',
|
|
173
|
+
value: '12',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
label: '卡牌游戏',
|
|
177
|
+
value: '13',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
label: '独立游戏',
|
|
181
|
+
value: '14',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: '局域网联机',
|
|
185
|
+
value: '15',
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
sort: {
|
|
190
|
+
description: '排序,默认为 `latest`,即最新,可在对应页 URL 中找到',
|
|
191
|
+
options: [
|
|
192
|
+
{
|
|
193
|
+
label: '热度',
|
|
194
|
+
value: 'views',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
label: '最新',
|
|
198
|
+
value: 'latest',
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
description: `::: tip
|
|
204
|
+
订阅 [最新动作游戏](https://koyso.to/?category=3&sort=latest),其源网址为 \`https://koyso.to/?category=3&sort=latest\`,请参考该 URL 指定部分构成参数,此时路由为 [\`/koyso/3/latest\`](https://koyso.to/?category=3&sort=latest)。
|
|
205
|
+
:::
|
|
206
|
+
|
|
207
|
+
#### 分类
|
|
208
|
+
|
|
209
|
+
| 分类 | ID |
|
|
210
|
+
| ------------------------------------------- | --------------------------------- |
|
|
211
|
+
| [全部游戏](https://koyso.to/) | [0](https://rsshub.app/koyso/0) |
|
|
212
|
+
| [动作游戏](https://koyso.to/?category=3) | [3](https://rsshub.app/koyso/3) |
|
|
213
|
+
| [冒险游戏](https://koyso.to/?category=5) | [5](https://rsshub.app/koyso/5) |
|
|
214
|
+
| [绅士游戏](https://koyso.to/?category=7) | [7](https://rsshub.app/koyso/7) |
|
|
215
|
+
| [射击游戏](https://koyso.to/?category=1) | [1](https://rsshub.app/koyso/1) |
|
|
216
|
+
| [休闲游戏](https://koyso.to/?category=2) | [2](https://rsshub.app/koyso/2) |
|
|
217
|
+
| [体育竞速](https://koyso.to/?category=4) | [4](https://rsshub.app/koyso/4) |
|
|
218
|
+
| [模拟经营](https://koyso.to/?category=6) | [6](https://rsshub.app/koyso/6) |
|
|
219
|
+
| [角色扮演](https://koyso.to/?category=8) | [8](https://rsshub.app/koyso/8) |
|
|
220
|
+
| [策略游戏](https://koyso.to/?category=9) | [9](https://rsshub.app/koyso/9) |
|
|
221
|
+
| [格斗游戏](https://koyso.to/?category=10) | [10](https://rsshub.app/koyso/10) |
|
|
222
|
+
| [恐怖游戏](https://koyso.to/?category=11) | [11](https://rsshub.app/koyso/11) |
|
|
223
|
+
| [即时战略](https://koyso.to/?category=12) | [12](https://rsshub.app/koyso/12) |
|
|
224
|
+
| [卡牌游戏](https://koyso.to/?category=13) | [13](https://rsshub.app/koyso/13) |
|
|
225
|
+
| [独立游戏](https://koyso.to/?category=14) | [14](https://rsshub.app/koyso/14) |
|
|
226
|
+
| [局域网联机](https://koyso.to/?category=15) | [15](https://rsshub.app/koyso/15) |
|
|
227
|
+
|
|
228
|
+
#### 排序
|
|
229
|
+
|
|
230
|
+
| 排序 | ID |
|
|
231
|
+
| ------------------------------------- | ------------------------------------------- |
|
|
232
|
+
| [热度](https://koyso.to/?sort=views) | [views](https://rsshub.app/koyso/0/views) |
|
|
233
|
+
| [最新](https://koyso.to/?sort=latest) | [latest](https://rsshub.app/koyso/0/latest) |
|
|
234
|
+
`,
|
|
235
|
+
categories: ['game'],
|
|
236
|
+
features: {
|
|
237
|
+
requireConfig: false,
|
|
238
|
+
requirePuppeteer: false,
|
|
239
|
+
antiCrawler: false,
|
|
240
|
+
supportRadar: true,
|
|
241
|
+
supportBT: false,
|
|
242
|
+
supportPodcast: false,
|
|
243
|
+
supportScihub: false,
|
|
244
|
+
nsfw: true,
|
|
245
|
+
},
|
|
246
|
+
radar: [
|
|
247
|
+
{
|
|
248
|
+
source: ['koyso.to'],
|
|
249
|
+
target: (_, url) => {
|
|
250
|
+
const urlObj: URL = new URL(url);
|
|
251
|
+
const category: string | undefined = urlObj.searchParams.get('category') ?? undefined;
|
|
252
|
+
const sort: string | undefined = urlObj.searchParams.get('sort') ?? undefined;
|
|
253
|
+
|
|
254
|
+
return `/koyso${category ? `/${category}` : '0'}${sort ? `/${sort}` : ''}`;
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
title: '全部游戏',
|
|
259
|
+
source: ['koyso.to'],
|
|
260
|
+
target: '/0',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
title: '动作游戏',
|
|
264
|
+
source: ['koyso.to'],
|
|
265
|
+
target: '/3',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
title: '冒险游戏',
|
|
269
|
+
source: ['koyso.to'],
|
|
270
|
+
target: '/5',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
title: '绅士游戏',
|
|
274
|
+
source: ['koyso.to'],
|
|
275
|
+
target: '/7',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
title: '射击游戏',
|
|
279
|
+
source: ['koyso.to'],
|
|
280
|
+
target: '/1',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
title: '休闲游戏',
|
|
284
|
+
source: ['koyso.to'],
|
|
285
|
+
target: '/2',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
title: '体育竞速',
|
|
289
|
+
source: ['koyso.to'],
|
|
290
|
+
target: '/4',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
title: '模拟经营',
|
|
294
|
+
source: ['koyso.to'],
|
|
295
|
+
target: '/6',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
title: '角色扮演',
|
|
299
|
+
source: ['koyso.to'],
|
|
300
|
+
target: '/8',
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
title: '策略游戏',
|
|
304
|
+
source: ['koyso.to'],
|
|
305
|
+
target: '/9',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
title: '格斗游戏',
|
|
309
|
+
source: ['koyso.to'],
|
|
310
|
+
target: '/10',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
title: '恐怖游戏',
|
|
314
|
+
source: ['koyso.to'],
|
|
315
|
+
target: '/11',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
title: '即时战略',
|
|
319
|
+
source: ['koyso.to'],
|
|
320
|
+
target: '/12',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
title: '卡牌游戏',
|
|
324
|
+
source: ['koyso.to'],
|
|
325
|
+
target: '/13',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
title: '独立游戏',
|
|
329
|
+
source: ['koyso.to'],
|
|
330
|
+
target: '/14',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
title: '局域网联机',
|
|
334
|
+
source: ['koyso.to'],
|
|
335
|
+
target: '/15',
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
view: ViewType.Articles,
|
|
339
|
+
};
|