A-A+
众人搜索网网盘搜索api接口
看到有朋友想调用众人搜索网的搜索结果,下面专门为大家制作了一个网盘搜索的api接口,空间需支持php代码,即可调用众人搜索网的网盘搜索结果。先来个搜索框的代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <html> <head> <base target="_blank"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Language" content="zh-cn"> </head> <body> <form action="此处填写需要展现搜索结果的页面网址" id="cse-search-box"> <input type="hidden" name="ie" value="utf-8" /> <input type="text" name="q" id="q" value="" size="33"/> <input type="submit" name="sa" value="网盘搜索" /> </form> </body> </html> |
搜索结果页面,用iframe调用本站提供的搜索结果页面即可,代码参考如下:
1 2 3 4 5 6 7 8 9 10 11 | <?php $q=$_GET['q']; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <iframe src="http://api.wangpan.renrensousuo.com/?q=<?php%20$q%20?>" name="I1" width="555" height="1550" frameborder="0" scrolling="no" align="middle"></iframe> </body> </html> |
注意:搜索结果页面的需要将其中的?php%20$q%20?替换为:?php $q ?