Skip to content
baidu

v0.2.0

baidu-cli rebuilt on the any-cli/kit framework.

This release rebuilds baidu-cli on the any-cli/kit framework.

New

  • baidu search — web search results (best effort; CAPTCHA-walled).
  • baidu article and baidu categories — the Baidu Baike (百度百科) encyclopedia: full article detail and lemma stubs under category tags.
  • All read operations are now served over HTTP (baidu serve, NDJSON) and MCP (baidu mcp, stdio).
  • A Baike mirror subsystem (seed, crawl, export, info, queue, jobs, reset-failed): a stateful, resumable crawl into a local pure-Go SQLite store. CLI-only, not exposed over HTTP or MCP.

Changed

  • baidu suggest now takes a positional <query> (was -Q/--query) and uses the www.baidu.com/sugrec endpoint. The legacy /su JSONP path drifted to unparseable GBK.
  • The hot board parser handles Baidu's new two-level nesting.

Honesty note

search is CAPTCHA-walled and Baike (article, categories) is geo-walled (it works from China IPs). Both degrade to clean blocked or no-result exits (code 5 when blocked, code 3 when genuinely empty) rather than crashing or faking data.