Home  >  Article  >  Backend Development  >  站长工具上的排名查询是什么原理?该怎么解决

站长工具上的排名查询是什么原理?该怎么解决

WBOY
WBOYOriginal
2016-06-13 10:29:32897browse

站长工具上的排名查询是什么原理?
网址:http://tool.chinaz.com/KeyWords/

他最多每次可以查100条百度快照(一页10条,也就是10页,),如果每次用file_get_contents读取网页,然后正则匹配,一次查询100个也就是一次file_get_contents 百度10个页面,速度会很慢的,但是这个站长站的速度为啥那么快?用的什么原理?而且不止这一个站有这个功能,很多站长站都有,我想百度肯定不会给他提供api接口的 !他的原理是什么,为什么那么快

------解决方案--------------------
可以一次看到前100条记录的,不用API。
比如查询CSDN的URL规则:www.baidu.com/s?wd=csdn
在后面加入参数&rn=100即可看到前100个记录,如www.baidu.com/s?wd=csdn&rn=100
------解决方案--------------------
直接取出100条,然后正则提取

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn