主流搜索引擎 User-Agent 字符串库:适用场景与匹配注意事项

79次阅读
没有评论

常用搜索引擎查询 URL 字符串汇总

在配置浏览器自定义搜索引擎、编写自动化脚本或开发快捷搜索工具时,需要使用特定格式的查询 URL。以下是主流搜索引擎及平台的核心请求字符串,其中 {0} 为待替换的关键词占位符。

综合性搜索引擎

  • Google: https://www.google.com/search?q={0}
  • 百度: https://www.baidu.com/s?wd={0}
  • 必应 (Bing): https://cn.bing.com/search?q={0}
  • 360 搜索: https://www.so.com/s?q={0}
  • 搜狗: https://www.sogou.com/web?query={0}
  • DuckDuckGo: https://duckduckgo.com/?t={0}
  • Yandex: https://yandex.com/search/?text={0}

知识库与学术资源

  • 维基百科: https://zh.wikipedia.org/w/index.php?search={0}
  • 百度百科: https://baike.baidu.com/search/word?word={0}
  • 百度学术: https://xueshu.baidu.com/s?wd={0}
  • PubMed: https://pubmed.ncbi.nlm.nih.gov/?term={0}

技术与社交平台

  • GitHub: https://github.com/search?q={0}
  • CSDN: https://so.csdn.net/so/search?q={0}
  • 知乎: https://www.zhihu.com/search?type=content&q={0}
  • 微博: https://s.weibo.com/weibo?q={0}
  • Bilibili: https://search.bilibili.com/all?keyword={0}

专项搜索(电商 / 社交 / 其他)

  • 淘宝: https://s.taobao.com/search?q={0}
  • 京东: https://search.jd.com/Search?keyword={0}
  • 微信文章 (via 搜狗): https://weixin.sogou.com/weixin?type=2&query={0}
  • 微信公众号 (via 搜狗): https://weixin.sogou.com/weixin?type=1&query={0}
  • BT 资源: https://a8.fan55.top/s?word={0}

使用注意事项

URL 编码: 在实际调用这些接口时,请确保将 {0} 替换后的关键词进行 URL Encoding(如将空格转换为 %20+),否则在处理中文或特殊字符时可能会导致请求失效或页面 404。

正文完
 0
Administrator
版权声明:本站原创文章,由 Administrator 于2022-02-07发表,共计1136字。
转载说明:除特别说明外,本站原创内容采用 Creative Commons Attribution 4.0 (CC BY 4.0) 许可协议发布,转载请注明来源并保留原文链接。 本站部分内容基于公开资料整理,并可能经 AI 技术辅助生成或优化,仅供参考,不构成任何专业建议,请读者自行判断与核实。 本站不对第三方资源的可用性、安全性或合法性承担任何责任。
评论(没有评论)
验证码