README for a Movie Trailer website. This Website will display the movie name, box art of the movie and when you click on the movie will show the trailer.
- Python
- Install Python 2.7.14 at https://www.python.org/downloads/
- Navigate to the folder you downloaded containing the Python files
- Open the
project_entertainment_centre.pywith IDLE and run the module (F5 key on Mac) - A webpage should open displaying the movies
-
project_media.pycontains the classMovie()that stores your favourite movies, including movie title, box art URL and a YouTube link to the movie trailer. -
project_entertainment_centre.pyis a Python class that creates multiple instances to represent your favourite movies -
Udacity provides a starter code repository that contains a Python module called
fresh_tomatoes.py -
fresh_tomatoes.pycontains theopen_movies_page()function that will take in your list of movies and generate an HTML file including this content, producing a website to showcase your favorite movies.
-
Ensure
fresh_tomatoes.pyis in the same directory as yourproject_media.pyandproject_entertainment_centre.pyfiles -
In
fresh_tomatoes.py, theopen_movies_page()andcreate_movie_tiles_content()functions need the variable names changing to match the names inproject_media.py. In this case,movie.trailer_youtube_urlwas changed tomovie.youtube_trailer_urlto match the instance variable in classMovie()