mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Minor fix
This commit is contained in:
parent
637d3cbaf7
commit
ffa7e2f6e9
1
thirdparty/pagerank/pagerank.py
vendored
1
thirdparty/pagerank/pagerank.py
vendored
|
@ -15,6 +15,7 @@
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
def get_pagerank(url):
|
def get_pagerank(url):
|
||||||
|
url = url.encode('utf8') if isinstance(url, unicode) else url
|
||||||
_ = 'http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=%s&q=info:%s' % (check_hash(hash_url(url)), urllib.quote(url))
|
_ = 'http://toolbarqueries.google.com/tbr?client=navclient-auto&features=Rank&ch=%s&q=info:%s' % (check_hash(hash_url(url)), urllib.quote(url))
|
||||||
try:
|
try:
|
||||||
f = urllib.urlopen(_)
|
f = urllib.urlopen(_)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user