Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixing rank calculation, cf. #74 #76

Merged
merged 1 commit into from

2 participants

@oncletom

Pagerank URL needed to be updated.

@chriso
Owner

Perfect thanks!

@chriso chriso merged commit 6f1aae1 into chriso:master
@chriso chriso referenced this pull request from a commit
@chriso apply pagerank fixes, re #76 54eb0c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. @oncletom
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  builtin/pagerank.coffee
View
2  builtin/pagerank.coffee
@@ -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])/
Something went wrong with that request. Please try again.