php 批量查询搜狗sogou代码分享
php批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。
<?php
date_default_timezone_set('Asia/Shanghai');
header('Content-Type:text/html;charset=utf-8');
@$txt=file_get_contents("list.txt");
$arr=explode("\r\n",trim($txt));
if(count($txtarr)<0){
exit('nosite');
}
foreach($arras$v){
$sr=file_get_contents("http://rank.ie.sogou.com/sogourank.php?ur=http%3A%2F%2F{$v}%2F");
$sr=str_replace('sogourank=','',$sr);
if($sr>2){
echo$v."<br/>\n";
}else{
continue;
}
}
以上所述就是本文的全部内容了,希望大家能够喜欢。
热门推荐
10 五一公司放假祝福语简短
11 追星女孩的祝福语简短
12 给长辈端午祝福语 简短
13 生日祝福语有诗意简短
14 团圆日祝福语简短
15 中秋商务祝福语简短最新
16 温暖文艺简短祝福语短句
17 男孩上学祝福语简短的
18 入住酒店文案祝福语简短