Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffa7e2f

Browse files
committed
Minor fix
1 parent 637d3cb commit ffa7e2f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

thirdparty/pagerank/pagerank.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import urllib
1616

1717
def get_pagerank(url):
18+
url = url.encode('utf8') if isinstance(url, unicode) else url
1819
_ = 'http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=%s&q=info:%s' % (check_hash(hash_url(url)), urllib.quote(url))
1920
try:
2021
f = urllib.urlopen(_)

0 commit comments

Comments
 (0)