#!/usr/bin/python3 import mmh3 import requests import codecs import sys # Uncomment `f` and "file=f" if you want to store the results in a file #f = open('rez','w') urls = sys.stdin.read().split("\n") for x in urls: response = requests.get('{}'.format(x), verify=False) favicon = codecs.encode(response.content,"base64") hash = mmh3.hash(favicon) print(hash) #file=f)