Multi search engine integration with 16 engines (7 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and Wolfra...
完整内容
Integration of 16 search engines for web crawling without API keys.
Preparation: AI Agent initializes an empty in-memory cookie store. Cookies are only acquired dynamically during search operations when access is denied
Language Evaluation: Detect the language attribute of the search query. If the query is in Chinese, use Domestic search engines (Baidu, Bing CN, Bing INT, 360, Sogou, WeChat, Shenma). If the query is non-Chinese, use International search engines (Google, Google HK, DuckDuckGo, Yahoo, Startpage, Brave, Ecosia, Qwant, WolframAlpha). Select engines based on query relevance and availability.
Controlled Search: Use web_fetch to execute search requests with rate limiting:
Cookie Management:
Retry Mechanism: If a search fails due to cookie/session issues, retry once with freshly acquired cookies after a 2-second delay
Result Aggregation: Consolidate successful results from search engines, organize and summarize them to output a core search report
https://www.baidu.com/s?wd={keyword}https://cn.bing.com/search?q={keyword}&ensearch=0https://cn.bing.com/search?q={keyword}&ensearch=1https://www.so.com/s?q={keyword}https://sogou.com/web?query={keyword}https://wx.sogou.com/weixin?type=2&query={keyword}https://m.sm.cn/s?q={keyword}https://www.google.com/search?q={keyword}https://www.google.com.hk/search?q={keyword}https://duckduckgo.com/html/?q={keyword}https://search.yahoo.com/search?p={keyword}https://www.startpage.com/sp/search?query={keyword}https://search.brave.com/search?q={keyword}https://www.ecosia.org/search?q={keyword}https://www.qwant.com/?q={keyword}https://www.wolframalpha.com/input?i={keyword}// Basic search
web_fetch({"url": "https://www.google.com/search?q=python+tutorial"})
// Site-specific
web_fetch({"url": "https://www.google.com/search?q=site:github.com+react"})
// File type
web_fetch({"url": "https://www.google.com/search?q=machine+learning+filetype:pdf"})
// Time filter (past week)
web_fetch({"url": "https://www.google.com/search?q=ai+news&tbs=qdr:w"})
// Privacy search
web_fetch({"url": "https://duckduckgo.com/html/?q=privacy+tools"})
// DuckDuckGo Bangs
web_fetch({"url": "https://duckduckgo.com/html/?q=!gh+tensorflow"})
// Knowledge calculation
web_fetch({"url": "https://www.wolframalpha.com/input?i=100+USD+to+CNY"})
| Operator | Example | Description |
|---|---|---|
site: |
site:github.com python |
Search within site |
filetype: |
filetype:pdf report |
Specific file type |
"" |
"machine learning" |
Exact match |
- |
python -snake |
Exclude term |
OR |
cat OR dog |
Either term |
| Parameter | Description |
|---|---|
tbs=qdr:h |
Past hour |
tbs=qdr:d |
Past day |
tbs=qdr:w |
Past week |
tbs=qdr:m |
Past month |
tbs=qdr:y |
Past year |
| Bang | Destination |
|---|---|
!g |
|
!gh |
GitHub |
!so |
Stack Overflow |
!w |
Wikipedia |
!yt |
YouTube |
integrate x^2 dx100 USD to CNYAAPL stockweather in Beijingreferences/advanced-search.md - Domestic search guidereferences/international-search.md - International search guideCHANGELOG.md - Version historyMIT