Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637d3cb commit ffa7e2fCopy full SHA for ffa7e2f
1 file changed
thirdparty/pagerank/pagerank.py
@@ -15,6 +15,7 @@
15
import urllib
16
17
def get_pagerank(url):
18
+ url = url.encode('utf8') if isinstance(url, unicode) else url
19
_ = 'http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=%s&q=info:%s' % (check_hash(hash_url(url)), urllib.quote(url))
20
try:
21
f = urllib.urlopen(_)
0 commit comments