a website that shows the favorite movies and trailer for udacity full-stack training project 1
The one include the html code, when call the funtion open_movies_page, program will generate a html file and open in default broswer. this template was download from udacity and updated to fix my code project.
define the basic class, media and movie, movie is the inherience of the media.
To create instances for differnt movies, this one is supporse to be run in the IDLE, then will generate the html file.
The one generated by running the entertainment_center.py, to test the result, download this file and opened in your browser.
As cannot access the youtube from china, the videos are form China youku.com, so if you see the ad in the videos, please do not click on it and it will auto play the trailer once the ad is over.
- You need to install the python3 and browser in your computer. To download the python3 please move to the python.org
- Download media.py, fresh_tomatoes.py and entertainment_center.py. Put them together in the same folder.
- Run file entertainment_center.py to generate the html file and browser will auto open this html file to show the result.
- You can also just only download the fresh_tomatoes.html file and open it with browser to see the result.