📦v2.0.0
v2.0.0
v2.0.0 is a major upgrade from v1.2.7, introducing Playwright support for the first time and restructuring browser-
assisted search and fetch flows.
v2.0.0 相比 v1.2.7 是一次较大的升级,首次引入了 Playwright,并重构了浏览器增强的搜索与抓取链路。
Highlights / 主要更新
- First-time Playwright integration for browser-assisted workflows
首次引入 Playwright,用于支持浏览器增强能力 - Added flexible Playwright integration options:
PLAYWRIGHT_PACKAGE, PLAYWRIGHT_MODULE_PATH, PLAYWRIGHT_EXECUTABLE_PATH, PLAYWRIGHT_WS_ENDPOINT,
PLAYWRIGHT_CDP_ENDPOINT
新增灵活的 Playwright 接入方式:
PLAYWRIGHT_PACKAGE、PLAYWRIGHT_MODULE_PATH、PLAYWRIGHT_EXECUTABLE_PATH、PLAYWRIGHT_WS_ENDPOINT、
PLAYWRIGHT_CDP_ENDPOINT - Introduced SEARCH_MODE with request, auto, and playwright modes
新增 SEARCH_MODE 配置,支持 request、auto 和 playwright 三种模式 - Refactored Bing browser fallback flow with improved request-to-browser switching and Playwright availability
detection
重构 Bing 的浏览器回退链路,优化 request 到浏览器模式的切换逻辑,以及 Playwright 可用性探测 - Added a browser cookie bridge so browser-acquired cookies can be reused by request-based fetches
新增浏览器 Cookie bridge,可将浏览器获取到的 Cookie 复用到 request 请求中 - Enhanced fetchWebContent with browser cookie retry, browser HTML fallback, and retrievalMethod reporting
增强 fetchWebContent,支持 browser cookie retry、browser HTML fallback,并新增 retrievalMethod 字段标识抓取方式 - Improved CSDN and Zhihu article fetching with browser-assisted retry and better whitespace normalization
增强 CSDN 和知乎文章抓取,支持浏览器辅助重试,并优化正文空白清理 - Unified LinuxDo and Zhihu site search on top of the shared Bing capability
将 LinuxDo 和知乎的站内搜索统一复用到共享的 Bing 能力之上 - Added live tests covering Bing, web content fetching, and article fetching scenarios
新增多组 live test,覆盖 Bing、网页抓取和文章抓取场景 - Updated documentation with Playwright usage, CDP examples, and Windows PowerShell examples
更新文档,补充了 Playwright 用法、CDP 示例以及 Windows PowerShell 示例
Breaking Changes / 破坏性变更
- SEARCH_MODE currently affects Bing only
SEARCH_MODE 当前仅对 Bing 生效 - Browser-assisted behavior is newly introduced in this release, so users adopting Playwright-based workflows should
review the new environment variables and runtime options
浏览器增强能力是本版本首次引入,因此如果你要启用基于 Playwright 的工作流,需要检查新的环境变量和运行配置
Upgrade Notes / 升级说明
- If you only use request-based behavior, upgrading should be straightforward
如果你只使用基于 request 的能力,这次升级通常可以直接完成 - If you want browser-assisted behavior, install and configure Playwright manually after upgrading
如果你需要浏览器增强能力,请在升级后手动安装并配置 Playwright - CDP is supported via PLAYWRIGHT_CDP_ENDPOINT, which can be used to connect to an existing local Chrome/Chromium
session
支持通过 PLAYWRIGHT_CDP_ENDPOINT 使用 CDP,可连接到本地已有的 Chrome/Chromium 会话
Why 2.0.0 / 为什么是 2.0.0
This release introduces a new browser-assist architecture, adds Playwright as a new optional capability, and changes
how search and content fetching can fall back from request mode to browser mode.
这次更新引入了一套新的浏览器增强架构,首次加入 Playwright 作为可选能力,并改变了搜索与内容抓取从 request 模式回退到浏
览器模式的整体方式。
What's Changed
Full Changelog: v1.2.7...v2.0.0