FlanChan 6f50d57298 feat(route/baidu): add BAIDU_COOKIE support and extract shared … (#21663)
* 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>
2026-07-30 12:15:32 +08:00
2026-07-30 03:37:47 +00:00
2026-01-13 00:06:06 +08:00
2025-12-07 00:15:41 +08:00
2026-07-22 22:30:24 +08:00
2026-01-13 00:06:06 +08:00
2025-06-06 21:38:15 +08:00
2025-12-28 18:42:39 +08:00
2024-03-09 20:30:59 +08:00
2026-07-09 05:31:38 +08:00
2026-07-09 02:37:41 +08:00
2026-03-25 23:16:40 +08:00
2026-07-10 23:26:43 +08:00

RSSHub

RSSHub

🧡 Everything is RSSible

docker publish npm publish test Test coverage Visitors

Telegram group Telegram channel X (Twitter)

SX.org proxies for RSSHub
SX.org proxies fit well with RSSHub's proxy configuration and self-hosted RSS workflows. Use promo code RSShub3gb to get a free trial period for RSSHub users.
Folo
RSSHub pairs especially well with Folo, an AI RSS reader for feed discovery and modern reading workflows. The project is also open source on GitHub.

Introduction

RSSHub is the world's largest RSS network, consisting of over 5,000 global instances.

RSSHub delivers millions of contents aggregated from all kinds of sources, our vibrant open source community is ensuring the deliver of RSSHub's new routes, new features and bug fixes.

Documentation | Folo | Telegram Group | Telegram Channel | X (Twitter)

  • Folo | An AI RSS reader that works especially well with RSSHub. Source code: GitHub.
  • RSSHub Radar | A browser extension that can help you quickly discover and subscribe to the RSS and RSSHub of current websites.
  • RSSBud | RSSHub Radar for iOS platform, designed specifically for mobile ecosystem optimization.
  • RSSAid | RSSHub Radar for Android platform built with Flutter.
  • DocSearch | Link RSSHub DocSearch into Raycast.
  • Awesome RSSHub Routes | Curated list of RSS feeds and RSSHub routes.

Contribute

We welcome all pull requests. Suggestions and feedback are also welcomed here.

Refer to Quick Start

Deployment

Refer to Deployment

Special Thanks

Logo designer sheldonrrr

              

Author

RSSHub © DIYgod, Released under the AGPL-3.0 License.
Authored and maintained by DIYgod with help from contributors (list).

Blog @DIYgod · GitHub @DIYgod · X (Twitter) @DIYgod · Telegram Channel @awesomeDIYgod

Languages
TypeScript 99.5%
JavaScript 0.3%