# Author: Alex Brocklebank # Date: 7/24/15 # Created with code from Udacity Course ud036 # https://www.udacity.com/course/ud036 import media import make_page # Declaration of Movies Objects for site population: departed = media.Movie("The Departed", "2006", ("An undercover cop and a mole in the police" "attempt to identify each other while " "infiltrating an Irish gang in South Boston."), ("https://upload.wikimedia.org/wikipedia/en/5/" "50/Departed234.jpg"), "https://www.youtube.com/watch?v=auYbpnEwBBg") saints = media.Movie("The Boondock Saints", "1999", ("Fraternal twins set out to rid Boston of the " "evil men operating there while being tracked " "down by an FBI agent."), ("https://upload.wikimedia.org/wikipedia/en/1/1b/" "The_Boondock_Saints_poster.jpeg"), "https://www.youtube.com/watch?v=ydXojYfCF3I") hero6 = media.Movie("Big Hero 6", "2014", ("The special bond that develops between plus-sized"
"One member of Earth's 'Mop Up Crew' finds out things aren't what they seem", "poster": "https://upload.wikimedia.org/wikipedia/en/2/2e/Oblivion2013Poster.jpg", "trailer": "https://www.youtube.com/watch?v=IBVkUb_TWp8" } infinity_war_info = { "title": "Avengers: Infinity War", "storyline": "The Avengers must try to stop Thanos from wiping out half the universe", "poster": "https://upload.wikimedia.org/wikipedia/en/4/4d/Avengers_Infinity_War_poster.jpg", "trailer": "https://www.youtube.com/watch?v=6ZfuNTqbHE8" } avatar = media.Movie(avatar_info['title'], avatar_info['storyline'], avatar_info['poster'], avatar_info['trailer']) theDarkKnight = media.Movie(theDarkKnight_info['title'], theDarkKnight_info['storyline'], theDarkKnight_info['poster'], theDarkKnight_info['trailer']) interstellar = media.Movie(interstellar_info['title'], interstellar_info['storyline'], interstellar_info['poster'], interstellar_info['trailer']) star_wars_V = media.Movie(star_wars_V_info['title'], star_wars_V_info['storyline'], star_wars_V_info['poster'], star_wars_V_info['trailer']) oblivion = media.Movie(oblivion_info['title'], oblivion_info['storyline'], oblivion_info['poster'], oblivion_info['trailer']) infinitywar = media.Movie(infinity_war_info['title'],
import media import fresh_tomatoes import csv ''' Gathers data about various movies stored in movie_data.csv, uses this data to create movie objects, and sends the movie objects to open_movies_page which renders the movies in a browser. ''' movies = [] with open('movie_data.csv', 'rb') as csvreader: reader = csv.DictReader(csvreader) for row in reader: movie = media.Movie(**row) movies.append(movie) fresh_tomatoes.open_movies_page(movies)
import media import fresh_tomatoes # Create instances of the Movie class for the movies in our list alien = media.Movie( "Alien", "The commercial spacecraft Nostromo is on a return trip to" " Earth with a seven-member crew in stasis", "https://upload.wikimedia.org/wikipedia/en/c/c3/" "Alien_movie_poster.jpg", "https://www.youtube.com/watch?v=NZ3qKyPxCP0") blade_runner = media.Movie( "Blade Runner", "In Los Angeles in November 2019, ex-police officer" " Rick Deckard is detained by officer Gaff and" " brought to his former supervisor, Bryant.", "https://upload.wikimedia.org/wikipedia/en/5/53/" "Blade_Runner_poster.jpg", "https://www.youtube.com/watch?v=73rx9W5Tmzg") thelma_and_louise = media.Movie( "Thelma & Louise", "Two friends, Thelma Dickinson and Louise" " Sawyer, set out for a two-day vacation to" " take a break from their dreary lives in" " Arkansas.", "https://upload.wikimedia.org/wikipedia/en/d/" "de/Thelma_%26_Louiseposter.jpg", "https://www.youtube.com/watch?v=qS8bgqhYoZg") black_hawk_down = media.Movie( "Black Hawk Down", "In 1993, following the ousting of the central" " government and start of a civil war, a major" " United Nations military operation in Somalia" " is authorized with a peacekeeping mandate.", "https://upload.wikimedia.org/wikipedia/en/0/0c/" "Black_hawk_down_ver1.jpg", "https://www.youtube.com/watch?v=_Ygi2lDAdLo") gladiator = media.Movie( "Gladiator", "In AD 180, Hispano-Roman General Maximus Decimus"
import fresh_tomatoes import media toy_story = media.Movie( "Toy Story", "A story about a boy and his toys that come to life", "http://media.babyoye.com/images/product/large/BPDIS00926_1.JPG", "https://www.youtube.com/watch?v=KYz2wyBy3kc") hunger_games = media.Movie( "Hunger Games", "A story of a teenager competes in a deadly state sponsored reality show", "https://upload.wikimedia.org/wikipedia/en/thumb/4/42/HungerGamesPoster.jpg/220px-HungerGamesPoster.jpg", "https://www.youtube.com/watch?v=mfmrPu43DF8", ) ratatouille = media.Movie( "Ratatouille", "A story of a trainee waiter and his friend rat that's a great chef", "https://i.ytimg.com/vi/eh62Ri60lXI/movieposter.jpg", "https://www.youtube.com/watch?v=c3sBBRxDAqk") huntsman = media.Movie( "The Huntsman: Winter's War", "Eric and Sara conceal their love in a war between two rival queen sisters", "https://upload.wikimedia.org/wikipedia/en/thumb/a/ab/The_Huntsman_%E2%80%93_Winter's_War_poster.jpg/220px-The_Huntsman_%E2%80%93_Winter's_War_poster.jpg", "https://www.youtube.com/watch?v=_W65ndip7MM") jungle_book = media.Movie( "The Jungle Book", "Mowgli flees the jungle and embarks on a journey of self-discovery", "http://empirecinema.com.au/sites/default/files/the-jungle-book-2016-poster-header-165110.jpg",
import media import fresh_tomatoes # Create various Movies for display ################################### poster_prefix = "http://upload.wikimedia.org/wikipedia/" toy_story = media.Movie( "Toy Story", "A story of a boy and his toys that come to life", poster_prefix + "en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=KYz2wyBy3kc") avatar = media.Movie( "Avatar", "A marine on an alien planet", poster_prefix + "id/b/b0/Avatar-Teaser-Poster.jpg", "https://www.youtube.com/watch?v=6ziBFh3V1aM") school_of_rock = media.Movie( "School of Rock", "Using rock music to learn", poster_prefix + "en/1/11/School_of_Rock_Poster.jpg", "https://www.youtube.com/watch?v=XCwy6lW5Ixc") ratatouille = media.Movie( "Ratatouille", "A rat is a chef in Paris", poster_prefix + "en/5/50/RatatouillePoster.jpg", "https://www.youtube.com/watch?v=c3sBBRxDAqk") midnight_in_paris = media.Movie( "Midnight in Paris", "Going back in time to meet authors", poster_prefix + "en/9/9f/Midnight_in_Paris_Poster.jpg", "https://www.youtube.com/watch?v=FAfR8omt-CY")
# imports HTML & CSS formating for the wenpage import fresh_tomatoes import media # movie details city_of_angels = media.Movie("City of Angels", "A romance Movie", "https://bit.ly/2JuK2sY", "https://www.youtube.com/watch?v=mwWL8cB2Ix8") print(city_of_angels.storyline) UP = media.Movie("UP", "A family movie", "https://bit.ly/2r3afHw", "https://www.youtube.com/watch?v=pkqzFUhGPJg") print(UP.storyline) Fearless = media.Movie("Fearless", "A Kung Fu Movie", "https://bit.ly/2JvfAik", "https://www.youtube.com/watch?v=23LxENZE8zo") print(Fearless.storyline) # idintifying the names of movies will be presented as a list movies = [city_of_angels, UP, Fearless] # Open the movie website in the user's browser, featuring the movies above fresh_tomatoes.open_movies_page(movies) print(media.Movie.VALID_RATINGS)
"""Stores the details of the movie and displays them on website.""" import fresh_tomatoes import media """Declare favorite movies with 4 args each with movie title, movie storyline, movie poster image and movie youtube trailer.""" toy_story = media.Movie( "Toy Story", "A story of a boy and his toys that comes to life", "http://www.gstatic.com/tv/thumb/movieposters/17420/p17420_p_v8_ab.jpg", # NOQA "https://www.youtube.com/watch?v=KYz2wyBy3kc") avatar = media.Movie( "Avatar", "A marine on an alien planet", "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", # NOQA "https://www.youtube.com/watch?v=5PSNL1qE6VY") black_panther = media.Movie( "Black Panther", "the King of Wakanda, rises to the throne in the isolated," "technologically advanced African nation, but his claim is" "challenged by a vengeful outsider who was a childhood" "victim of T'Challa's father's mistake.", "https://vignette.wikia.nocookie.net/marvelcinematicuniverse/images/6/60/Black_Panther_Textless_Character_Poster_01.jpg/revision/latest/scale-to-width-down/350?cb=20171201051945", # NOQA "https://www.youtube.com/watch?v=xjDjIWPwcPU") spider_man_homecoming = media.Movie( "Spiderman: Homecoming",
import fresh_tomatoes # linking with fresh_tomatoes.py import media # linking with media.py # we are creating instances of the class Movie as per media.py # attributes of Movie class as listed: title, storyline, image, trailer dunkirk = media.Movie("Dunkirk (2017)", "Allied soldiers from Belgium, the British Empire and France are surrounded by the German Army, and evacuated during WWII. 8/10 Source: IMDb", "https://upload.wikimedia.org/wikipedia/en/1/15/Dunkirk_Film_poster.jpg", "https://www.youtube.com/watch?v=F-eMt3SrfFU") budapest_hotel = media.Movie("The Grand Budapest Hotel (2014)", "The adventures of Gustave H, a legendary concierge at a famous hotel, and Zero Moustafa, the lobby boy who becomes his most trusted friend. 8.1/10 Source: IMDb", "https://upload.wikimedia.org/wikipedia/en/1/1c/The_Grand_Budapest_Hotel.png", "https://www.youtube.com/watch?v=1Fg5iWmQjwk") interstellar = media.Movie("Interstellar (2014)", "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival. 8.6/10 Source: IMDb", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=0vxOhd4qlnA") pianist = media.Movie("The Pianist (2002)", "A Polish Jewish musician struggles to survive the destruction of the Warsaw ghetto of World War II. 8.5/10 Source: IMDb", "https://upload.wikimedia.org/wikipedia/en/a/a6/The_Pianist_movie.jpg", "https://www.youtube.com/watch?v=u_jE7-6Uv7E") godfather = media.Movie("The Godfather (1972)", "The aging patriarch of an organized crime dynasty transfers control of his clandestine empire to his reluctant son. 9.2/10 Source: IMDb", "https://upload.wikimedia.org/wikipedia/en/1/1c/Godfather_ver1.jpg", "https://www.youtube.com/watch?v=sY1S34973zA") hobbit = media.Movie("The Hobbit: An Unexpected Journey (2012)",
"""This is where the video objects are created""" import urllib import json import fresh_tomatoes import media #movie data is created via an api call. The api provides the poster #title infomation and the plot. The youtube link needs to be provided #individually hence the list of tuples. MOVIE_DATA = [("tt0470752", "https://www.youtube.com/watch?v=XYGzRB4Pnq8"), ("tt0137523", "https://www.youtube.com/watch?v=SUXWAEX2jlg"), ("tt0246578", "https://www.youtube.com/watch?v=fA3DZa6bifE"), ("tt0096283", "https://www.youtube.com/watch?v=92a7Hj0ijLs"), ("tt0180093", "https://www.youtube.com/watch?v=0nU7dC9bIDg"), ("tt0409459", "https://www.youtube.com/watch?v=PVjA0y78_EQ")] MOVIES = [] #Iterate through the list of tuples and create the movies for i in MOVIE_DATA: url = "http://www.omdbapi.com/?i=" + i[0] response = urllib.urlopen(url) data = json.loads(response.read()) movie = media.Movie(data['Title'], data['Plot'], data['Poster'], i[1]) #created movies are pushed onto the above movie list. MOVIES.append(movie) fresh_tomatoes.open_movies_page(MOVIES)
# import the movieSite class here import media import fresh_tomato # added new Movie instances jurassic_park = media.Movie("Jurassic Park", "https://www.youtube.com/watch?v=lc0UehYemQA") the_matrix = media.Movie("The Matrix", "https://www.youtube.com/watch?v=qEXv-rVWAu8") interstellar = media.Movie("Interstellar", "https://www.youtube.com/watch?v=2LqzF5WauAw") blade_runnder = media.Movie("Blade Runner", "https://www.youtube.com/watch?v=gCcx85zbxz4") alien = media.Movie("Alien", "https://www.youtube.com/watch?v=LjLamj-b0I8") the_martian = media.Movie("The Martian", "https://www.youtube.com/watch?v=ej3ioOneTy8") avatar = media.Movie("Avatar", "https://www.youtube.com/watch?v=d1_JBMrrYw8") # toy_story = media.Movie("Toy Story", "A story of a boy and his toys come to life", "https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=ZZv1vki4ou4") # avatar = media.Movie("Avatar", "A marine on an alien planet", # "https://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg", # "https://www.youtube.com/watch?v=d1_JBMrrYw8") # school_of_rock = media.Movie("School of Rock", "Using rock music to learn","https://upload.wikimedia.org/wikipedia/en/1/11/School_of_Rock_Poster.jpg", "https://www.youtube.com/watch?v=XCwy6lW5Ixc") # ratatouille = media.Movie("Ratatouille", "A rat is a chef in Paris", "https://static.rogerebert.com/uploads/movie/movie_poster/ratatouille-2007/large_taAPNsf6G4EXBYSG7Jyvd9HHKnH.jpg", "https://www.youtube.com/watch?v=c3sBBRxDAqk") # midnight_in_paris = media.Movie("Midnight in Paris", "An author meets historical figures in Paris", "https://upload.wikimedia.org/wikipedia/en/9/9f/Midnight_in_Paris_Poster.jpg", "https://www.youtube.com/watch?v=dtiklALGz20") # hunger_games = media.Movie("Hunger Games", "A survival story in a futuristic universe", "https://upload.wikimedia.org/wikipedia/en/3/39/The_Hunger_Games_cover.jpg", "https://www.youtube.com/watch?v=mfmrPu43DF8") # movies list # movies = [toy_story, avatar, school_of_rock, ratatouille, midnight_in_paris, hunger_games] # appending movie instances to a list sci_fi_movies = [jurassic_park, the_matrix, interstellar, blade_runnder, alien, the_martian, avatar] # call open_movies_page fresh_tomato.open_movies_page(sci_fi_movies)
# Mini-Project: Movies Website # In this file, you will define instances of the class Movie defined # in media.py. After you follow along with Kunal, make some instances # of your own! # After you run this code, open the file fresh_tomatoes.html to # see your webpage! # https://www.udacity.com/course/viewer#!/c-nd000/l-4185678656/e-991358856/m-1013629064 import media import fresh_tomatoes Captain_america = media.Movie( "Captain America", "★ ★ ★ ★", "https://upload.wikimedia.org/wikipedia/en/5/53/Captain_America_Civil_War_poster.jpg", "https://www.youtube.com/watch?v=1L3c17AmCZw") interstellar = media.Movie( "Interstellar", "★ ★ ★", "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg", "https://www.youtube.com/watch?v=zSWdZVtXT7E") batman = media.Movie( "Batman Vs Superman", "★ ★ ", "https://upload.wikimedia.org/wikipedia/en/2/20/Batman_v_Superman_poster.jpg", "https://www.youtube.com/watch?v=eX_iASz1Si8") rio_2 = media.Movie( "Rio 2", "★ ★ ★", "https://upload.wikimedia.org/wikipedia/en/6/67/Rio_2_Poster.JPG",
import media import fresh_tomatoes # Below are the instances of the movie objects for 4 Movies blade_runner = media.Movie( 'Blade Runner', 'https://m.media-amazon.com/images/M/MV5BMTk2OTU3MDA3N15BMl5BanBnXkFtZTgwMTg5NjUyMjI@._V1_QL50_SX1777_CR0,0,1777,744_AL_.jpg', # NOQA 'https://www.youtube.com/watch?v=gCcx85zbxz4') thor_ragnarock = media.Movie( 'Thor Ragnarock', 'https://m.media-amazon.com/images/M/MV5BMTY1NDA1Mjc3MF5BMl5BanBnXkFtZTgwNTExMjgwNDI@._V1_QL50_SX1777_CR0,0,1777,744_AL_.jpg', # NOQA 'https://www.youtube.com/watch?v=ue80QwXMRHg') alien_covenant = media.Movie( 'Alien: (Covenant)', 'https://m.media-amazon.com/images/M/MV5BOTE5NzgwMmQtYzcxYy00ZjBkLWJmMGQtZmEyNjA2M2FhNTI1XkEyXkFqcGdeQXVyNDg2MjUxNjM@._V1_QL50_SY1000_CR0,0,1551,1000_AL_.jpg', # NOQA 'https://www.youtube.com/watch?v=svnAD0TApb8') split = media.Movie( 'Split', 'https://m.media-amazon.com/images/M/MV5BMTc1NDYyOTA5MV5BMl5BanBnXkFtZTgwMjE2MDY1OTE@._V1_QL50_SY1000_CR0,0,1552,1000_AL_.jpg', # NOQA 'https://www.youtube.com/watch?v=84TouqfIsiI') # A List of movies to be displayed on the web page movies = [blade_runner, thor_ragnarock, alien_covenant, split] # Opens the browser with the movies list page. fresh_tomatoes.open_movies_page(movies)
# This file defines instances of the class Movie defined in media.py. import media import fresh_tomatoes back_to_the_future = media.Movie("Back to the Future", "Storyline", "https://upload.wikimedia.org/wikipedia/en/d/d2/Back_to_the_Future.jpg", "https://www.youtube.com/watch?v=qvsgGtivCgs") star_trek = media.Movie("Star Trek: Into Darkness", "Captain Kirk and Spock face Khan.", "https://upload.wikimedia.org/wikipedia/en/5/50/StarTrekIntoDarkness_FinalUSPoster.jpg", "https://www.youtube.com/watch?v=r5gdbUC9mWU") inception = media.Movie("Inception", "A professional thief commits corporate espionage by infiltrating the subconscious of his targets through their dreams.", "https://upload.wikimedia.org/wikipedia/en/7/7f/Inception_ver3.jpg", "https://www.youtube.com/watch?v=1g4PLj0PlOM") mission_impossible = media.Movie("Mission Impossible: Ghost Protocol", "Storyline", "https://upload.wikimedia.org/wikipedia/en/b/b5/Mission_impossible_ghost_protocol.jpg", "https://www.youtube.com/watch?v=novQIyjFwJA") star_wars = media.Movie("Star Wars Episode III: Revenge of the Sith", "Storyline", "https://upload.wikimedia.org/wikipedia/en/9/93/Star_Wars_Episode_III_Revenge_of_the_Sith_poster.jpg", "https://www.youtube.com/watch?v=5UnjrG_N8hU") the_dark_knight = media.Movie("The Dark Knight", "Storyline", "https://upload.wikimedia.org/wikipedia/en/8/8a/Dark_Knight.jpg", "https://www.youtube.com/watch?v=EXeTwQWrcwY") movies = [back_to_the_future, star_trek, inception, mission_impossible, star_wars, the_dark_knight]
# import classes form other python files import media import fresh_tomatoes # create list of movies # this is object or instances toy_story = media.Movie( "Toy Story", "A strory of a boy and his toys that come to life", "http://www.pixartalk.com/wp-content/uploads/2009/06/" "ts1poster.jpg", "https://www.youtube.com/watch?v=4KPTXpQehio") # this is instances or object wolf_story = media.Movie( "Wolf warrior 2", "Wolf warrior is about a secret army man in Africa", "http://cdn.darkhorizons.com/wp-content/uploads/" "2017/08/wolf-warriors-2-becomes-chinas-biggest" "-film.jpg", "https://www.youtube.com/watch?v=fkqGiPB2D8M") # this is instances or object spiderman = media.Movie( "Spider Man", "A boy is bitten by a spider and he becomes" "a spiderman and starts saving the world", "https://i.ytimg.com/vi/K4zm30yeHHE/maxresdefault.jpg", "https://www.youtube.com/watch?v=DiTECkLZ8HM") # this is instances or object superman = media.Movie( "Super Man", "An alien orphan is sent from his dying planet" "to Earth," "where he grows up to become superman", "http://www.chicagonow.com/matthew-milams-films-and" "-music/files/2016/12/Christopher-Reeve-" "in-Superman.jpg", "https://www.youtube.com/watch?v=T6DJcgm3wNY")
import media import fresh_tomatoes wolf_of_wall_street = media.Movie( "Wolf of Wall Street", "A man starts a sketchy company and becomes rich", "https://upload.wikimedia.org/wikipedia/en/1/1f/WallStreet2013poster.jpg", "https://www.youtube.com/watch?v=iszwuX1AK6A", "R") superbad = media.Movie( "Superbad", "High school kids are about to graduate", "https://upload.wikimedia.org/wikipedia/en/8/8b/Superbad_Poster.png", "https://www.youtube.com/watch?v=4eaZ_48ZYog", "R") donnie_darko = media.Movie( "Donnie Darko", "A troubled teen is visited by a man in a rabbit suit with a message that the world is ending", "https://upload.wikimedia.org/wikipedia/en/d/db/Donnie_Darko_poster.jpg", "https://www.youtube.com/watch?v=bzLn8sYeM9o", "R") get_him_to_the_greek = media.Movie( "Get Him To The Greek", "A man must get a rockstar to the concert he is going to play", "https://upload.wikimedia.org/wikipedia/en/c/c2/Get_Him_to_the_Greek.jpg", "https://www.youtube.com/watch?v=N6ixkr0-qvo", "R") edge_of_tomorrow = media.Movie( "Edge of Tomorrow", "A soldier relives the same day over and over", "https://upload.wikimedia.org/wikipedia/en/f/f9/Edge_of_Tomorrow_Poster.jpg", "https://www.youtube.com/watch?v=vw61gCe2oqI", "PG-13") jaws = media.Movie(
import media import fresh_tomatoes # create 6 Movie instances all movie titles have been included with the rating toy_story = media.Movie("Toy Story [" + media.Movie.VALID_RATING[0] + "]", "A story of a boy and his toys that come to life", "https://goo.gl/Y53GeP", "https://goo.gl/MuLPSm") avatar = media.Movie("Avatar [" + media.Movie.VALID_RATING[2] + "]", "A marine on an alien planet", "https://goo.gl/175IoT", "https://goo.gl/5WUckU") inception = media.Movie("Inception [" + media.Movie.VALID_RATING[2] + "]", "A story about dream", "https://goo.gl/yjjvvm", "https://www.youtube.com/watch?v=YoHD9XEInc0") pulp_fiction = media.Movie("Pulp Fiction[" + media.Movie.VALID_RATING[3] + "]", "Consists of three interrelated stories", "https://goo.gl/IkSLOu", "https://www.youtube.com/watch?v=s7EdQ4FqbhY") fight_club = media.Movie("Fight Club [" + media.Movie.VALID_RATING[3] + "]", "A depressed man try to destroy the world", "https://goo.gl/02bxfw", "https://www.youtube.com/watch?v=SUXWAEX2jlg") interstellar = media.Movie("Interstellar[" + media.Movie.VALID_RATING[1] + "]", "A story about exploring the universe", "https://goo.gl/dnUCK7", "https://www.youtube.com/watch?v=zSWdZVtXT7E")
import media # Importing media to use class Movie import fresh_tomatoes # Importing fresh_tomatoes to open a movie website page import csv # Importing csv module for csv file reading import os # Importing os module # creating a list of movies movies = [] # Fetching records from csv file csvfile = open(os.getcwd() + "\data.csv") data = csv.reader(csvfile, delimiter=',', quotechar='"') # Creating a list of movies with each record for record in data: movies.append(media.Movie(record[0], record[1], record[2], record[3])) # Closing the csv file after using it csvfile.close() # Calling a layout page fresh_tomatoes.open_movies_page(movies)
import fresh_tomatoes import media # Instances of class Movie. the_force_awakens = media.Movie( "The Force Awakens", "Thirty years after the defeat of the \ Galactic Empire, the galaxy faces a new \ threat from the evil Kylo Ren and the First \ Order.", "http://t0.gstatic.com/images?q=tbn:ANd9GcT6nGxj1D4P-9EiVSY32sb6Ql-XQrbeK5FgM37UI6QxcZwfcfVw", # NOQA "https://youtu.be/sGbxmsDFVnE") the_last_jedi = media.Movie( "The Last Jedi", "Luke Skywalker's peaceful and solitary existence \ gets upended when he encounters Rey, a young \ woman who shows strong signs of the Force.", "http://t2.gstatic.com/images?q=tbn:ANd9GcRgcIU4MKHZkZNeDt_tAewyfwX7PAmSdj_7wdg_FInkZw8Um9F_", # NOQA "https://youtu.be/Q0CbN8sfihY") rogue_one = media.Movie( "Rogue One", "Former scientist Galen Erso lives on a farm with his \ wife and young daughter, Jyn. His peaceful existence \ comes crashing down when the evil Orson Krennic takes \ him away from his beloved family. Many years later, \ Galen becomes the Empire's lead engineer for the most \ powerful weapon in the galaxy.", "http://t0.gstatic.com/images?q=tbn:ANd9GcQ0S5JQhVplHbw7O6nt7Q0r23Bssl9UNzC-z3zy1r45_eLUB43l", # NOQA
import media import fresh_tomatoes # Create instance for each movie harry_potter_01 = media.Movie( "Harry Potter and the Sorcerer's Stone", "Rescued from the outrageous neglect of his" " aunt and uncle, a young boy with a great" " destiny proves his worth while attending" " Hogwarts School of Witchcraft and Wizardry.", "https://tinyurl.com/yb2os4mk", "https://www.youtube.com/watch?v=z86aFALzjgs") harry_potter_02 = media.Movie( "Harry Potter and the Chamber of Secrets", "Harry ignores warnings not to return to" " Hogwarts, only to find the school plagued" " by a series of mysterious" " attacks and a strange voice haunting him.", "https://tinyurl.com/yddd7pkk", "https://www.youtube.com/watch?v=GQAxGb5njBk") harry_potter_03 = media.Movie( "Harry Potter and the Prisoner of Azkaban", "It's Harry's third year at Hogwarts;" " not only does he have a new Defense" " Against the Dark Arts teacher, but" " there is also trouble brewing." " Convicted murderer Sirius" " Black has escaped the Wizards' Prison and" " is coming after Harry.", "https://tinyurl.com/ybf6nssx",
import fresh_tomatoes import media sweet_home_alabama = media.Movie( "Sweet Home Alabama", "a new york fashion designer finds herself back home in her small town dealing with troubles from the past", "https://upload.wikimedia.org/wikipedia/en/thumb/f/fc/Sweet_Home_Alabama_film.jpg/220px-Sweet_Home_Alabama_film.jpg", "https://www.youtube.com/watch?v=BM89EgWx_Gs") oh_brother_where_art_thou = media.Movie( "Oh Brother Where Art Thou", "three escaped covicts search for hidden treasure while being persued by a lawman", "https://images-na.ssl-images-amazon.com/images/I/5107M4P37AL.jpg", "https://www.youtube.com/watch?v=eW9Xo2HtlJI") the_blind_side = media.Movie( "The Blind Side", "The true story of baltimore ravens offensive left tackle Michael Oher", "http://www.gstatic.com/tv/thumb/movieposters/3538632/p3538632_p_v8_aq.jpg", "https://www.youtube.com/watch?v=gvqj_Tk_kuM") the_devil_wears_prada = media.Movie( "The Devil Wears Prada", "A simple and naive graduate in journalism is hired to work as an assistant to a power magazine editor", "https://upload.wikimedia.org/wikipedia/en/e/e7/The_Devil_Wears_Prada_main_onesheet.jpg", "https://www.youtube.com/watch?v=XTDSwAxlNhc") bride_wars = media.Movie( "Bride Wars", "two best friends become rivals when they schedule their weddings on the same day", "https://images-na.ssl-images-amazon.com/images/M/MV5BMTUyNTg2OTUwN15BMl5BanBnXkFtZTgwNzEzMzg5MTI@._V1_UX182_CR0,0,182,268_AL_.jpg",
import media import fresh_tomatoes # make some instances of class Movie kungfu_panda = media.Movie( "Drangon Warrior", "A panda is choosen to be the dragon warrior and save the village", "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTqfMwAq2qCQ6UcWsPRQlrQYvxfr4SNzrY8PjaOyt5prK14u3BGQw", "https://www.youtube.com/watch?v=AhbCYVILusc") dragao_branco = media.Movie( "Bloodsport", "A fighter who participate of the hardest martial arts championship", "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQbjbHNnSaGlfJwSjLgJElddD78Mcg6Uol-DLeOUQ6x_YfJKWWj", "https://www.youtube.com/watch?v=e_e-EvSFdoI") tropa_elite = media.Movie( "Tropa de Elite", "A police officer try to end up with the corruption inside police", "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUSEhMWFhUXFRYWFxUWFRUWFRgVFxcWGBoVFRsYHSggHR0lGxcYITEhJSkrLi4vGB8zODMtNygtLisBCgoKDg0OGxAQGy0lHyUrLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAQUAwQMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAgMEBQYBBwj/xABFEAACAQIEBAQDBQYDBgUFAAABAgMAEQQSITEFBhNBIlFhcQcygRRCkaGxI1JiwdHwFXLhM1ODkrLxJGNzgqIWJTRDRP/EABkBAAMBAQEAAAAAAAAAAAAAAAACAwEEBf/EACkRAAICAgICAQQABwAAAAAAAAABAhEDIRIxIkEEEzJRYRQjJEJxobH/2gAMAwEAAhEDEQA/APDqKKKACiil0AIopdFBtCKKURU/h2B6iyMP/wBaZjra2oF/XcVjdGpWV9q5U9Y6YxEVqxSs1woj0Uq1AphBNKRCa7U3AqCPWsboZK2Rfs5tem8hqxxMNqZVaVSsZwIyRE6AV14GG4q44Th7sx7AU5jYABSPLUqN+mUGU0kirBYhpUeaPX61RSsVxoj0UuRaRTCsKKKKDAooooAKKKKACl0il0AFFFdoNOCrLhcLsHCC97Dewvr3/karr1qOQsekc9pCAhVs19R2I0PtU8jqNlMauVFRNh5E+aJh7g1Cmb0tXqfFsRw+RCY1BP8ACzAX9gdKx+Pw+FyhgpBI/eYm/wCNRhmTe0XyYGumZeipc6R/cufpTQwxI0/A108kczixmnIGsfekOpGhp7DxX1ofRkbsu8bB4VtsRVW4sbVZ4Ce4yML2Gh/lUDF6PUIadF5fkseAgkSeWlzTnEorD9Pr3rnLp0k9hp5+9TOI4ckXJAAGo86lJ/zDV0UaR7HaoUgu3mL1YT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vCuKusMa9lA7kajNlJt+7mO1FFTKGUiivfXarTiGPlmiihkclIhZRb9fpRRQA/yrKI5JLrm0He2xvfapHLOL/wDFSjKPGW10uLNfS4731ooqa+5nbkf9PBftkPmuezJDlW0dyGAsTnsSPYEaD1NVMOKZRYW+ovXKKocRIi4tIt7Zdf4R6/1NTOD8SkV5JFIBYAMuXwMCb2K+hUEeortFADPEOJyHECZiGcAWuPCABYKB5WpH+Nyfux/8goooAd4Rx98OrKqg5jc6kaaXGnnapp5xkuT011Ft28iL0UUAVkHGJUQoG0ItqBoBtb19ar3e5udzvRRQAmiiigD/2Q==", "https://www.youtube.com/watch?v=A6W-nNPl1T8") marlei_eu = media.Movie( "Marlei e eu", "This movie talks about the adventures of a dog and his owner", "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUTExIWFRUXFhgaFxUXFxcXGxcbGBcXHRsbGhoYHSggGB0lGxUaIjIhJykrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGC0lHyUwLisvLS0tLS0tLSstLS0tKy0rLSsuLS0tKy0tLy0tLSsrLy8tKy0tLS0tLTctLS0tLf/AABEIARMAtwMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAABQYBAwQCB//EAD0QAAIBAgQDBQQIBAYDAAAAAAECAAMRBAUSITFBUQYTImFxMoGRoQcUI0JiscHwFlLh8TNygpKy0RVDk//EABoBAQADAQEBAAAAAAAAAAAAAAABAgMEBQb/xAAwEQACAgEDAwIDBgcAAAAAAAAAAQIRAxIhMQRBURNxYYHBIiNCUpGhFDKi0eHw8f/aAAwDAQACEQMRAD8A+3xEQBE04umWQgOyH+ZdNxbfbUCPlKdTzjFJQqkd5WP1KlVFT7Ad27pVJJB03F1BtY+zBFl3iVIZjW7zW1V+6SqVbu+6ut6xVe9VhqKEWUFdx4jvxEk/eVq9WmK7UVpBLKgTUxcX1sXVrr90ADirXJ5BZNxKVmGe4kYdWCuhtX+1+xIfRRrsulb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G5TddAtZLMAoIvtYjfgZvr9nwy001iyK6nwAkh2UnTv4WBQWO8m4gEEuQMChFVdVNdNM9392zDx2a7NZzuCLG+25kxhKOhFS5bSoFza5sLX22mTe/C/nfzmN/5T8fT9+6CTbE1j/L85x1qjg7XMWTGNskImnCk234xBBuiIggREQBERAEREATIiIBiIiAIiIAiIgCIiAeSo6CNA6CIgDQOgmNA6CIgHpBMREEn//Z", "https://www.youtube.com/watch?v=22NkKx6_MWw") # put all instances into a list movies = [kungfu_panda, dragao_branco, tropa_elite, marlei_eu]
import media import fresh_tomatoes """Main entry of the program. Builds the list of my favorite movies """ the_matrix = media.Movie("The Matrix", "The Matrix is a science fiction action media franchise created by The Wachowskis and distributed by Warner Bros. Pictures.", "https://upload.wikimedia.org/wikipedia/en/c/c1/The_Matrix_Poster.jpg", "https://www.youtube.com/watch?v=m8e-FF8MsqU") toy_story = media.Movie("Toy Story", "A story of a boy and his toys come to life", "https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=KYz2wyBy3kc") castle_in_the_sky = media.Movie("Castle in the Sky", "A young boy and a girl with a magic crystal must race against pirates and foreign agents in a search for a legendary floating castle.", "https://upload.wikimedia.org/wikipedia/en/4/40/Castle_in_the_Sky_%28Movie_Poster%29.jpg", "https://www.youtube.com/watch?v=McM0_YHDm5A") forrest_gump = media.Movie("Forrest Gump", "forrest_gump", "https://upload.wikimedia.org/wikipedia/en/6/67/Forrest_Gump_poster.jpg", "https://www.youtube.com/watch?v=uPIEn0M8su0") mulan = media.Movie("Mulan", "To save her father from death in the army, a young maiden secretly goes in his place and becomes one of China's greatest heroines in the process.", "https://upload.wikimedia.org/wikipedia/en/a/a3/Movie_poster_mulan.JPG", "https://www.youtube.com/watch?v=wAbGAkkOgcM") movies = [the_matrix, toy_story, castle_in_the_sky, forrest_gump, mulan] fresh_tomatoes.open_movies_page(movies)
import fresh_tomatoes # Fresh_tomatoes é para abrir a Website import media # Este modulo é para criar uma nova instancia moana = media.Movie( "Moana", "This is a beautiful story of a princess struggling to help her people.", "https://vignette.wikia.nocookie.net/disney/images/8/8b/" "Moana_soundtrack.jpg/revision/latest?cb=20161004073641", "https://www.youtube.com/watch?v=LKFuXETZUsI") star_wars_the_last_jedi = media.Movie( "Star Wars: The Last Jedi", "This movie is more of a star adventure", "https://encrypted-tbn0.gstatic.com/" "images?q=tbn:ANd9GcRZ08p58d7zouKP2BABTfky9D3xpejmd5U_tMEhlc1jS11rCVIY", "https://www.youtube.com/watch?v=Q0CbN8sfihY") the_hobbit_the_battle_of_the_five_armies = media.Movie( "The Hobbit: The Battle of the Five Armies", "The Battle of Five Armies was a battle waged between" "the Orcs and the Wargs of the Misty Mountains", "https://encrypted-tbn0.gstatic.com/" "images?q=tbn:ANd9GcS8O1n9dmEjTPJrsVS6GXMfhWQITKyIFolqM41Vdobu2wanlniB", "https://www.youtube.com/watch?v=ZSzeFFsKEt4") the_lion_king = media.Movie( "The Lion king", "The action of the film revolves around the lion cub Simba" "and the arduous search for his place in the circle of life.", "https://encrypted-tbn0.gstatic.com/"
#these 2 files should be in same folder #import fresh_tomatoes import media toy_story = media.Movie( "Toy Story", "A story of a boy and his toys that come to life", "http://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=vwyZH85NQC4") avatar = media.Movie( "Avatar", "A marine on an alien planet", "http://upload.wikimedia.org/wikipedia/id/b/b0/Avatar-Teaser-Post.jpg", "http://www.youtube.com/watch?v=-9ceBgWV8io") school_of_rock = media.Movie( "School of Rock", "Using rock music to learn", "http://upload.wikimedia.org/wikipedia/en/1/11/School_of_Rock_Poster.jpg", "https://www.youtube.com/watch@v=3PsUJFEBC74") ratatouille = media.Movie( "Ratatouille", "A rat is a chef in Paris", "http://upload.wikimedia.org/wikipedia/en/5/50/RatatouillePoster.jpg", "https://www.youtube.com/watch?v=c3BBRxDAqk") midnight_in_paris = media.Movie( "Midnight in Paris", "Going back in time to meet authors", "http://upload.wikimedia.org/wikipedia/en/9/9f/Midnight_in_Paris_Poster.jpg", "https://www.youtube.com/watch?v=atLg2wQQxvU") hunger_games = media.Movie( "Hunger Games", "A really real reality show",
import media import fresh_tomatoes """ declare favorite movies, with 4 args each: title (movie's title) poster_image_url (url to poster image) trailer_youtube_url (url to youtube trailer) """ print("Content-type:text/html \n") TP = media.Movie("Tarezameen Par", "http: // www.bollylocations.com / clix_images/201701040601560.Taare % 20Zameen % 20Par.jpg", "tn_2Ie_jtX8") TI = media.Movie("Three idiots", "http: // st1.bollywoodlife.com/wp-content/, uploads/photos/3-idiots-movie-poster-201601-657872.jpg", "xvszmNXdM4w") SB = media.Movie("Sathamanam Bhavathi", "https://i.ytimg.com/vi/paD2oJXdZEE/maxresdefault.jpg", "LG_qGiHqmIY") MB = media.Movie("Mayabazar", "http://www.idlebrain.com/images4/wp-27mayabazaarcthumb.jpg", "Q9M6QW0MH6E") # assign individual movies to mylist mylist = [TP, TI, SB, MB] # call movie trailer page method and pass mylist and sorting option fresh_tomatoes.open_movies_page(mylist)
import media import fresh_tomatoes toy_story = media.Movie( "Toy Story", "A story of a boy and his toy that comes to life", "https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=vwyZblah") #print(toy_story.trailer_youtube_url) avatar = media.Movie( "Avatar", "A marine on an alient planet", "https://upload.wikimedia.org/wikipedia/id/b/b0/Avatar-Teaser-Poster.jpg", "http://www.youtube.com/watch?v=5PSNL1qE6VY") schoolofrock = media.Movie( "School of Rock", "Using rock music to earn through university college degree", "https://upload.wikimedia.org/wikipedia/en/1/11/School_of_Rock_Poster.jpg", "https://www.youtube.com/watch?v=XCwy6lW5Ixc") frozen = media.Movie( "Frozen", "One of two sisters is a frozen queen uses her powers to save her home", "https://upload.wikimedia.org/wikipedia/en/0/05/Frozen_%282013_film%29_poster.jpg", "https://www.youtube.com/watch?v=TbQm5doF_Uc") #need to put all movies into an array movies = [toy_story, avatar, schoolofrock, frozen] #fresh_tomatoes.open_movies_page(movies)
# imported the media.py file to access the class import media # imported the fresh_tomatoes.py to access the html import fresh_tomatoes # defining the instances of class Movie to show movie details # Avenger movie: movie title, storyline, poster image, trailer link and rating avengers = media.Movie( "The Avengers", "S.H.I.E.L.D. leader Nick Fury is compelled to launch the Avengers" "Initiative when Loki poses a threat to planet Earth. His squad" "of superheroes put their minds together to accomplish the task.", "http://www.gstatic.com/tv/thumb/v22vodart/8815512/p8815512_v_v8_an.jpg", # NOQA "https://www.youtube.com/watch?v=kq84NymZYJE", "8.1/10") # Caption america movie: movie title,storyline,poster image,trailer link,rating captain_america = media.Movie( "Captain America: Civil War", "Friction arises between the superheroes when one group supports the" "government's decision to implement a law to control" "their powers while the other opposes it.", "http://www.gstatic.com/tv/thumb/v22vodart/10989225/p10989225_v_v8_ax.jpg", # NOQA "https://www.youtube.com/watch?v=pD9fr686QfA", "7/10") # Black panther movie: movie title,storyline,poster image,trailer link,rating black_panther = media.Movie( "Black Panther", "After the death of his father, T'Challa returns home to the African" "nation of Wakanda to take his rightful place as king." "When a powerful enemy suddenly reappears, T'Challa's mettle as king ",
import fresh_tomatoes import media # Create the metadata for all of the movies inception = media.Movie( "Inception", "Your mind is the scene of crime", "https://upload.wikimedia.org/wikipedia/en/7/7f/Inception_ver3.jpg", "https://www.youtube.com/watch?v=8hP9D6kZseM", "PG-13") looper = media.Movie( "Looper", "Hunted by your future. Haunted by your past.", "http://ia.media-imdb.com/images/M/MV5BMTY3NTY0MjEwNV5BMl5BanBnXkFtZTcwNTE3NDA1OA@@._V1__SX1094_SY899_.jpg", "https://www.youtube.com/watch?v=2iQuhsmtfHw", "R") jurassic_park = media.Movie( "Jurassic Park", "An adventure 65 million years in the making.", "https://upload.wikimedia.org/wikipedia/en/c/c7/Jurassic_Park_3D.jpg", "https://www.youtube.com/watch?v=lc0UehYemQA", "PG-13") kingsmen = media.Movie( "Kingsman: The Secret Service", "Manors. Maketh. Man.", "https://upload.wikimedia.org/wikipedia/en/8/8b/Kingsman_The_Secret_Service_poster.jpg", "https://www.youtube.com/watch?v=kl8F-8tR8to", "R") awkward_adventure = media.Movie( "My Awkward Sexual Adventure", """To win back his ex-girlfriend, a conservative accountant enlists the help of an exotic dancer to guide him on a quest for sexual experience... """, "http://ia.media-imdb.com/images/M/MV5BMjI5MTYzOTMyNF5BMl5BanBnXkFtZTcwNTgwNDYzOQ@@._V1__SX1656_SY855_.jpg",
import media import fresh_tomatoes """ This module aims to populate the movie data and call the page rendering (fresh_tomatoes) """ # Instantiates Movie class passing some params. xmen = media.Movie( "X-Men: Dark Phoenix", "The X-Men is a superheroes Movie", "https://upload.wikimedia.org/wikipedia/en/a/a4/" "Dark_Phoenix_poster.jpg", "https://www.youtube.com/watch?v=whbar1UW1cs") creed2 = media.Movie( "Creed II", "Creed II American sports drama film directed by" "Steven Caple Jr", "https://upload.wikimedia.org/wikipedia/en/thumb/e/e6/" "Creed_ii_poster.jpg/220px-Creed_ii_poster.jpg", "https://www.youtube.com/watch?v=ApQbQ0iJQO0") mid90s = media.Movie( "Mid90s", "Mid90s is a American comedy-drama film written and " "directed by Jonah Hill", "https://upload.wikimedia.org/wikipedia/en/4/4d/" "Mid90s.png", "https://www.youtube.com/watch?v=j4-B6-rDmiw") # Creates a list of the movie instance movies = [xmen, creed2, mid90s] # Finally, calls method which renders the page fresh_tomatoes.open_movies_page(movies)