Created
March 23, 2018 07:13
-
-
Save shreyansh26/06c29b45da61157827bb20a355faa6c9 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
import os | |
import glob | |
import hashlib | |
a = set() | |
filenames = glob.glob("./waldo/*.jpg") | |
for filename in filenames: | |
with open(filename, 'rb') as inputfile: | |
data = inputfile.read() | |
if '9f6e902c233020026caf0ebbb1cf0ff5' == hashlib.md5(data).hexdigest(): | |
print filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment