This is my code that gets the checksum of the file:
import hashlib
print hashlib.md5(open('file.mp3','rb').read()).hexdigest()
The result is a checksum, including metadata and file contents. Is there a way to view only the contents of a file, ignoring metadata?
source
share