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
# based on https://github.com/ryansb/sklearn-build-lambda | |
$ mkdir ~/.aws | |
$ cat >> ~/.aws/config | |
[default] | |
aws_access_key_id=YOUR_ACCESS_KEY_HERE | |
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY | |
region=YOUR_REGION (such as us-west-2, us-west-1, etc) |
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
# pip install exifread | |
import os | |
import shutil | |
import exifread | |
def get_date(filename): | |
try: | |
with open(filename, 'rb') as fh: | |
tags = exifread.process_file(fh, stop_tag="Image DateTime") |