This project is for Udacity's full stack nanodegree - P#1 movie trailer website project. It demonstrates using Python to build a class that stores information about some of my favourite films, then dynamically generates a website that displays the movies and allows quick viewing of their trailers.
-
Clone the repository to somewhere on your computer.
-
If needed, install python on your computer. See
-
Open a console in the repository folder, then run
python movies.py
. The website will open in your default web browser. -
You can re-open the website later by double clicking on the
fresh_tomatoes.html
file that was automatically generated by the program in step 3.
The class used to store data about the movies, called Movie
, is in
movies.py
. Objects are created with this class in the same file. The code
for generating the HTML is found in rotten_tomatoes.py
, which was provided
by Udacity as a starting point for the project. I have made some minor
modifications to insert more information on each film on the website.
movies.py
is self-executing, however the code is called through a main()
function to provide compatibility with pydoc or importing as a module.
This program is released under the MIT Licence. See LICENCE.md
for the
full details.
Note that the bulk of rotten_tomatoes.py
was provided by Udacity, Inc.