Created
December 20, 2024 14:17
-
-
Save documentprocessing/55cccbeeb42624e06bd0e5f286725b33 to your computer and use it in GitHub Desktop.
Read Metadata information of a File with Python pyExifTool
This file contains hidden or 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 exiftool | |
files = ["2407.10671v3.pdf"] | |
with exiftool.ExifToolHelper() as et: | |
metadata = et.get_metadata(files) | |
for d in metadata: | |
for k, v in d.items(): | |
print(f"Dict: {k} = {v}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment