Make a best-guess effort at a film title's release date.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
__init__.py
filmdate.py
requirements.txt
test_filmdate.py

README.md

filmdate.py Build Status

Make a best-guess effort at a film title's release date.

This script leverages the excellent Open Movie Database (OMDb) library to figure out a film title's release date.

Returns zero and prints the year if the script can parse a release date, exits non-zero with an error message if something fails.

Use

Pretty easy. Note that you need the modules listed in requirements.txt, so get them installed however you like (usually pip install -r requirements.txt.)

As a command-line script:

$ ./filmdate.py True.Grit.avi
2010

From within python:

>>> import filmdate
>>> filmdate.year('The.Birds.mp4')
u'1963'
>>>

Testing

Also easy:

$ nosetests