采集的地址是:http://alexa.chinaz.com/?domain=csdn.net
主要是想获得当日排名、一周平均排名、一月平均排名、三月平均排名的数据,可是这些数据库是js生成的。<?php
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)');
$url="http://alexa.chinaz.com/?domain=xmnn.cn";
$file=file_get_contents($url);
echo $file;
?>