A website shows a list of my favorite movies. Hover over the poster, the storyline will display in tooltip style. Click the poster, the trailer will display in modal style.
- media.py: Define the Movie class.
- fresh_tomatoes.py: A template to generate html file, with Movie objects as parameters.
- entertainment_center.py: Initialize the Movie objects and use fresh_tomatoes.py to generate the target HTML file.
- Python 2
- Internet accessed
In the terminal, enter the project folder, run
python entertainment_center.py
Then a HTML file will be generated, and then be opened on the web browser.