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 d6bac36 commit 3a94435Copy full SHA for 3a94435
1 file changed
thirdparty/pagerank/pagerank.py
@@ -12,6 +12,7 @@
12
#
13
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
14
15
+import sys
16
import urllib
17
18
def get_pagerank(url):
@@ -77,3 +78,9 @@ def check_hash(hash_int):
77
78
check_byte >>= 1
79
80
return '7' + str(check_byte) + hash_str
81
+
82
+def main():
83
+ print get_pagerank(sys.argv[1]) if len(sys.argv) > 1 else "[x] missing hostname"
84
85
+if __name__ == "__main__":
86
+ main()
0 commit comments