Created
October 8, 2020 11:10
-
-
Save Sicks3c/156a27bed46ca38eb3925b0ada69a235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment