欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php 批量查詢搜狗sogou代碼分享

 更新時(shí)間:2015年05月17日 11:51:51   投稿:hebedich  
本文給大家分享的是使用php實(shí)現(xiàn)批量查詢搜狗的實(shí)例代碼,非常的簡單實(shí)用,有需要的小伙伴可以參考下。

php 批量查詢搜狗sogou的rank,非常不錯(cuò),主要是使用了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('no site');
}
 
foreach($arr as $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;  
  }
}

以上所述就是本文的全部內(nèi)容了,希望大家能夠喜歡。

相關(guān)文章

最新評(píng)論