Technorati 是与 Alexa 类似的网站之一,您可以获得指定的排名。您还获得了所谓的“权限”,它代表:
Technorati 权重是过去六个月中链接到网站的博客数量。数字越高,博客拥有的 Technorati 权限就越大。
…
Technorati Rank 是根据您与榜首的差距计算得出的。具有最高 Technorati 权威的博客是排名第一的博客。您的 Technorati Rank 越小,您就越接近顶峰。
Technorati 权重是过去六个月中链接到网站的博客数量。数字越高,博客拥有的 Technorati 权限就越大。
…
Technorati Rank 是根据您与榜首的差距计算得出的。具有最高 Technorati 权威的博客是排名第一的博客。您的 Technorati Rank 越小,您就越接近顶峰。
如果您希望在自动化事务中找到您的技术人员等级和权威,只需查看这段 PHP 代码即可。
PHP
//url $url = 'http://technorati.com/blogs/davidwalsh.name'; //get the page content $site = get_data($url); //parse for product name $authority = get_match('/Authority: (.*)<\/a>/isU',$site); $rank = get_match('/Rank: (.*) /isU',$site); //build content $content.= 'Authority: '.$authority.'
'; $content.= 'Rank: '.$rank.'
'; //gets the match content function get_match($regex,$content) { preg_match($regex,$content,$matches); return $matches[1]; } //gets the data from a URL function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); return $data; }
这个抓取器太容易了,因为 Technorati 的源代码并没有太大的争议。快乐抓住!