Skip to content

Instantly share code, notes, and snippets.

@shreyansh26
Created March 23, 2018 07:13
Show Gist options
  • Save shreyansh26/06c29b45da61157827bb20a355faa6c9 to your computer and use it in GitHub Desktop.
Save shreyansh26/06c29b45da61157827bb20a355faa6c9 to your computer and use it in GitHub Desktop.
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