I am having trouble figuring out how to extract an EXIF tag from a raw photo using PyExifTool. All I want to do is extract the date the photo was created and rename the project folder with that date. I've tried a variety of things I keep getting a series of errors ending with "ValueError("No JSON object could be decoded").
Like:
import exiftool
files = "CRW_1368.CRW"
with exiftool.ExifTool() as et:
metadata = et.get_tag(DateTimeOriginal, files)
print execute_json(metadata)
It's not clear to me how to properly set it up. I am relatively new to scripting.
Thanks for the help!