Giter VIP home page Giter VIP logo

waldo-python's Introduction

EXIF reading application for Waldo Photos

This Python based application will remotely contact the Amazon S3 instance, create a Python dictionary to store the photo indices, URLs, and EXIF data. This is accomplished by looping through the provided XML document, grabbing each image to a temporary directory, parsing the EXIF data, and storing it back into the Python dictionary. The indicies for the Python dictionary start at 1 for easy reference and it will be handy if they had to be imported into a SQL database since the indicies start at 1 in SQL.

I have heavily commented the code to explain my methodology and also provided print messages to the console to alert the user when the next stage is happening. I used system libraries for the majority of the code and only one 3rd party library (exifread) was used and is referenced locally. The code also aims to follow PEP8 styling standards.

There are some checks to make sure the image isn't giving a 403 or 404 error and if there is an error of that type, the EXIF fields for that associated image are left blank. This test is currently saving data to a local JSON document, but storage in a SQL (MySQL, SQLite) or NoSQL (MongoDB) can be added if requested.

NOTE: When running the script to contact the S3 instance, I was getting 403 errors meaning the file was forbidden. When running your tests, you may run across an issue where the request times out from the server and sometimes it will not. Either way, if you comb through the code, you will see the methodology of getting the images, storing the data, and exporting them into a format like JSON that can be read and stored through any programming language and inserted into a database.

Running

Open up a Mac or Linux terminal and run python2.7 exif.py or ./exif.py to use the locally installed Python 2.7 runtime on the machine. If the script does not run, run chmod +x exif.py before running the script again.

waldo-python's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.