Minor update

This commit is contained in:
Miroslav Stampar 2016-02-18 13:56:47 +01:00
parent d6bac363af
commit 3a94435cce

View File

@ -12,6 +12,7 @@
# #
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
import sys
import urllib import urllib
def get_pagerank(url): def get_pagerank(url):
@ -77,3 +78,9 @@ def check_hash(hash_int):
check_byte >>= 1 check_byte >>= 1
return '7' + str(check_byte) + hash_str return '7' + str(check_byte) + hash_str
def main():
print get_pagerank(sys.argv[1]) if len(sys.argv) > 1 else "[x] missing hostname"
if __name__ == "__main__":
main()