Skip to content
A simple python site that shows movies with modal trailers.
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is a demonstration of how one can use python with classes, html and css to create a nice little movie page. There are three main files in this project. Note that these files need to remain in the same tree structure.


  1. Clone this repository
  2. Change to the directory where you cloned this repository.
  3. In the Terminal window type in 'python'. This will automatically open the fresh-tomatoes.html file in your browser.


  1. Ent_center
    Because we created the class structure in media, this page is very nicely layed out by creating an instance of movie for each title. Each movie instance is added to the movies list which is then passed into '' as a parameter.
    Fresh_tomatoes is the main outline of the site.
    This contains all the JQuery, HTML and CSS that makes this page work.
  3. shows the basic class creation. Here we include a movie title, movie storyline, poster image and youtube trailer.
    We also add a method called show_trailer that calls the package webbrowser and shows the trailer in a modal.

An example of this site can be found here.

You can’t perform that action at this time.