Subject: | Little changes in the PR url caused the failure of the module [PATCH] |
Current version doesn't work because of the some PR url changes.
Attached patch solved problem for me.
Patching:
cd WWW-Google-PageRank-0.16/lib/WWW/Google && patch -p0 < w-g-p.patch
Subject: | w-g-p.patch |
--- PageRank.pm 2010-12-07 23:43:36.000000000 +0600
+++ PageRank.pm-patched 2011-10-08 12:07:22.021450020 +0700
@@ -31,7 +31,7 @@
return unless defined $url and $url =~ m[^https?://]i;
my $ch = '6' . _compute_ch_new('info:' . $url);
- my $query = 'http://' . $self->{host} . '/search?client=navclient-auto&ch=' . $ch .
+ my $query = 'http://' . $self->{host} . '/tbr?client=navclient-auto&ch=' . $ch .
'&ie=UTF-8&oe=UTF-8&features=Rank&q=info:' . uri_escape($url);
my $resp = $self->{ua}->get($query);