Commit Graph
8573 Commits
Author SHA1 Message Date
github-actions[bot] 4fc49da946 style: auto format 2026-03-13 15:58:11 +00:00
LinxHex df6572b659 fix(routes/miyuki): format news titles with bracketed categories and keep full-text body-only (#21377)
* fix(routes/miyuki): format news titles with bracketed categories and keep full-text body-only

* fix(routes/miyuki): clean news body extraction and normalize images

- Updated lib/routes/miyuki/news.ts to keep item titles as plain article titles and store category information only in the `category` field.
- Switched the route to use the canonical Miyuki domain and added the route `url` metadata.
- Refined full-text extraction so `description` keeps only the main article body and excludes page header metadata such as section title, article title, date, and category.
- Fixed malformed article-body handling for pages like `10217`, where the source HTML structure breaks the original body selector.
- Normalized article images by deduplicating `for_pc` / `for_sp` duplicates, converting relative image URLs to absolute URLs, and replacing list-based photo blocks with plain containers so RSS readers do not render black bullets.
- Resolved the related CodeFactor/lint issues and verified the file with `oxlint` and `eslint`.

* feat(apple): add full-text Apple Newsroom route

Add /apple/newsroom for the official Apple Newsroom China feed.
Fetch article pages to provide full-text content with cached detail requests, and normalize article metadata and media URLs.
Remove gallery navigation, download buttons, video playback controls, empty wrapper nodes, and other non-content UI elements from articles.
Format image and video captions as distinct descriptions, and drop duplicate captions when their text matches the article body.

* fix(routes/miyuki): simplify image handling in news descriptions

* Remove unrelated changes from PR
2026-03-13 23:57:36 +08:00
Tony 3046b6c8c5 fix: update CryptoJS import path in hqsz route 2026-03-13 01:55:24 +08:00
Sauce dcbe25be59 fix(route/bilibili/weekly): await all async items before storing in cache (#21365) 2026-03-12 16:46:18 +00:00
Zhenlong Huang d59c3eed55 feat(route): add claude blog route (#21348)
* feat(route/claude): Add claude.ai blog rss

Made-with: Cursor

* fix maintainer
2026-03-11 14:37:57 +08:00
Rigo 09a2886506 feat(route/claude): add claude code changelog route (#21347)
* feat(route/claude): add claude code changelog route

* fix: route title rule#2

* Update lib/routes/claude/code-changelog.ts

---------
2026-03-11 13:58:18 +08:00
Tony 8637e63dec feat: redirect /picnob to /picnob.info 2026-03-11 02:03:34 +08:00
YuruShiMaShiMaRinandgithub-actions[bot] e2c991a0ed feat(comic-walker.com): 新添一个路由 (#21310)
* add route

* style: auto format

* Update manga.ts

* Update manga.ts

* ts -> tsx

* Update manga.tsx

* 没法了,这是我最后的手段了(

* Update manga.ts

* Update manga.ts

* Update manga.ts

* Update manga.ts

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-11 00:44:18 +08:00
niuyi b55864eed0 feat(route/sdu): 添加山东大学研究生招生信息网路由 (#21331)
* feat(route/sdu): 添加山东大学研究生招生信息网路由

* feat(route/sdu): 更新山东大学研究生招生信息网路由信息

* feat(route/sdu): 更新研究生招生信息网名称
2026-03-10 23:33:45 +08:00
Tony 085a0ea8ff fix(route/yahoo): remove ads (#21330) 2026-03-10 02:30:50 +08:00
Leslie Leung 626d289580 fix: parse VXNA entry date (#21325) 2026-03-09 08:11:48 +00:00
8d8a435a48 fix(route/theinitium): rewrite for Ghost CMS after site migration (#21071)
* refactor(theinitium): rewrite routes for Ghost CMS, add cookie support

- Rewrite all routes to use Ghost Content API (old API deprecated)
- Add INITIUM_MEMBER_COOKIE env var for paid article full-text
- Add features block with requireConfig to all route files
- Add url field and radar rules per RSSHub standards
- Strip -zh-hans suffix from author/category display names
- Update namespace with English name and zh translations
- Mark follow route as deprecated (Ghost doesn't support it)
- Fix hostname binding to 0.0.0.0 for LAN access

* fix(theinitium): use routeExpire with refresh=false to prevent stale cache

Cache was never expiring because refresh=true (default) extends TTL on every hit.
Now uses 5-min routeExpire and won't extend on access.

* refactor(theinitium): address review feedback

- Remove unused INITIUM_USERNAME/PASSWORD/BEARER_TOKEN env keys
- Remove hardcoded User-Agent (use RSSHub's internal UA)
- Remove fragile html.length > 500 check
- Remove refresh: false from cache.tryGet
- Hoist stripLangSuffix to module scope (dedupe with cleanName)

* fix(theinitium): detect paywall CTA instead of length check

If cookie is invalid/expired, scrape returns paywall HTML.
Check for .gh-post-upgrade-cta to detect this and fall back
to cleaner Ghost API preview.

* revert(index): restore '::' hostname per #16513

* feat(theinitium): clean Ghost Koenig card HTML for RSS output

* fix(theinitium): use redirected Ghost API URL, remove unused config types

* fix(theinitium): remove unrelated neureality config changes

---------

Co-authored-by: Ryan Yao <ryanyao@Macmini.lan>
Co-authored-by: Ryan Yao <ryanyao@Ryans-Mac-mini.lan>
Co-authored-by: Ryan Yao <ryanyao@Ryans-Mac-mini.local>
2026-03-09 04:13:25 +08:00
github-actions[bot] 5277218f01 style: auto format 2026-03-08 19:29:14 +00:00
acidicxjrlandacidicxjrl 7c5c66a75b feat(routes): Add img=1 option to pornhub handlers to pass through images (#21324)
* Add img=1 option to pornhub handlers to pass through images

* Move img=1 to a path parameter, and add clarifications on :lang, etc because each must be set to set the following

---------

Co-authored-by: acidicxjrl <acidicxjrl>
2026-03-09 03:28:42 +08:00
github-actions[bot] 1ad606f40f style: auto format 2026-03-08 07:53:45 +00:00
Hualiang 8bf78f5316 feat(route): add news.qq.com user homepage route (#21280)
* add user.ts

* remove async

* use relative path

* update

* fix timestamp

* use parseDate

* try to fix import-sort?
2026-03-08 15:53:10 +08:00
Dzming Li 5469b02b2b fix(route/zhihu): auto-fetch __zse_ck when absent from ZHIHU_COOKIES (#21321)
When ZHIHU_COOKIES is configured without __zse_ck, automatically fetch
the value from Zhihu's public static JS (static.zhihu.com/zse-ck/v3.js).

__zse_ck is a site-wide token (not user-specific) that Zhihu embeds in
a static JS file and rotates periodically. When it expires, routes that
scrape HTML pages (e.g. /zhihu/posts/people/:id) return 403, while
API-only routes are unaffected.

Users can now omit __zse_ck from ZHIHU_COOKIES and it will be fetched
and cached automatically, eliminating manual cookie rotation for this
token. Existing configs that include __zse_ck are unchanged.
2026-03-07 10:27:43 +08:00
chesha1 1c5e4b3702 fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309)
* fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API

- 移除旧的 getApiUrl 和 parseArticle 函数
- 为 fetchArticles 添加 category 过滤参数
- 提取文章作者信息
- 清理未使用的依赖(got, raw, renderToString)

* fix(route/openai): 使用 parseDate 解析 pubDate 日期字符串

* fix(route/openai): 使用重定向后的 URL 作为文章链接

使用 ofetch.raw() 获取响应,捕获重定向后的最终 URL,
避免输出中包含会被重定向的旧链接。

* fix(route/openai): 补全 URL 尾部斜杠以避免 301 重定向

在请求文章详情前为 URL 补上尾部斜杠,直接请求最终地址,
避免每篇文章都触发一次 301 重定向,减少不必要的 HTTP 请求。
2026-03-06 13:53:14 +08:00
Lipeng 6e2ca63189 feat(route): add Meritalk latest articles (#21282)
* feat: add route and namespace for MeriTalk articles

* feat: update articles route to support pagination and add description rendering

* feat: enhance articles route with improved description and error handling

* feat(meritalk): add articles route with pagination limit

- Add latest articles route for Meritalk
- Update route example and parameter description
- Implement pagination limit to avoid Cloudflare anti-bot

* fix(meritalk): remove nums param and fetch only first page

* fix(meritalk): update route category to new-media

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix(meritalk): remove the post-processing of items and modify some of the logic in the handler

- Remove unnecessary sorting.
- Remove custom limit logic.

---------
2026-03-05 11:41:55 +08:00
Tony c09dacac5b feat(api): add cache probing (#21300)
* feat(api): add cache probing

* fix(tests): correct query parameter from 'path' to 'requestPath' in status tests

* feat(cache): add has to workers kv
2026-03-05 02:36:53 +08:00
github-actions[bot] 1093ce6522 style: auto format 2026-03-03 20:45:21 +00:00
Hualiang 4dec5ee309 feat(route): add gamersky.com user dynamics route (#21279)
* add user.ts

* Replace substring with slice.

* fix something
2026-03-04 04:44:46 +08:00
Radon Rosborough bcba35b41c feat(route): add aschmelyun.com blog route (#21271) 2026-03-04 03:48:13 +08:00
Dzming LiandTony 0ac1e409d8 feat(route/gcores): add user content routes with filtering (#21258)
* feat(route/gcores): add user content routes with filtering

- Add user-talks route for user social posts, excluding podcasts and videos
- Add user-radios route for user podcasts with exclude_albums parameter to filter out specific albums
- Update cache middleware to include exclude_albums in cache key for proper cache separation

* chore(gcores): appease codefactor by simplifying radios handler

* Update lib/routes/gcores/user-radios.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/routes/gcores/user-talks.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: address PR review - add maintainer ID and remove inferrable types

* refactor(route/gcores): replace exclude_albums with album category for common param filtering

---------
2026-03-04 03:30:48 +08:00
Tony 8043a5a819 style: update oxlint to use simple-import-sort 2026-03-04 03:13:57 +08:00
霁岫微岚 b6660ed585 fix(route): update ncu jwc selector (#21250)
* fix(university): update ncu jwc selector for new site version

* fix(university): update ncu jwc selector for new site version

* fix(ncu): use config.trueUA to comply with Rule 21

* fix(ncu): use config.trueUA to comply with Rule 21

* fix(ncu): simplify URL handling and fulfill route metadata
2026-03-04 02:08:42 +08:00
chouryandchoury fc5d346451 fix(route): 8kcos selectors for latest/cat/tag pages (#21269)
* fix(route): 8kcos selectors for latest/cat/tag pages

* fix: add maintainer info from #7237

* fix: use wordpress api

---------

Co-authored-by: choury <choury@users.noreply.github.com>
2026-03-03 06:17:34 +08:00
Dzming Li 18548f831d fix(route/zhihu): fix missing images in answers and zhuanlan routes (#21257)
Images were not displaying in RSS feeds because the processImage function
was not being called to convert Zhihu's special image attributes
(data-actualsrc, data-original) to standard src attributes.
2026-03-02 23:16:19 +08:00
karasu a1d266888c fix(route/ff14): 修复部分「公告」条目缺失的问题 (#21261)
* fix(route/ff14): 追加「公告」类型编码

* style(ff14): rename type_number to typeNumber for camelCase consistency
2026-03-02 13:21:57 +08:00
github-actions[bot] c205eeb107 style: auto format 2026-03-01 19:10:30 +00:00
AndvariandCopilot 2f9d18ccea fix(route/reuters): Fix empty authors & prevent unintended fallback (#21256)
* fix(route/reuters): Fix empty authors & prevent unintended fallback

* Update lib/routes/reuters/common.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix error handling for FetchError in common.tsx

* Update common.tsx

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-02 03:09:53 +08:00
chouryandchoury 1520f4f30c fix(route/zhihu): use v4 API for daily route (#21255)
The homepage of daily.zhihu.com was redesigned and no longer contains
.box elements with story links. Additionally, the v7 /stories/latest
endpoint now requires authentication (returns 401).

Fix by switching to the publicly accessible v4 API:
- GET /api/4/stories/latest to list today's stories
- GET /api/4/story/:id for full story content (still public)

Also set antiCrawler: false since the v4 API is open.

Co-authored-by: choury <choury@users.noreply.github.com>
2026-03-02 01:32:46 +08:00
CaoMeiYouRen233 ea2fefd5e6 feat: 添加 Iwara 排行功能,支持视频和图片的排序与筛选 (#21251)
* feat: 添加 Iwara 排行功能,支持视频和图片的排序与筛选

* fix: 更新维护者信息

* feat: 使用 Puppeteer 优化 Iwara 排行数据获取

* fix: 修复链接生成逻辑以正确处理 slug

* refactor: 提取公共常量和函数到 utils.ts 文件以简化代码结构

* fix: 修复 Iwara URL 以确保正确访问网站
2026-03-01 18:08:40 +08:00
Bush2021 144d60b80f fix(route/423down): exclude ad entries (#21254)
Some list entries are ad posts that redirect to
external domains with problematic TLS certificate
chains, causing detail fetch to fail and break the
route.
2026-03-01 06:07:14 +08:00
Thomas 7465febbdf feat(route/youtube): Allow configuring custom embed url (#21248) 2026-03-01 00:28:45 +08:00
heisenshark e935df5bc6 feat(route): add 4chan (#21249)
* feat: added 4chan route

* feat: renamed board to catalog

* refactor(route/4chan): added util.ts for handling catalog processing

* feat(route/4chan): added break after the reply count

* refactor(route/4chan):functions to arrow functions

* feat(route/4chan): utc pubdate, route params to parameters

* fix(route/4chan): removed explicit category set, changed radar rules

* fix(route/4chan): changed pubdate handling to timezone>parseDate

* fix(route/4chan): added spoilers back, changed links to absolute URLs, changed html stripping in title, removed force timezone setting, removed referrerpolicy from img

* fix(route/4chan): fix https typo

* fix(route/4chan): radar route namespace prefix

* Apply suggestions from code review
2026-03-01 00:20:52 +08:00
Tony 1acb805799 style: migrate eslint to oxlint (#21224)
* chore: add oxlint support

* style: apply autofix

* style: apply autofix for toSorted

* style: use alternative api for nsfw-flag jsPlugins

* fix: git diff

* fix: codeql

* test: console.log

* style: update lint workflow to use Checkstyle SARIF converter

* style: remove debug log from extractDateFromURL function

* chore: use oxlint-json-to-sarif

* test: console.log

* test: remove console.log

* test: update cookie data expectation in getCookies test

https://github.com/mccutchen/go-httpbin/pull/235 breaks this

* style: type-aware linting

* style: enable type-aware linting for oxlint
2026-02-28 21:23:11 +08:00
shcw0405and蔡旭 5ddd2080b0 fix(cursor/changelog): fix changelog route (#21237)
* fix cursor/changelog

* fix(cursor/changelog): deduplicate feed entries

---------

Co-authored-by: 蔡旭 <caixu@caixudeMacBook-Air.local>
2026-02-27 03:18:59 +08:00
github-actions[bot] e21e74addc style: auto format 2026-02-25 16:54:10 +00:00
9k001 9cb29513b4 fix(route/zhihu): enable processImage for people/answers to fix lazy-loaded images (#18671) (#21153) 2026-02-26 00:52:06 +08:00
Mervyn ZhanandTony 79c8adcca7 fix(route/bbc): deal with the mixed bbc news data (#21228)
* fix(route/bbc): deal with the mixed bbc news data

fix #21227

* Update lib/routes/bbc/utils.tsx

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

---------
2026-02-25 21:09:48 +08:00
Summer⛱ b11b9e727a feat(route): 豆瓣即将播出的剧集 (#21214)
* feat(route): 豆瓣即将播出的剧集

* fix: 增加反爬/限频错误处理

* fix(route): address review feedback for douban tv coming route

- switch route config from query params to path params (:sortBy/:count)
- replace globalThis.crypto with node:crypto webcrypto
- use config.cache.routeExpire instead of hardcoded cache ttl
- normalize naming to camelCase (sortBy/requestCount)
- replace newline rendering with HTML <br/> in description
- simplify renderDescription without array join

* Apply suggestion from TonyRL

---------
2026-02-25 20:48:40 +08:00
occam-7 7d2bd7ced1 feat(route/bestblogs): Add route for weekly selection (#21226)
* feat(route/bestblogs): Add route for weekly selection

* fix(route/thepaper): Linebreak style
2026-02-25 16:07:01 +08:00
loopy03 8be22cb8f6 feat: add route for Le Phocéen (#21205)
* feat: add route for Le Phocéen

* fix: use embedded json

* Fix: lint errors (imports order and parseDate)
2026-02-23 20:04:09 +08:00
github-actions[bot] 83391205cb style: auto format 2026-02-23 01:28:59 +00:00
YuruShiMaShiMaRin ff4ae56a20 feat(comic-fuz.com): add new routes (#21193)
* comicfuz pr

* fix lint

* fix lint error

* ofetch support

* 1

* fix some question

* fix some question

* using TonyRL‘s suggetion version 1

* ver 2

* fix some question

* ver 3

* 非必要的修改 最后的版本

* fix: missing rename

* fix: remove duplicated name

---------
2026-02-23 09:27:19 +08:00
Tony 7785a7bde4 style: update eslint rules (#21207)
* style: update eslint rules

* style: fix prefer-object-spread

* style: fix no-lonely-if

* fix: typescript-eslint/no-unnecessary-template-expression

* fix: sort import

* style: apply file filtering to config presets

* revert: changes on pkg

* style: revert

* style: use defineConfig

* style: reorder js plugin in eslint config

* chore: remove obsolete override

* style: fix CodeQL initialization to ensure language matrix is used
2026-02-23 08:17:37 +08:00
Tsung-Han Yu f7bea67c63 fix(route): remove elements for screen readers (#21206) 2026-02-23 04:20:25 +08:00
Tony 3349076afe fix(route/anthropic): update selectors (#21200) 2026-02-22 00:46:35 +08:00
TROJAN 3ef013659e fix(route/showstart): enable allowEmpty to allow subscribing to artists who currently have no performances (#21198) 2026-02-21 09:47:35 +08:00