查看: 855|回复: 5
收起左侧

[其他] 问一个搜索串的问题!

[复制链接]
jiandatumu
发表于 2017-7-12 08:58:09 | 显示全部楼层 |阅读模式
最近发现搜狗有知乎和微信搜索功能,就想加到浏览器的搜索栏里,那么问题就来了:搜狗里的知乎和微信的搜索串是什么啊?
再多问一句:怎么获取搜索串呢?

xzykgc4mc3
发表于 2017-7-12 14:15:46 | 显示全部楼层
本帖最后由 xzykgc4mc3 于 2017-7-12 14:26 编辑

我用火狐,自定义的搜索引擎xml如下。楼主参考参考
知乎的,我用它自己网站的。没用搜狗知乎搜索。
[XML] 纯文本查看 / 双击代码区域 Ctrl+A快速复制
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>知乎</os:ShortName>
<os:Description>知乎</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAslJREFUOI1dk01oFVcUx3/nzsz7yMt7mZpMNAQSv6BUJI2tYpus0oVIRdGCaNVV6aaiRcxSuih+gLQoLbSL0l1LoY1QLDEbsQtto27U+NFiVwrGVw2GF/Ne3sybmXtcTJpAz92ce7n/c+6P+z/S/43+GVfvDwGEFmKFsiNkoYAsZyKgFsSAWryejZMmqf41BEIjtgz35jkyWGYuTkE1U6GgiqiCzc40taAQVx8MuapKai1zYcxvhwfY/MVdGmFKwxNAWZUz/BtZ/h89eYMALijPWgkn31sBwLG3KhSGi3iugxX44IfH/HqwbwnlP7Q9Y9P05B0MAPWIw9v6uHz7CcNv+GxeWyRuvqSgEUiT3VsDwoU5iOuEC3Ps3hpAfQEAt9FKObTFZz6M2fbZVcZGt4AY9n73N5RL0IgA+PCrKQhKMNNg/8g6aEVgy7htjnDx7iw/XnkMficYDzEGChUoFKGZZq8ut9Pd8RrPw0UUVRBwsTCvHj99MkBOLINrKojA2EcebcUcO769lwmMh5g8GC/bWwELxqKs6XDxcxZNQkQsUSuGZAHiJoV2u9xRF78XQC2K4hqE+XrC+9//Ay9q/H5qmPFbTzl34RF0tkM9WvKUqix6A1ABq7hqwTEeQanMTKyMbOhmZEM3vV0+o79Mg7OoaCQ8jyy8aC0VFAUDAuIwEwlfH1jPdC2k/+gljm9fzZf7+jN/AxdPvMnHm0roxPYlLyiCrByd0npsWefD1OeD7DxzjfF7s7yztsL10yPIwcvwrEb1wi7yRllxYAIKDsGqAKdYxk2tsrpD+PnT1zl0/ibjD5sEnV3cqDZ5+8Qf+OU8NSqUPKjsnaCrz0fcPMbLo1aRlcfvaNxqMvuyDp4haCshbg5NE+I0wXMcsCkztXkCv4S4BTAOINnqPauTSfXWu2pTEIMYJ2NbpsxGWFMUJ7sjAILbOzD5Ck2gKxGz7mB8AAAAAElFTkSuQmCC</os:Image>
<SearchForm>[url]http://www.zhihu.com/</SearchForm>[/url]
<os:Url type="text/html" method="GET" template="http://www.zhihu.com/search?q={searchTerms}" resultDomain="zhihu.com">
</os:Url>
</SearchPlugin>


微信的
[XML] 纯文本查看 / 双击代码区域 Ctrl+A快速复制
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>搜狗微信</os:ShortName>
<os:Description>搜狗微信</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAG9ElEQVRYha1Xa2xcRxUeGkhoGu/unbH3veu1d+2k+E/CJrG9d6Yy9nr9tnf9qvOykxhSUKMiVIF4KCISgkqUPwhRVaGkqlJFiVuJH9CqqD+KRKvyaKVKTSTaSEAIhKJ2vfXundn72PXhx71399qxYydwpNHdHZ2Z7zuPOWcGoW1KKbXHy2W8KCi+zCl+XzCiCEbAGgqn+Jpg5EVO8elSao93u/tuKbzbc4Az/LJg2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0WaCRv/TQ0QAAAABJRU5ErkJggg==</os:Image>
<os:Url type="text/html" method="GET" template="http://weixin.sogou.com/weixin?query={searchTerms}" resultDomain="weixin.sogou.com">
</os:Url>
</SearchPlugin>

搜狗知乎
[XML] 纯文本查看 / 双击代码区域 Ctrl+A快速复制
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>搜狗知乎</os:ShortName>
<os:Description>搜狗知乎</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAG9ElEQVRYha1Xa2xcRxUeGkhoGu/unbH3veu1d+2k+E/CJrG9d6Yy9nr9tnf9qvOykxhSUKMiVIF4KCISgkqUPwhRVaGkqlJFiVuJH9CqqD+KRKvyaKVKTSTaSEAIhKJ2vfXundn72PXhx71399qxYydwpNHdHZ2Z7zuPOWcGoW1KKbXHy2W8KCi+zCl+XzCiCEbAGgqn+Jpg5EVO8elSao93u/tuKbzbc4Az/LJg2HAAbjFwRVC8xLvcX7xv4E+pW+IU/9K5Maf4bS7jcwpz9y1TKZrvxK7Cfo+nkPI0K5SkuYzPcYr/sGYNw88X9ns892a17D4oKL4pGAFB8Sqn0gulLvLwdteXZNwhZHJJULxqkbjFqTu5vcUpd6+gRFgW3Ch249Q9sXeIkHGXYORD0xAiSil3710X8JTrkA3OGf7tclJy3y+4LctJyc0Zfs0mIbrJ4Q0Vi4cbCGfk3xb4a9c70M71Otc70M58J3YV+xpIKePzljI+b7GvgSynJfetbvTgeYQe2Gjv6x1oJ6f4VTOPyL9KbE/THUqC4SsWy7/kO7HLnv+UuiXe0/QDkfbdVDN+UAf8oA4FQB0OgDocBHUkaH6HA6AO+lfVAf8H5X7fs7y3cexGAu2y98l3Ypeg5AMrry6vtZ5Jci3hZPdBe155BGdErzdf7vfVgUeCoI2GQBsLgTYero+xEGijIZPQU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RVhD6pdUvOpB9ZSXHN9oLCSF+5zwu1cjwSBG08BFrWakJTUXNYoPqU1ZSyEVPP7ooZ33v23WIJoR3WjRq4LP2w5r7Cfo+HM1wQjIAik+/Y8ys9roRINz1V7vf/vdaK7TY8ETbB7DFRb8tmS/ZXyhnfhUJPvb4oTPqWZeiy3aLrMaT4lNWUjFLK88j6GFu94Wx5yP9CeTj4tjoavKmNBA37HqCNhNTycPAf6qD/N2LQ/81yWoquTTx3UlCsm9bjxQ0TSVB81WK4wlOuQ5sl3P3IclJyC4b/Kii+uqnS7STaLSh+06pSJUFJ7v9JQqFkfstX03JScnOKX3c8Ri4qnQ/5/mdwGfcLSgRn+Pktld9Jos8Jin9i35QEI4pC8U+387jg3Z4DhZSn2f5/HqEHFIqfFAxXrOP3yhJCO7bFupjC3Xc8tSj5iDP8iqDkKU7xeYXiJ63fL3GK/2kVtXevd6CdRSbJnOE/Ota/uNF1f0sxX0v46roX8caDEi4YvsJlfM4xV+Sy9NV7Bl4vf4uhzxe7cYpT6XHB8NOc4V9wip8TDP9YyORskUrUrm43EmgXp+TPnOJnubw7uNme/wX0WaCRv/TQ0QAAAABJRU5ErkJggg==</os:Image>
<os:Url type="text/html" method="GET" template="http://zhihu.sogou.com/zhihu?query={searchTerms}" resultDomain="zhihu.sogou.com">
</os:Url>
</SearchPlugin>
jiandatumu
 楼主| 发表于 2017-7-12 18:59:59 | 显示全部楼层
xzykgc4mc3 发表于 2017-7-12 14:15
我用火狐,自定义的搜索引擎xml如下。楼主参考参考
知乎的,我用它自己网站的。没用搜狗知乎搜索。
[mw_s ...

多谢,是不是只要把“{searchTerms}”换成“%s”就可以了?
xzykgc4mc3
发表于 2017-7-12 19:51:00 | 显示全部楼层
jiandatumu 发表于 2017-7-12 18:59
多谢,是不是只要把“{searchTerms}”换成“%s”就可以了?

你试试看。不知道你的浏览器是什么
jiandatumu
 楼主| 发表于 2017-7-14 09:52:58 | 显示全部楼层
xzykgc4mc3 发表于 2017-7-12 14:15
我用火狐,自定义的搜索引擎xml如下。楼主参考参考
知乎的,我用它自己网站的。没用搜狗知乎搜索。
[mw_s ...

还想再麻烦你一下:包含这些数据文本的xml数据是怎么获得的?
xzykgc4mc3
发表于 2017-7-14 12:54:48 | 显示全部楼层
jiandatumu 发表于 2017-7-14 09:52
还想再麻烦你一下:包含这些数据文本的xml数据是怎么获得的?

是我依样画葫炉,从一些饭友分享的xml里面照写过来的
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛|优惠券| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.3( 苏ICP备07004770号 ) GMT+8, 2017-7-27 22:46 , Processed in 0.109314 second(s), 6 queries , MemCache On.

快速回复 返回顶部 返回列表