Skip to content

Commit

Permalink
Fixing rank calculation, cf. node-js-libs#74
Browse files Browse the repository at this point in the history
  • Loading branch information
Oncle Tom committed Jan 9, 2012
1 parent df29e03 commit 8e7ef44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/pagerank.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Pagerank extends nodeio.JobClass
# Generate the URL checksum
ch = '6' + GoogleCH strord 'info:' + url

@get 'http://www.google.com/search?client=navclient-auto&ch='+ch+'&features=Rank&q=info:'+encodeURIComponent(url), (err, data) =>
@get 'http://toolbarqueries.google.com/tbr?client=navclient-auto&ch='+ch+'&features=Rank&q=info:'+encodeURIComponent(url), (err, data) =>
if err? then return @retry()

if match = data.match /Rank_1:1:(10|[0-9])/
Expand Down

0 comments on commit 8e7ef44

Please sign in to comment.