This code launches a webpage that displays some of my forever favorite movies, along with a short storyline of each movie. You can click on the movie to watch the trailer.
- Download all the files in the same folder.
- Open movie_trailer_hub.py either by using command prompt, IDLE, or any other Python IDE (such as PyCharm).
- If you want to add more movies, create instances of your movie using class Movie. See in media.py file for the class definition.
- Append your new instance of the class Movie to the list 'movie'.
- Run the movie_trailer_hub.py file.
- media.py : Contains class definition and constructor function.
- movie_trailer_hub.py : Contains instances of class Movie and passes them as a list to the function that opens the webpage.
- webpage_builder.py : Contains function open_movies_page that takes in the list of movies (instances of the class Movie) and dynamically creates an html page(movie_trailer_hug.html) in the same folder. This page displays all the movies in tile format with movie poster, title, and storyline. Clicking on any movie tile loads its youtube trailer.
- movie_trailer_hub.html : A sample output html page.
If the file does not open in your default webbrowser, try to open the html file in Firefox or Chrome. Contact sejalrparikh@gmail.com for any other issues.