Releases: A3S-Lab/Search
Releases · A3S-Lab/Search
v0.5.0 - Re-add Baidu & Bing China
What's New
Baidu & Bing China Re-added
- Baidu (百度): Re-added behind
headlessfeature using PageFetcher pattern - Bing China (必应中国): Re-added behind
headlessfeature using PageFetcher pattern - Both engines use the shared BrowserPool for efficient Chrome process management
Engine Count: 8 Total
- 5 default engines: DuckDuckGo, Brave, Wikipedia, Sogou, 360 Search
- 3 headless engines: Google, Baidu, Bing China (require
--headlessflag + Chrome)
Quality
- 222 unit tests (198 library + 24 CLI), 94.36% line coverage
- Clippy clean, zero warnings
Usage
# Search with Baidu and Bing China
a3s-search "Rust 编程" -e baidu,bing_cn --headless
# All headless engines
a3s-search "Rust" -e g,baidu,bing_cn --headlessv0.4.0 - Headless Browser Support
What's New
Headless Browser Support
- PageFetcher trait: Pluggable page fetching abstraction (plain HTTP or headless browser)
- HttpFetcher: reqwest-based PageFetcher for server-rendered pages
- BrowserPool: Shared Chrome process with tab concurrency control (semaphore-based)
- BrowserFetcher: CDP-based PageFetcher for JavaScript-rendered pages
- WaitStrategy: Configurable wait strategies (Load, NetworkIdle, Selector, Delay)
Google Engine Re-added
- Google search engine re-added behind
headlessCargo feature - Uses CSS selectors:
div.g,h3,a[href],div.VwiC3b - Weight: 1.5 (higher trust), Timeout: 10s
CLI Updates
--headlessflag for enabling headless browser modea3s-search enginesnow shows headless engines section- Graceful warnings when headless feature not compiled in
Quality
- 207 unit tests (183 library + 24 CLI), 94.07% line coverage
- Zero impact on default build (all browser code behind
headlessfeature) - Clippy clean, zero warnings
Install
# Homebrew
brew tap A3S-Lab/tap && brew install a3s-search
# Cargo
cargo install a3s-search
# With headless support
cargo install a3s-search --features headlessa3s-search v0.3.0
Embeddable meta search engine library with CLI and proxy pool support
Key Features:
- Meta search across multiple engines (DuckDuckGo, Brave, Wikipedia, Sogou, 360)
- Proxy pool support (HTTP, HTTPS, SOCKS5)
- CLI with text/JSON/compact output formats
- 167 tests passing