This Movie Trailer project is the first project of the Full Stack Web Develper course of Udacity. This project cotaines the source code for a website showing movie trailers.
This project was written in Python 2.7.14 and only uses PSL.
Make sure you have installed python 2.7.X
Open a terminal commandline and enter:
python -V
else follow your distribution instruction to install python 2.7.X
Open a terminal command line and enter:
git clone https://github.com/tordne/ud036_StarterCode.git
Open a terminal command line and go to the projects directory:
cd /home/XXX/ud036_StarterCode
then to run the website:
python entertainment_center.py
This will open a new tab in your webbrowser which will be the website.
This file contains th Movie class, which will need several attributes
- Movie Title
- Movie Poster Link
- Movie Trailer Link
There is also one method which will open the link of the movie trailer in a webbrowser.
Movie.show_trailer()
This file contains all the Movie Instances, please feel free to remove and add your movies by using the movie class with the following syntax:
# Khan Kluay movie: movie title, poster image, movie trailer
kluay = media.Movie(
"Khan Kluay",
"https://upload.wikimedia.org/wikipedia/en/7/77/Khankluay.jpg",
"https://www.youtube.com/watch?v=DsmWluXpLQw"
)
Within the main there is one list variable movies which will contain all the movies that will be used on the HTML page.