* feat(route/baidu): add support for BAIDU_COOKIE in various baidu tieba routes and implement user post retrieval
* refactor(forum): improve code readability and structure in forum.tsx
* feat(post): enhance time parsing and reply link generation in post.tsx
* feat(route/baidu): refactor page content retrieval and enhance cookie handling in forum, post, search, and user routes
* refactor(route/baidu): refactor cookie parsing logic and improve code formatting
- Refactor parseBaiduCookies function to use chained array methods for better readability
- Simplify cookie parsing by trimming and filtering empty strings before mapping
- Remove redundant comments in common.ts and post.tsx files
- Improve code formatting by removing excessive blank lines
- Maintain same functionality while enhancing code maintainability
* feat(route/baidu/tieba): add BAIDU_COOKIE support and extract shared utilities Add common.ts for cookie parsing, page retrieval, security check and URL normalization. Refactor forum, post, search and user routes to use shared utilities. Preserve rich text content in post replies. Support direct reply links. Fix cookie value parsing for cookies containing '=' character.
Route/baidu
* style(baidu/tieba): fix code formatting and whitespace issues
- Remove trailing whitespace from empty lines
- Ensure consistent line endings in utility functions
* feat(route/baidu): add retry mechanism for transient errors in page content retrieval (#2)
* fix: improve page content retrieval
* style: auto format
* fix: improve URL encoding and enhance content retrieval logic
* feat(route/baidu/tieba): migrate forum route to use client API
Replace Puppeteer-based HTML scraping with direct HTTP API call
to /c/f/frs/page. The API requires BDUSS + MD5 client signature,
eliminating the need for browser rendering and reducing resource
usage. Also updated thread parsing to match the JSON response
structure (thread_list at top level, author via user_list map,
images from first_post_content type 3 items).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* revert: unnecessary changes mentioned in https://github.com/DIYgod/RSSHub/pull/21663#discussion_r3051928062
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
* feat(route): add china silk museum exhibit route
* fix: update radar source
* fix: update rawSrc to remove redundancy
* fix: update according to part of bot review
* fix(route): remove dynamic date stamp from the link
* fix(route): remove dynamic date stamp from the link
* fix: update radar source
* fix: update radar source to restore www
* route: fix dongqiudi routes for new __NUXT__ data structure
* fix(dongqiudi): remove unused mobile fallback
* fix(dongqiudi): tolerate unavailable special articles
* fix(dongqiudi): remove unnecessary bool return from ProcessFeedType2
* feat(route): add Sichuan Museum Exhibition route
* fix: fix the radar target
* fix: update key with original format and remove string() for startDate/endDate
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
--------
* feat: add capital museum route for exhibition and news
* fix:update ExhibitionListItem
* fix: update .html() to .text() and news apiUrl
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
-------
* fix(route/csust): self-contained routes, full title extraction, absolute URLs
- Remove factory pattern from utils.ts, keep only getNoticeContent helper
- Each route (tggs/xkxs) now self-contained with inline list parsing
- Extract full title from article page <title> tag to avoid truncation
- Convert relative URLs to absolute in article content
* fix(route/csust): remove redundant logics
* feat(route): add route for 浙江大学数学科学院
* fix: adjust publication date parsing to account for timezone
* fix: refine news item selection in fetchNewsItemsByCategory function
* fix: simplify author and publication date extraction in enrichNewsItemWithDetails function
* fix: update fetchNewsItemsByCategory to handle filter links only accessible from intranet
* fix: simplify filtering logic in fetchNewsItemsByCategory function
The 163 routes carry no radar rules, so RSSHub Radar cannot suggest them
from a music.163.com page. This adds one rule per route, each pointing at
the URL that route already builds in its own `link`.
`user/playlist` declares `:uid` in its path while the page URL carries
`?id=`, so its target binds `:id` — the same convention as acfun/video.ts
(path `:uid`, source/target `:id`).
* fix(route/fanbox): refactor to use playwright to load posts
* fix(route/fanbox) added missing await
* fix(route/fanbox) closing context after page close
* fix(route/fanbox) Update model to conform to new API response
---------
Co-authored-by: Sryvkver <git@sryvkver.com>
* fix(route): harden njxzc, gxmzu and jou routes
- parse all observed date formats (ISO, slash, Chinese with optional
time) instead of a fixed YYYY-MM-DD pattern
- fall back to list data when an article page fails or lacks content,
instead of crashing the whole feed on cheerio load(null)
- skip content fetching for off-site links (e.g. WeChat posts)
- only override title/pubDate when found on the detail page
- resolve relative links and images against the article URL
- deduplicate the list/detail scaffold into per-namespace utils
- remove dead response.status checks, unused ctx params and noise
comments; fix namespace URLs and antiCrawler flags
* refactor(route): address review feedback for gxmzu, jou and njxzc
- translate code comments to English (AGENTS.md rule 53)
- select the date cell via $(selector, context) instead of .find(selector)
to avoid unicorn/no-array-callback-reference false positives
* refactor(route): simplify gxmzu, jou and njxzc per review
- drop the unused type exports, unnecessary .first() calls and the
unreachable no-content early returns
- restore the original selector object order in gxmzu/jou call sites
- gxmzu/jou: drop try-catch in resolveArticles (no failing article
observed); keep the same-host guard for off-site list entries
- njxzc: drop the same-host guard (list links are same-host /_redirect
URLs); keep try-catch for redirects to intranet-only subdomains
- gxmzu/lib: read the link text directly (library rows have no title
attribute)
* refactor(route): drop jou host guard and njxzc intranet handling
- jou: remove the same-host guard — no off-site rows on the current
first pages, which are all the route reads
- njxzc: remove the intranet-notice branch and the try-catch — every
article on the current first pages loads fine from off-campus; drop
the now-stale route descriptions as well
---------
Co-authored-by: real-jiakai <real.jiakai@gmail.com>
* fix(route/zhihu): obtain __zse_ck from a browser session
`__zse_ck` is computed at runtime by Zhihu's JS from the device fingerprint
and `d_c0`, rotates every few days, and is cross-checked against `d_c0` by
the backend, so it has to come from a real browser session. Drive a browser
seeded with the configured cookies (including the `z_c0` login cookie that
most endpoints now require) to compute a fresh, consistent `__zse_ck`,
harvest the cookie jar, and cache it for 30 minutes so it is refreshed
automatically.
Recommended ZHIHU_COOKIES: "d_c0=...; z_c0=..." (omit `__zse_ck`).
* fix(route/zhihu): fetch posts profile via API instead of HTML
The user's HTML homepage (www.zhihu.com/people/:id) is now rate-limited
(403) more aggressively than the API, which broke /zhihu/posts on the
profile fetch even though the article-list API works. Read the profile
(name, headline, avatar) from /api/v4/members/:id instead.
* fix(route/zhihu): generate __zse_ck with JSDOM
* fix(route/zhihu): use members API for org posts
---------
Co-authored-by: DzmingLi <news@dzming.li>
The /xueqiu/today route requested statuses/hot/listV2.json on xueqiu.com,
which the Alibaba Cloud WAF blocks (returns a challenge page instead of
JSON), so response.data.items was undefined and the route threw 503.
Switch the endpoint to api.xueqiu.com, which serves the same JSON without
the WAF challenge. Also mark antiCrawler: true.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>