import movie_class
import fresh_tomatoes

predator = movie_class.Movie(
    "Predator",
    "http://images.moviepostershop.com/predator-movie-poster-1987-1020261352.jpg",
    "https://www.youtube.com/watch?v=Y1txEAywdiw", "107", movie_class.Rating.R)

shank = movie_class.Movie(
    "Shawshank Redemption",
    "http://www.impawards.com/1994/posters/shawshank_redemption_ver1.jpg",
    "https://www.youtube.com/watch?v=6hB3S9bIaco", "142", movie_class.Rating.R)

wonderfullife = movie_class.Movie(
    "It's a Wonderful Life",
    "http://cache2.allpostersimages.com/p/LRG/37/3724/9ZOAF00Z/posters/it-s-a-wonderful-life-donna-reed-james-stewart-1946.jpg",
    "https://www.youtube.com/watch?v=LJfZaT8ncYk", "130", movie_class.Rating.G)

fresh_tomatoes.open_movies_page([predator, shank, wonderfullife])
Exemple #2
0
import movie_class
import movie_website

syriana = movie_class.Movie(
    "Syriana", "Yet another CIA mess in a Middle East monarchy",
    "http://www.impawards.com/2005/posters/syriana_ver2.jpg",
    "https://www.youtube.com/watch?v=JvTni7Nggi0")

arbitrage = movie_class.Movie(
    "Arbitrage", "Power is the best alibi",
    "http://www.impawards.com/2012/posters/arbitrage_ver4.jpg",
    "https://www.youtube.com/watch?	v=UmJSV9ePx7c")

movie_list = [syriana, arbitrage]

movie_website.open_movies_page(movie_list)
Exemple #3
0
# -*- coding: utf-8 -*-

import index
import movie_class

# Create instances of the Movie class to keep information of the most expected movies in 2018

avengers_infinity_war = movie_class.Movie(
    "Avengers: Infinity War", "The Avengers and their allies must be "
    "willing to sacrifice all in an attempt "
    "to defeat the powerful Thanos before his "
    "blitz of devastation and ruin puts an "
    "end to the universe.",
    "https://upload.wikimedia.org/wikipedia/en/9/90/Avengers_Infinity_War.jpg",
    "https://youtu.be/6ZfuNTqbHE8")

jurassic_world_fallen_kingdom = movie_class.Movie(
    "Jurassic World: Fallen Kingdom", "When the island's dormant volcan"
    "o begins roaring to life, Owen "
    "and Claire mount a campaign to "
    "rescue the remaining dinosaurs f"
    "rom this extinction-level event.",
    "https://upload.wikimedia.org/wikipedia/en/c/c6/Jurassic_World_Fallen_Kingdom.png",
    "https://youtu.be/vn9mMeWcgoM")

black_panther = movie_class.Movie(
    "Black Panther", "T'Challa, after the death of his father, the Kin"
    "g of Wakanda, returns home to the isolated, tech"
    "nologically advanced African nation to succeed to"
    " the throne and take his rightful place as king.",
    "https://upload.wikimedia.org/wikipedia/en/0/0c/Black_Panther_film_poster.jpg",
import movie_class
import fresh_tomatoes

#  Below is each individual movies information to be when you call movie_class
eli = movie_class.Movie("The Book of Eli",
                        "A post-apocalyptic tale, in which a lone man fights his way across America in order to protect a sacred book that holds the secrets to saving humankind.",
                        "https://upload.wikimedia.org/wikipedia/en/e/e3/Book_of_eli_poster.jpg",
                        "https://www.youtube.com/watch?v=kAMUv22y1og")

cloud = movie_class.Movie("Cloud Atlas",
                          "An exploration of how the actions of individual lives impact one another in the past, present and future, as one soul is shaped from a killer into a hero, and an act of kindness ripples across centuries to inspire a revolution.",
                          "https://upload.wikimedia.org/wikipedia/en/2/20/Cloud_Atlas_Poster.jpg",
                          "https://www.youtube.com/watch?v=ByehYal_cCs")

fnl = movie_class.Movie("Friday Night Lights",
                        "Based on H.G. Bissinger's book, which profiled the economically depressed town of Odessa, Texas and their heroic high school football team, The Permian High Panthers.",
                        "https://upload.wikimedia.org/wikipedia/en/1/10/Friday_night_lights_ver2.jpg",
                        "https://www.youtube.com/watch?v=9qv5XXeEWJ0")

interstellar = movie_class.Movie("Interstellar",
                                 "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",
                                 "https://upload.wikimedia.org/wikipedia/en/b/bc/Interstellar_film_poster.jpg",
                                 "https://www.youtube.com/watch?v=zSWdZVtXT7E")

last_samurai = movie_class.Movie('The Last Samurai',
                                 "An American Captain is hired by the Japanese Emperor to eradicate the samurai, but ends up joining the samurai and fights against the Emperor",
                                 "https://upload.wikimedia.org/wikipedia/en/c/c6/The_Last_Samurai.jpg",
                                 "https://www.youtube.com/watch?v=RdS6FgmO4j8&has_verified=1")

mama = movie_class.Movie("Mama",
                         "A young couple take in their 2 nieces only to suspect that a supernatural spirit named Mama has latched itself to their family.",
Exemple #5
0
import movie_class
import movie_website

iron_man = movie_class.Movie(
    "Iron Man",
    "https://upload.wikimedia.org/wikipedia/en/7/70/Ironmanposter.JPG",
    "https://www.youtube.com/watch?v=8hYlB38asDY")

incredible_hulk = movie_class.Movie(
    "The Incredible Hulk",
    "https://upload.wikimedia.org/wikipedia/en/8/88/The_Incredible_Hulk_poster.jpg",
    "https://www.youtube.com/watch?v=xbqNb2PFKKA")

iron_man2 = movie_class.Movie(
    "Iron Man 2",
    "https://upload.wikimedia.org/wikipedia/en/e/ed/Iron_Man_2_poster.jpg",
    "https://www.youtube.com/watch?v=BoohRoVA9WQ")

thor = movie_class.Movie(
    "Thor", "https://upload.wikimedia.org/wikipedia/en/f/fc/Thor_poster.jpg",
    "https://www.youtube.com/watch?v=JOddp-nlNvQ")

captain_america = movie_class.Movie(
    "Captain America",
    "https://upload.wikimedia.org/wikipedia/en/3/37/Captain_America_The_First_Avenger_poster.jpg",
    "https://www.youtube.com/watch?v=JerVrbLldXw")

avengers = movie_class.Movie(
    "The Avengers",
    "https://upload.wikimedia.org/wikipedia/en/f/f9/TheAvengers2012Poster.jpg",
    "https://www.youtube.com/watch?v=eOrNdBpGMv8")
Exemple #6
0
import movie_spot  #import movie_spot to run movie_spot.open_movies_page() below.
import movie_class  #import movie_class contents to retrieve the Movie class

#create multiple instances of the Movie class

gladiator = movie_class.Movie(
    "Gladiator",
    "The epic story of the revenge of a gladiator, who ultimately defied and overthrew a corrupt emperor.",
    "http://t3.gstatic.com/images?q=tbn:ANd9GcRuhegCaGHfcQc-Owpib9vGSO0hUlSUMTojO2s4ih8oXqHBw2ks",
    "https://www.youtube.com/watch?v=IvTT29cavKo", "Ridley Scott")

inception = movie_class.Movie(
    "Inception",
    "An exceptional team of experts work to implant an idea into the mind of a corporate CEO.",
    "http://t2.gstatic.com/images?q=tbn:ANd9GcRo9vfJCM6dzPkZHIHBVCtlJnAnew9Ai26kEdrli0-tfmatmciD",
    "https://www.youtube.com/watch?v=8hP9D6kZseM", "Christopher Nolan")

momento = movie_class.Movie(
    "Momento",
    "A man suffering with severe short term amnesia implements a system to track down and hunt the murderer of his wife.",
    "https://upload.wikimedia.org/wikipedia/en/c/c7/Memento_poster.jpg",
    "https://www.youtube.com/watch?v=0vS0E9bBSL0", "Christopher Nolan")

the_dark_knight_rises = movie_class.Movie(
    "The Dark Knight Rises",
    "Bruce Wayne returns for the spectacular finale of the Batman trilogy.",
    "http://img05.deviantart.net/9b39/i/2012/169/6/8/the_dark_knight_rises_by_cetosc-d497okc.jpg",
    "https://www.youtube.com/watch?v=g8evyE9TuYk", "Christopher Nolan")

interstellar = movie_class.Movie(
    "Interstellar",
import movie_class
import fresh_tomatoes

m1_title = "Murder on the Orient Express"
m1_storyline = "A lavish trip through Europe quickly unfolds into a race against time to solve a murder aboard a train."
m1_poster = "http://nothingbutgeek.com/wp-content/uploads/2017/10/Murder-on-the-Orient-Express-02.jpg"
m1_trailer = "https://www.youtube.com/watch?v=Mq4m3yAoW8E"
MOTOE = movie_class.Movie(m1_title,m1_storyline,m1_poster,m1_trailer)

m2_title = "Justice League"
m2_storyline = "Fueled by his restored faith in humanity and inspired by Superman's selfless act, Bruce Wayne enlists newfound ally Diana Prince to face an even greater threat."
m2_poster = "http://www.konbini.com/us/files/2017/07/league.jpg"
m2_trailer = "https://www.youtube.com/watch?v=r9-DM9uBtVI"
JL = movie_class.Movie(m2_title,m2_storyline,m2_poster,m2_trailer)

movies = [MOTOE,JL]

#fresh_tomatoes.open_movies_page(movies)

print(movie_class.Movie.RATINGS)
Exemple #8
0
import fresh_tomatoes
import movie_class

toy_story = movie_class.Movie(  "Toy Story",
                    "a movie about toys",
                    "https://static.rogerebert.com/uploads/movie/movie_poster/toy-story-1995/large_agy8DheVu5zpQFbXfAdvYivF2FU.jpg",
                    "https://www.youtube.com/watch?v=KYz2wyBy3kc")

the_big_short = movie_class.Movie(  "The big short",
                        "In 2008, Wall Street guru Michael Burry realizes that a number of subprime home loans are in danger of defaulting. Burry bets against the housing market by throwing more than $1 billion of his investors' money into credit default swaps. His actions attract the attention of banker Jared Vennett",
                        "https://upload.wikimedia.org/wikipedia/en/e/e3/The_Big_Short_teaser_poster.jpg",
                        "https://www.youtube.com/watch?v=vgqG3ITMv1Q")

movie_list = [toy_story, the_big_short]

fresh_tomatoes.open_movies_page(movie_list)
'''
This file creates 9 instances of movie class
'''
import fresh_tomatoes
import movie_class


# Movie name: vikramvedha
vikramvedha = movie_class.Movie('VikramVedha',
                                'A badass cop Vikram leads a special task'
                                ' force formed to eliminate a kickass Vedha\'s'
                                'gang running amok on the streets of Chennai,'
                                ' making mockery of Law and Order. An'
                                ' encounter planned by a Vikram\'s…',
                                'https://www.bing.com/th?id=OIP.ns8C96g2qctV45'
                                'kpEAYyWwHaHn&w=163&h=168&c=7&o=5&pid=1.7',
                                'https://www.youtube.com/watch?v=1sVr-uWZPjE',
                                '8.8/10',
                                'Suspense-Thriller')

# Movie name:andhadhun
andhadhun = movie_class.Movie('Andhadhun',
                              'A series of mysterious events take place in the'
                              'life of a blind pianist (Ayushmann Khurrana).'
                              'Now, he must report a crime that he never'
                              'actually witnessed.',
                              'https://in.bmscdn.com/iedb/movies/images'
                              '/website/poster/large/andhadhun-et00077959'
                              '-19-06-2018-12-49-25.jpg',
                              'https://www.youtube.com/watch?v=2iVYI99VGaw',
                              '9.1/10',