Code covered by the BSD License  

Highlights from
Google's PageRank

from Google's PageRank by Fahad Al Mahmood
Returns Google's PageRank for the entered URL

pagerank(url)
function pr = pagerank(url)

%PAGERANK Returns Google's PageRank for the entered URL
%
% pagerank(url)
% 
% pagerank  : Returns Google's PageRank for the entered URL
% 
% Example:
%   pagerank('http://www.cnn.com')
%   pagerank('www.google.com')
%   pagerank('mathworks.com/matlabcentral/fileexchange/loadCategory.do')

%   Copyright 2005 Fahad Al Mahmood
%   Version: 1.0    $Date: 4-Dec-2005

% PHP script (provided by googlecommunity.com)
pr_script = 'http://64.62.154.62/pagerank.php?url=';

try S = urlread([pr_script url]);
catch error('You need to enter a URL in order to get its PageRank')
end
pr = str2num(S(11:12));

Contact us at files@mathworks.com