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
|
@@ -0,0 +1,392 @@
|
|
|
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
|
+
import { parseDate } from '@/utils/parse-date';
|
|
7
|
+
import timezone from '@/utils/timezone';
|
|
8
|
+
|
|
9
|
+
import { type CheerioAPI, type Cheerio, load } from 'cheerio';
|
|
10
|
+
import type { Element } from 'domhandler';
|
|
11
|
+
import { type Context } from 'hono';
|
|
12
|
+
import path from 'node:path';
|
|
13
|
+
|
|
14
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
15
|
+
const { id = '9' } = ctx.req.param();
|
|
16
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
|
|
17
|
+
|
|
18
|
+
const baseUrl: string = 'https://dbaplus.cn';
|
|
19
|
+
const targetUrl: string = new URL(`news-${id}-1.html`, baseUrl).href;
|
|
20
|
+
|
|
21
|
+
const response = await ofetch(targetUrl);
|
|
22
|
+
const $: CheerioAPI = load(response);
|
|
23
|
+
const language = $('html').attr('lang') ?? 'zh';
|
|
24
|
+
|
|
25
|
+
let items: DataItem[] = [];
|
|
26
|
+
|
|
27
|
+
items = $('ul.media-list li.media')
|
|
28
|
+
.slice(0, limit)
|
|
29
|
+
.toArray()
|
|
30
|
+
.map((el): Element => {
|
|
31
|
+
const $el: Cheerio<Element> = $(el);
|
|
32
|
+
const $aEl: Cheerio<Element> = $el.find('h3.media-heading a');
|
|
33
|
+
|
|
34
|
+
const title: string = $aEl.text();
|
|
35
|
+
const image: string | undefined = $el.find('img.media-object').attr('src');
|
|
36
|
+
const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
|
|
37
|
+
images: image
|
|
38
|
+
? [
|
|
39
|
+
{
|
|
40
|
+
src: image,
|
|
41
|
+
alt: title,
|
|
42
|
+
},
|
|
43
|
+
]
|
|
44
|
+
: undefined,
|
|
45
|
+
intro: $el.find('div.mt10').html(),
|
|
46
|
+
});
|
|
47
|
+
const pubDateStr: string | undefined = $el
|
|
48
|
+
.find('span.time')
|
|
49
|
+
.text()
|
|
50
|
+
.replaceAll(/(年|月)/g, '-')
|
|
51
|
+
.replace('日', '');
|
|
52
|
+
const linkUrl: string | undefined = $aEl.attr('href');
|
|
53
|
+
const authorEls: Element[] = $el.find('span.user').toArray();
|
|
54
|
+
const authors: DataItem['author'] = authorEls.map((authorEl) => {
|
|
55
|
+
const $authorEl: Cheerio<Element> = $(authorEl);
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
name: $authorEl.text(),
|
|
59
|
+
url: undefined,
|
|
60
|
+
avatar: undefined,
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
64
|
+
|
|
65
|
+
const processedItem: DataItem = {
|
|
66
|
+
title,
|
|
67
|
+
description,
|
|
68
|
+
pubDate: pubDateStr ? parseDate(pubDateStr) : undefined,
|
|
69
|
+
link: linkUrl,
|
|
70
|
+
author: authors,
|
|
71
|
+
content: {
|
|
72
|
+
html: description,
|
|
73
|
+
text: description,
|
|
74
|
+
},
|
|
75
|
+
image,
|
|
76
|
+
banner: image,
|
|
77
|
+
updated: upDatedStr ? parseDate(upDatedStr) : undefined,
|
|
78
|
+
language,
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return processedItem;
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
items = await Promise.all(
|
|
85
|
+
items.map((item) => {
|
|
86
|
+
if (!item.link) {
|
|
87
|
+
return item;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return cache.tryGet(item.link, async (): Promise<DataItem> => {
|
|
91
|
+
const detailResponse = await ofetch(item.link);
|
|
92
|
+
const $$: CheerioAPI = load(detailResponse);
|
|
93
|
+
|
|
94
|
+
const title: string = $$('h2.title').text();
|
|
95
|
+
const description: string | undefined =
|
|
96
|
+
item.description +
|
|
97
|
+
art(path.join(__dirname, 'templates/description.art'), {
|
|
98
|
+
description: $$('div.new-detailed').html(),
|
|
99
|
+
});
|
|
100
|
+
const pubDateStr: string | undefined = $$('span.time').first().text();
|
|
101
|
+
const categories: string[] = $$('meta[name="keywords"]').attr('content')?.split(',') ?? [];
|
|
102
|
+
const authorEls: Element[] = $$('span.user').toArray();
|
|
103
|
+
const authors: DataItem['author'] = authorEls.map((authorEl) => {
|
|
104
|
+
const $$authorEl: Cheerio<Element> = $$(authorEl);
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
name: $$authorEl.text(),
|
|
108
|
+
url: undefined,
|
|
109
|
+
avatar: undefined,
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
113
|
+
|
|
114
|
+
const processedItem: DataItem = {
|
|
115
|
+
title,
|
|
116
|
+
description,
|
|
117
|
+
pubDate: pubDateStr ? timezone(parseDate(pubDateStr), +8) : item.pubDate,
|
|
118
|
+
category: categories,
|
|
119
|
+
author: authors,
|
|
120
|
+
content: {
|
|
121
|
+
html: description,
|
|
122
|
+
text: description,
|
|
123
|
+
},
|
|
124
|
+
updated: upDatedStr ? timezone(parseDate(upDatedStr), +8) : item.updated,
|
|
125
|
+
language,
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
...item,
|
|
130
|
+
...processedItem,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
})
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
const description: string = $('meta[name="description"]').attr('content') ?? '';
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
title: $('title').text().split(/:/)[0],
|
|
140
|
+
description,
|
|
141
|
+
link: targetUrl,
|
|
142
|
+
item: items,
|
|
143
|
+
allowEmpty: true,
|
|
144
|
+
image: $('div.navbar-header img').attr('src'),
|
|
145
|
+
author: description.split(/:/)[0],
|
|
146
|
+
language,
|
|
147
|
+
id: targetUrl,
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export const route: Route = {
|
|
152
|
+
path: '/news/:id?',
|
|
153
|
+
name: '资讯',
|
|
154
|
+
url: 'dbaplus.cn',
|
|
155
|
+
maintainers: ['nczitzk'],
|
|
156
|
+
handler,
|
|
157
|
+
example: '/dbaplus/news/9',
|
|
158
|
+
parameters: {
|
|
159
|
+
category: {
|
|
160
|
+
description: '分类,默认为 `9`,即全部,可在对应分类页 URL 中找到',
|
|
161
|
+
options: [
|
|
162
|
+
{
|
|
163
|
+
label: '全部',
|
|
164
|
+
value: '9',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: '数据库',
|
|
168
|
+
value: '153',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: '国产数据库',
|
|
172
|
+
value: '217',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: 'ORACLE',
|
|
176
|
+
value: '10',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: 'MySQL',
|
|
180
|
+
value: '11',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: 'SQL优化',
|
|
184
|
+
value: '155',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
label: 'Newsletter',
|
|
188
|
+
value: '156',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: '其它',
|
|
192
|
+
value: '154',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: '运维',
|
|
196
|
+
value: '134',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: '大数据',
|
|
200
|
+
value: '73',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: '架构',
|
|
204
|
+
value: '141',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: 'PaaS云',
|
|
208
|
+
value: '72',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: '职场生涯',
|
|
212
|
+
value: '149',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: '标准评估',
|
|
216
|
+
value: '248',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: '这里有毒',
|
|
220
|
+
value: '21',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: '最新活动',
|
|
224
|
+
value: '152',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
label: '往期干货',
|
|
228
|
+
value: '148',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: '特别策划',
|
|
232
|
+
value: '150',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
label: '荐书',
|
|
236
|
+
value: '151',
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
description: `::: tip
|
|
242
|
+
订阅 [资讯](https://dbaplus.cn/news-9-1.html),其源网址为 \`https://dbaplus.cn/news-9-1.html\`,请参考该 URL 指定部分构成参数,此时路由为 [\`/dbaplus/news/9\`](https://rsshub.app/dbaplus/news/9)。
|
|
243
|
+
:::
|
|
244
|
+
|
|
245
|
+
<details>
|
|
246
|
+
<summary>更多分类</summary>
|
|
247
|
+
|
|
248
|
+
| [全部](https://dbaplus.cn/news-9-1.html) | [数据库](https://dbaplus.cn/news-153-1.html) | [运维](https://dbaplus.cn/news-134-1.html) | [大数据](https://dbaplus.cn/news-73-1.html) | [架构](https://dbaplus.cn/news-141-1.html) |
|
|
249
|
+
| ---------------------------------------- | -------------------------------------------- | ------------------------------------------ | ------------------------------------------- | ------------------------------------------ |
|
|
250
|
+
| [9](https://rsshub.app/dbaplus/news/9) | [153](https://rsshub.app/dbaplus/news/153) | [134](https://rsshub.app/dbaplus/news/134) | [73](https://rsshub.app/dbaplus/news/73) | [141](https://rsshub.app/dbaplus/news/141) |
|
|
251
|
+
|
|
252
|
+
| [PaaS云](https://dbaplus.cn/news-72-1.html) | [职场生涯](https://dbaplus.cn/news-149-1.html) | [标准评估](https://dbaplus.cn/news-248-1.html) | [这里有毒](https://dbaplus.cn/news-21-1.html) |
|
|
253
|
+
| ------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | --------------------------------------------- |
|
|
254
|
+
| [72](https://rsshub.app/dbaplus/news/72) | [149](https://rsshub.app/dbaplus/news/149) | [248](https://rsshub.app/dbaplus/news/248) | [21](https://rsshub.app/dbaplus/news/21) |
|
|
255
|
+
|
|
256
|
+
#### [数据库](https://dbaplus.cn/news-153-1.html)
|
|
257
|
+
|
|
258
|
+
| [国产数据库](https://dbaplus.cn/news-217-1.html) | [ORACLE](https://dbaplus.cn/news-10-1.html) | [MySQL](https://dbaplus.cn/news-11-1.html) | [SQL优化](https://dbaplus.cn/news-155-1.html) | [Newsletter](https://dbaplus.cn/news-156-1.html) |
|
|
259
|
+
| ------------------------------------------------ | ------------------------------------------- | ------------------------------------------ | --------------------------------------------- | ------------------------------------------------ |
|
|
260
|
+
| [217](https://rsshub.app/dbaplus/news/217) | [10](https://rsshub.app/dbaplus/news/10) | [11](https://rsshub.app/dbaplus/news/11) | [155](https://rsshub.app/dbaplus/news/155) | [156](https://rsshub.app/dbaplus/news/156) |
|
|
261
|
+
|
|
262
|
+
| [其它](https://dbaplus.cn/news-154-1.html) |
|
|
263
|
+
| ------------------------------------------ |
|
|
264
|
+
| [154](https://rsshub.app/dbaplus/news/154) |
|
|
265
|
+
|
|
266
|
+
#### [这里有毒](https://dbaplus.cn/news-21-1.html)
|
|
267
|
+
|
|
268
|
+
| [最新活动](https://dbaplus.cn/news-152-1.html) | [往期干货](https://dbaplus.cn/news-148-1.html) | [特别策划](https://dbaplus.cn/news-150-1.html) | [荐书](https://dbaplus.cn/news-151-1.html) |
|
|
269
|
+
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ------------------------------------------ |
|
|
270
|
+
| [152](https://rsshub.app/dbaplus/news/152) | [148](https://rsshub.app/dbaplus/news/148) | [150](https://rsshub.app/dbaplus/news/150) | [151](https://rsshub.app/dbaplus/news/151) |
|
|
271
|
+
|
|
272
|
+
</details>
|
|
273
|
+
`,
|
|
274
|
+
categories: ['programming'],
|
|
275
|
+
features: {
|
|
276
|
+
requireConfig: false,
|
|
277
|
+
requirePuppeteer: false,
|
|
278
|
+
antiCrawler: false,
|
|
279
|
+
supportRadar: true,
|
|
280
|
+
supportBT: false,
|
|
281
|
+
supportPodcast: false,
|
|
282
|
+
supportScihub: false,
|
|
283
|
+
},
|
|
284
|
+
radar: [
|
|
285
|
+
{
|
|
286
|
+
source: ['dbaplus.cn/news*'],
|
|
287
|
+
target: (_, url) => {
|
|
288
|
+
const urlObj: URL = new URL(url);
|
|
289
|
+
const href: string = urlObj.href;
|
|
290
|
+
const id: string | undefined = href.match(/-(\d+)-\.html/)?.[1];
|
|
291
|
+
|
|
292
|
+
return `/dbaplus/news${id ? `/${id}` : ''}`;
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
title: '全部',
|
|
297
|
+
source: ['dbaplus.cn/news-9-1.html'],
|
|
298
|
+
target: '/news/9',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
title: '数据库',
|
|
302
|
+
source: ['dbaplus.cn/news-153-1.html'],
|
|
303
|
+
target: '/news/153',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
title: '国产数据库',
|
|
307
|
+
source: ['dbaplus.cn/news-217-1.html'],
|
|
308
|
+
target: '/news/217',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
title: 'ORACLE',
|
|
312
|
+
source: ['dbaplus.cn/news-10-1.html'],
|
|
313
|
+
target: '/news/10',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
title: 'MySQL',
|
|
317
|
+
source: ['dbaplus.cn/news-11-1.html'],
|
|
318
|
+
target: '/news/11',
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
title: 'SQL优化',
|
|
322
|
+
source: ['dbaplus.cn/news-155-1.html'],
|
|
323
|
+
target: '/news/155',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
title: 'Newsletter',
|
|
327
|
+
source: ['dbaplus.cn/news-156-1.html'],
|
|
328
|
+
target: '/news/156',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
title: '其它',
|
|
332
|
+
source: ['dbaplus.cn/news-154-1.html'],
|
|
333
|
+
target: '/news/154',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
title: '运维',
|
|
337
|
+
source: ['dbaplus.cn/news-134-1.html'],
|
|
338
|
+
target: '/news/134',
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
title: '大数据',
|
|
342
|
+
source: ['dbaplus.cn/news-73-1.html'],
|
|
343
|
+
target: '/news/73',
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
title: '架构',
|
|
347
|
+
source: ['dbaplus.cn/news-141-1.html'],
|
|
348
|
+
target: '/news/141',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
title: 'PaaS云',
|
|
352
|
+
source: ['dbaplus.cn/news-72-1.html'],
|
|
353
|
+
target: '/news/72',
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
title: '职场生涯',
|
|
357
|
+
source: ['dbaplus.cn/news-149-1.html'],
|
|
358
|
+
target: '/news/149',
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
title: '标准评估',
|
|
362
|
+
source: ['dbaplus.cn/news-248-1.html'],
|
|
363
|
+
target: '/news/248',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
title: '这里有毒',
|
|
367
|
+
source: ['dbaplus.cn/news-21-1.html'],
|
|
368
|
+
target: '/news/21',
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
title: '最新活动',
|
|
372
|
+
source: ['dbaplus.cn/news-152-1.html'],
|
|
373
|
+
target: '/news/152',
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
title: '往期干货',
|
|
377
|
+
source: ['dbaplus.cn/news-148-1.html'],
|
|
378
|
+
target: '/news/148',
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
title: '特别策划',
|
|
382
|
+
source: ['dbaplus.cn/news-150-1.html'],
|
|
383
|
+
target: '/news/150',
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
title: '荐书',
|
|
387
|
+
source: ['dbaplus.cn/news-151-1.html'],
|
|
388
|
+
target: '/news/151',
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
view: ViewType.Articles,
|
|
392
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{{ if images }}
|
|
2
|
+
{{ each images image }}
|
|
3
|
+
{{ if image?.src }}
|
|
4
|
+
<figure>
|
|
5
|
+
<img
|
|
6
|
+
{{ if image.alt }}
|
|
7
|
+
alt="{{ image.alt }}"
|
|
8
|
+
{{ /if }}
|
|
9
|
+
src="{{ image.src }}">
|
|
10
|
+
</figure>
|
|
11
|
+
{{ /if }}
|
|
12
|
+
{{ /each }}
|
|
13
|
+
{{ /if }}
|
|
14
|
+
|
|
15
|
+
{{ if intro }}
|
|
16
|
+
<blockquote>{{ intro }}</blockquote>
|
|
17
|
+
{{ /if }}
|
|
18
|
+
|
|
19
|
+
{{ if description }}
|
|
20
|
+
{{@ description }}
|
|
21
|
+
{{ /if }}
|
package/lib/routes/deepl/blog.ts
CHANGED
|
@@ -224,9 +224,8 @@ export const route: Route = {
|
|
|
224
224
|
options: languageOptions,
|
|
225
225
|
},
|
|
226
226
|
},
|
|
227
|
-
description: `:::tip
|
|
227
|
+
description: `::: tip
|
|
228
228
|
To subscribe to [Blog](https://www.deepl.com/en/blog), where the source URL is \`https://www.deepl.com/en/blog\`, extract the certain parts from this URL to be used as parameters, resulting in the route as [\`/deepl/blog/en\`](https://rsshub.app/deepl/blog/en).
|
|
229
|
-
|
|
230
229
|
:::
|
|
231
230
|
|
|
232
231
|
<details>
|
|
@@ -386,7 +385,7 @@ To subscribe to [Blog](https://www.deepl.com/en/blog), where the source URL is \
|
|
|
386
385
|
options: languageOptions,
|
|
387
386
|
},
|
|
388
387
|
},
|
|
389
|
-
description: `:::tip
|
|
388
|
+
description: `::: tip
|
|
390
389
|
若订阅 [博客](https://www.deepl.com/zh/blog),网址为 \`https://www.deepl.com/zh/blog\`,请截取 \`https://www.deepl.com/\` 到末尾 \`/blog\` 的部分 \`zh\` 作为 \`lang\` 参数填入,此时目标路由为 [\`/deepl/blog/zh\`](https://rsshub.app/deepl/blog/zh)。
|
|
391
390
|
|
|
392
391
|
:::
|
|
@@ -102,7 +102,7 @@ export const route: Route = {
|
|
|
102
102
|
description: 'Filter',
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
|
-
description: `:::tip
|
|
105
|
+
description: `::: tip
|
|
106
106
|
If you subscribe to [Cerezas](https://www.diariofruticola.cl/filtro/cerezas/71/),where the URL is \`https://www.diariofruticola.cl/filtro/cerezas/71/\`, extract the part \`https://diariofruticola.cl/filtro\` to the end, which is \`/\`, and use it as the parameter to fill in. Therefore, the route will be [\`/diariofruticola/filtro/cerezas/71\`](https://rsshub.app/diariofruticola/filtro/cerezas/71).
|
|
107
107
|
:::
|
|
108
108
|
`,
|
|
@@ -106,7 +106,7 @@ export const route: Route = {
|
|
|
106
106
|
description: 'Filter, all by default',
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
|
-
description: `:::tip
|
|
109
|
+
description: `::: tip
|
|
110
110
|
To subscribe to [Activity Tracker - International trade](https://digitalpolicyalert.org/activity-tracker?policy=1), where the source URL is \`https://digitalpolicyalert.org/activity-tracker?policy=1\`, extract the certain parts from this URL to be used as parameters, resulting in the route as [\`/digitalpolicyalert/activity-tracker/policy=1\`](https://rsshub.app/digitalpolicyalert/activity-tracker/policy=1).
|
|
111
111
|
:::
|
|
112
112
|
`,
|
package/lib/routes/dlsite/new.ts
CHANGED
|
@@ -3,7 +3,7 @@ import md5 from '@/utils/md5';
|
|
|
3
3
|
function hash(images) {
|
|
4
4
|
const entries = Object.entries(images)
|
|
5
5
|
.map((x) => `${x[1].os}/${x[1].architecture},${x[1].digest}`)
|
|
6
|
-
.
|
|
6
|
+
.toSorted((a, b) => a.localeCompare(b));
|
|
7
7
|
const text = entries.join('|');
|
|
8
8
|
return md5(text);
|
|
9
9
|
}
|
|
@@ -82,7 +82,7 @@ async function getContent(nextBuildId: string, contentId: string) {
|
|
|
82
82
|
const description =
|
|
83
83
|
content
|
|
84
84
|
.html()
|
|
85
|
-
?.
|
|
86
|
-
?.
|
|
85
|
+
?.replaceAll(rubyRegex, '$1($2)')
|
|
86
|
+
?.replaceAll(/[^\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm, '') ?? '';
|
|
87
87
|
return description;
|
|
88
88
|
}
|
package/lib/routes/dytt/index.ts
CHANGED
|
@@ -204,9 +204,8 @@ export const route: Route = {
|
|
|
204
204
|
],
|
|
205
205
|
},
|
|
206
206
|
},
|
|
207
|
-
description: `:::tip
|
|
207
|
+
description: `::: tip
|
|
208
208
|
若订阅 [最新影片](${baseUrl}/html/gndy/dyzz),网址为 \`${baseUrl}/html/gndy/dyzz\`,请截取 \`${baseUrl}/html/\` 到末尾的部分 \`gndy/dyzz\` 作为 \`category\` 参数填入,此时目标路由为 [\`/dytt/gndy/dyzz\`](https://rsshub.app/dytt/gndy/dyzz)。
|
|
209
|
-
|
|
210
209
|
:::
|
|
211
210
|
|
|
212
211
|
<details>
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
import { parseDate } from '@/utils/parse-date';
|
|
7
|
+
import timezone from '@/utils/timezone';
|
|
8
|
+
|
|
9
|
+
import { type CheerioAPI, load } from 'cheerio';
|
|
10
|
+
import { type Context } from 'hono';
|
|
11
|
+
import path from 'node:path';
|
|
12
|
+
|
|
13
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
14
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '50', 10);
|
|
15
|
+
|
|
16
|
+
const baseUrl: string = 'https://www.eeo.com.cn';
|
|
17
|
+
const apiUrl: string = 'https://app.eeo.com.cn';
|
|
18
|
+
const targetUrl: string = new URL('kuaixun/', baseUrl).href;
|
|
19
|
+
|
|
20
|
+
const response = await ofetch(apiUrl, {
|
|
21
|
+
query: {
|
|
22
|
+
app: 'article',
|
|
23
|
+
controller: 'index',
|
|
24
|
+
action: 'getMoreArticle',
|
|
25
|
+
catid: 3690,
|
|
26
|
+
uuid: 'b048c7211db949eeb7443cd5b9b3bfe3',
|
|
27
|
+
page: 1,
|
|
28
|
+
pageSize: limit,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const targetResponse = await ofetch(targetUrl);
|
|
33
|
+
const $: CheerioAPI = load(targetResponse);
|
|
34
|
+
const language = $('html').attr('lang') ?? 'en';
|
|
35
|
+
|
|
36
|
+
let items: DataItem[] = [];
|
|
37
|
+
|
|
38
|
+
items = response.data.slice(0, limit).map((item): DataItem => {
|
|
39
|
+
const title: string = item.title;
|
|
40
|
+
const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
|
|
41
|
+
intro: item.description,
|
|
42
|
+
description: item.content,
|
|
43
|
+
});
|
|
44
|
+
const pubDate: number | string = item.published;
|
|
45
|
+
const linkUrl: string | undefined = item.url;
|
|
46
|
+
const categories: string[] = [item.catname].filter(Boolean);
|
|
47
|
+
const authors: DataItem['author'] = item.author;
|
|
48
|
+
const guid: string = item.contentid ? `eeo-${item.contentid}` : '';
|
|
49
|
+
const image: string | undefined = item.thumb;
|
|
50
|
+
const updated: number | string = pubDate;
|
|
51
|
+
|
|
52
|
+
const processedItem: DataItem = {
|
|
53
|
+
title,
|
|
54
|
+
description,
|
|
55
|
+
pubDate: pubDate ? timezone(parseDate(pubDate), +8) : undefined,
|
|
56
|
+
link: linkUrl,
|
|
57
|
+
category: categories,
|
|
58
|
+
author: authors,
|
|
59
|
+
guid,
|
|
60
|
+
id: guid,
|
|
61
|
+
content: {
|
|
62
|
+
html: description,
|
|
63
|
+
text: description,
|
|
64
|
+
},
|
|
65
|
+
image,
|
|
66
|
+
banner: image,
|
|
67
|
+
updated: updated ? timezone(parseDate(updated), +8) : undefined,
|
|
68
|
+
language,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return processedItem;
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
items = await Promise.all(
|
|
75
|
+
items.map((item) => {
|
|
76
|
+
if (!item.link) {
|
|
77
|
+
return item;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return cache.tryGet(item.link, async (): Promise<DataItem> => {
|
|
81
|
+
const detailResponse = await ofetch(item.link);
|
|
82
|
+
const $$: CheerioAPI = load(detailResponse);
|
|
83
|
+
|
|
84
|
+
const title: string = $$('h1').first().text() || $$('h2.title').text() || item.title;
|
|
85
|
+
const description: string | undefined =
|
|
86
|
+
item.description +
|
|
87
|
+
art(path.join(__dirname, 'templates/description.art'), {
|
|
88
|
+
description: $$('div.xx_boxsing, div#mainBody').html(),
|
|
89
|
+
});
|
|
90
|
+
const pubDateStr: string | undefined = $$('h1').next().find('span').first().text() || $$('div.from').text();
|
|
91
|
+
const authors: DataItem['author'] = $$('h1').next().contents().first().text() || $$('span.showMoreAuthor').text() || item.author;
|
|
92
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
93
|
+
|
|
94
|
+
const processedItem: DataItem = {
|
|
95
|
+
title,
|
|
96
|
+
description,
|
|
97
|
+
pubDate: pubDateStr ? timezone(parseDate(pubDateStr), +8) : item.pubDate,
|
|
98
|
+
author: authors,
|
|
99
|
+
content: {
|
|
100
|
+
html: description,
|
|
101
|
+
text: description,
|
|
102
|
+
},
|
|
103
|
+
updated: upDatedStr ? timezone(parseDate(upDatedStr), +8) : item.updated,
|
|
104
|
+
language,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
...item,
|
|
109
|
+
...processedItem,
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
})
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
title: $('title').text(),
|
|
117
|
+
description: $('meta[name="description"]').attr('content'),
|
|
118
|
+
link: targetUrl,
|
|
119
|
+
item: items,
|
|
120
|
+
allowEmpty: true,
|
|
121
|
+
image: $('div.logo img').attr('src'),
|
|
122
|
+
author: $('meta[name="author"]').attr('content'),
|
|
123
|
+
language,
|
|
124
|
+
id: $('meta[property="og:url"]').attr('content'),
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const route: Route = {
|
|
129
|
+
path: '/kuaixun',
|
|
130
|
+
name: '快讯',
|
|
131
|
+
url: 'www.eeo.com.cn',
|
|
132
|
+
maintainers: ['nczitzk'],
|
|
133
|
+
handler,
|
|
134
|
+
example: '/eeo/kuaixun',
|
|
135
|
+
parameters: undefined,
|
|
136
|
+
description: undefined,
|
|
137
|
+
categories: ['finance'],
|
|
138
|
+
features: {
|
|
139
|
+
requireConfig: false,
|
|
140
|
+
requirePuppeteer: false,
|
|
141
|
+
antiCrawler: false,
|
|
142
|
+
supportRadar: true,
|
|
143
|
+
supportBT: false,
|
|
144
|
+
supportPodcast: false,
|
|
145
|
+
supportScihub: false,
|
|
146
|
+
},
|
|
147
|
+
radar: [
|
|
148
|
+
{
|
|
149
|
+
source: ['www.eeo.com.cn/kuaixun/'],
|
|
150
|
+
target: '/kuaixun',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
view: ViewType.Articles,
|
|
154
|
+
};
|