Final Project for Udacity's Programming Foundations in Python. This is a python program that dynamically generates an html file which displays box art and corresponding trailers.
Upgrades to the project:
- use TMDB API to get movies now playing in theatres
- use Youtube API to display trailers in lieu of hardcoding urls
Follow links for additional install options
-
tmdbsimple wrapper for The Movie Database
$ pip install tmdbsimple
-
YouTube Data API Client Library
$ pip install --upgrade google-api-python-client
You will need two API keys. Replace the existing API keys with your keys in the entertainment_center.py file
-
The Movie Database (TMDB):
- Register for and verify an account
- Go to Settings by clicking on your avatar
- Go to API located in the left panel
-
YouTube Data API:
- Register and login to Google APIS
- Click on Credentials in the left panel
- Create an API key
- Click on library in the left panel
- Search or scroll down to YouTube Data API
- Click Enable near the top of the screen to use this API
This will automatically generate a new file "fresh_tomatoes.html" in the directory and automatically open the page in your default browser
python entertainment_center.py