Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple webpage generator for movies

Project Description

Requirements

This uses both tmdb.org and rotten tomatoes to get information about movies and generate a webpage. The following libraries are needed:

sudo pip install rottentomatoes requests tmdb3

API Licenses

You will also have to sign-up for free API keys at both locations in order to access their info. Either create a file.json with the following format or set your environment.

{
        "ROTTENTOMATOES": "1234567890",
        "TMDB": "1234567890"
}

or

::
export ROTTENTOMATOES=1234567890 export TMDB=1234567890

Page Generator

Getting help:

media -h

usage: A simple media html5 generator [-h] [-p PATH] [-m MOVIES] [-k KEYS]

optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH
 path to install webpages
-m MOVIES, --movies MOVIES
 absolute path to the movies
-k KEYS, --keys KEYS
 location of API keys

The webpage generator only needs to be run when new movies are added to a folder.

media --movies /path/to/movies --path /path/to/put/webpages

This creates a main page with a tile mosaic of movie posters. Clicking on any of the posters will open a modal window with a larger view of the poster and some information about the movie such as run time, rating, rotten tomato scores. There is also an icon next to the run time, which, if clicked will take you to a trailer for the movie. Clicking on the movie poster itself will play the movie.

HTTP Server

Media only creates static webpages. It needs to be combined with a webserver, such as node.js http-server, to make it truely useful. The companion project to this is movie server but really anything can be used.

To install on OSX:

brew install node

Then get the http server

npm install http-server -g

Then start it running

http-server ./ -p 8080

Usage

Now navigate to computer:8080/<webpage_name> to access your movies. Mine is tardis.local:8080/movies.html.

Release History

Release History

This version
History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
media-1.0.3.tar.gz (2.1 MB) Copy SHA256 Checksum SHA256 Source Sep 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting