Esempio n. 1
0
avatar = media.Movie(
    "Avatar",
    'http://www.kinopoisk.ru/images/film_big/251733.jpg',
    'https://www.youtube.com/watch?v=d1_JBMrrYw8',
    'A marine on an alien planet',
)

inception = media.Movie(
    "Inception", 'http://www.kinopoisk.ru/images/film_big/447301.jpg',
    'https://www.youtube.com/watch?v=YoHD9XEInc0',
    'A thief is given the inverse task of planting an idea into the mind of a CEO.'
)

friends = media.TvShow(
    "Friends", "https://www.movieposter.com/posters/archive/main/78/MPW-39449",
    "https://www.youtube.com/watch?v=bvEnlf9g4co", "20 min")

how_i_met_your_mother = media.TvShow(
    "How I met your mother",
    "http://vignette4.wikia.nocookie.net/how-i-met-your-mother/images/0/0a/Staffel_1.jpg/revision/latest?cb=20120207153333&path-prefix=de",
    "https://www.youtube.com/watch?v=aJtVL2_fA5w", "25 min")

game_of_thrones = media.TvShow(
    "Game of Thrones",
    "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcS9McQZDr-ZA6oK7dTBJuIoclfpwVOJyX79pmUZG84ZyKh05epK",
    "https://www.youtube.com/watch?v=8ixEWrTLiZg", "40 min")
movies = [
    toy_story, avatar, inception, friends, how_i_met_your_mother,
    game_of_thrones
]
# - * -coding: utf - 8 - * -

import given
import media

# Movies/TvShow to be displayed

TOY_STORY = media.Movie('TOY STORY', 'A STORY OF A BOY AND HIS TOYS',
                        'http://tny.im/cHZ',
                        'https://www.youtube.com/watch?v=rNk1Wi8SvNc')

COCKTAIL = media.Movie('COCKTAIL', 'Friend circle movie', 'http://tny.im/cID',
                       'https://www.youtube.com/watch?v=3nA1hmKCRpE')

PLL = media.TvShow('PLL', 'SET MAX', 'http://tny.im/cIE',
                   'https://www.youtube.com/watch?v=xZJwm3pfwPg')

HELLO_KITTY = media.Movie('HELLO KITTY', 'about kitty', 'http://tny.im/cIF',
                          'https://www.youtube.com/watch?v=LiaYDPRedWQ')

THIS_IS_US = media.TvShow('THIS IS US', 'comedy central', 'http://tny.im/cII',
                          'https://www.youtube.com/watch?v=QJI8o54tn8g')

MODERN_FAMILY = media.TvShow('MODERN FAMILY', 'SONY', 'http://tny.im/cIH',
                             'http://tny.im/cIH')

Friends = media.TvShow('Friends', 'comedy central', 'http://tny.im/cHV',
                       'https://www.youtube.com/watch?v=FxAG_11PzCk')

# Movies/TvShows to be displayed are passed through a list
Esempio n. 3
0
                                  date_on_theater)

# TV SHOWS

# Instanciating tv show information

title = "Wings"
storyline = "Brothers Brian and Joe Hackett attempt to run an airline on the \
             New England island of Nantucket while surrounded by \
             their various wacky friends and employees."

image_url = "https://images-na.ssl-images-amazon.com/images/M/MV5BMTEwMDQ3MzIxNjNeQTJeQWpwZ15BbWU3MDc1OTcyMzI@._V1_.jpg"  # noqa
youtube_url = "https://www.youtube.com/watch?v=ZdWMNe_B3ak"
duration = "30"
num_seasons = "7"
wings = media.TvShow(title, duration, storyline, image_url, youtube_url,
                     num_seasons)

title = "The King of Queens"
storyline = "Delivery man Doug Heffernan has a good life: He's got a \
             pretty wife (Carrie), a big TV and friends to watch it with."

image_url = "https://images-na.ssl-images-amazon.com/images/M/MV5BMTQ3MDgyNTE4OV5BMl5BanBnXkFtZTcwMjU2ODA1MQ@@._V1_.jpg"  # noqa
youtube_url = "https://www.youtube.com/watch?v=i1pX0GhgjDs"
duration = "22"
num_seasons = "9"
king_of_queens = media.TvShow(title, duration, storyline, image_url,
                              youtube_url, num_seasons)

title = "Dexter"
storyline = "By day, mild-mannered Dexter is a blood-splatter analyst for \
             the Miami police. But at night, he is a serial killer \
Esempio n. 4
0
def getMedia():
    # Create some movies. See class definition for the parameter order.
    the_martian = media.Movie('The Martian', (
        'During a manned mission to Mars, Astronaut Mark Watney is presumed '
        'dead after a fierce storm and left behind by his crew. But Watney has '
        'survived and finds himself stranded and alone on the hostile planet.'
    ), ['Sci Fi'], 'The_Martian.jpg',
                              'https://www.youtube.com/watch?v=ej3ioOneTy8',
                              'PG-13', 144, '27 September 2015',
                              'Ridley Scott', [
                                  'Matt Damon', 'Jessica Chastain',
                                  'Kristen Wiig', 'Jeff Daniels',
                                  'Michael Pena', 'Kate Mara', 'Sean Bean',
                                  'Sebastian Stan', 'Aksel Hennie',
                                  'Chiwetel Ejiofor'
                              ])
    torrente = media.Movie('Torrente', (
        'Torrente is a drunkard, sexist, racist, right-wing Madrid cop who '
        'only cares about himself. He discovers that a band of drug traffickers '
        'are operating in a nearby chinese restaurant, what could make him '
        'regain the status he lost within the police.'), ['Comedy'],
                           'Torrente.jpg',
                           'https://www.youtube.com/watch?v=ZC9XPvePksc',
                           'NC-17', 97, '13 March 1998', 'Santiago Segura', [
                               'Santiago Segura', 'Javier Bardem',
                               'Javier Camara', 'Tony Leblanc', 'Neus Asensi'
                           ])
    interstellar = media.Movie('Interstellar 2014', (
        'A group of explorers must travel beyond our solar system in search of'
        ' a planet that can sustain life.'), ['Sci Fi, Adventure'],
                               'Interstellar.jpg',
                               'https://www.youtube.com/watch?v=zSWdZVtXT7E',
                               'PG-13', 169, '26 October 2014',
                               'Christopher Nolan', [
                                   'Matthew McConaughey', 'Anne Hathaway',
                                   'Jessica Chastain', 'Bill Irwin',
                                   'Ellen Burstyn', 'Michael Caine'
                               ])
    star_trek_ix = media.Movie('Star Trek IX', (
        'The young crew onboard for the maiden voyage of the most advanced '
        'starship ever created, the U.S.S. Enterprise, must find a way to stop '
        'the evil Nero, whose mission of vengeance threatens all of mankind.'),
                               ['Sci Fi'], 'Star_Trek_IX.jpg',
                               'https://www.youtube.com/watch?v=pKFUZ10Wmbw',
                               'PG-13', 127, '6 April 2009', 'Jonathan Frakes',
                               [
                                   'Patrick Stewart', 'Jonathan Frakes',
                                   'Brent Spiner', 'LeVar Burton',
                                   'Michael Dorn', 'Gates McFadden',
                                   'Marina Sirtis', 'F. Murray Abraham',
                                   'Donna Murphy', 'Anthony Zerbe'
                               ])
    breaveheart = media.Movie(
        'Braveheart',
        ('Edward the Longshanks, King of England (Patrick McGoohan), has '
         'captured Scotlands throne and threatens the freedom of all Scottish '
         'people, as tyrannical policies instituted by the English plague the '
         'Scots.'), ['Action, History'], 'Braveheart.jpg',
        'https://www.youtube.com/watch?v=vBXBtORI7pE', 'NC-17', 178,
        '18 May 1995', 'Mel Gibson', [
            'Mel Gibson', 'Sophie Marceau', 'Patrick McGoohan',
            'Catherine McCormack', 'Angus Macfadyen'
        ])
    troy = media.Movie('Troy', (
        'An adaptation of Homer\'s great epic, the film follows the assault on'
        ' Troy by the united Greek forces and chronicles the fates of the men'
        ' involved.'), ['Adventure'], 'Troy.jpg',
                       'https://www.youtube.com/watch?v=aiyQOumuSN4', 'PG-13',
                       163, '14 May 2004', 'Wolfgang Petersen', [
                           'Brad Pitt', 'Eric Bana', 'Orlando Bloom',
                           'Diane Kruger', 'Brian Cox', 'Sean Bean',
                           'Brendan Gleeson', 'Peter O\'Toole'
                       ])
    kingdom = media.Movie('Kingdom of Heaven', (
        'Balian of Ibelin travels to Jerusalem during the crusades of the 12th'
        ' century, and there he finds himself as the defender of the city and '
        'its people.'), ['Action', 'Adventure', 'Drama'],
                          'Kingdom_of_Heaven.jpg',
                          'https://www.youtube.com/watch?v=-oO6pCRe3pM',
                          'PG-13', 144, '6 May 2005', 'Ridley Scott', [
                              'Orlando Bloom', 'Ghassan Massoud', 'Eva Green',
                              'Jeremy Irons', 'David Thewlis',
                              'Brendan Gleeson', 'Marton Csokas',
                              'Liam Neeson', 'Edward Norton'
                          ])

    # Create some TV Shows. See class definition for the parameter order.
    galactica = media.TvShow(
        'Battlestar Galactica',
        ('In a distant galaxy lie The Twelve Colonies of Man, a civilization '
         'that has been at peace with an empire of machines, the Cylons, who '
         'were created as worker drones for mankind, rose in rebellion, and '
         'launched war on their masters.'), ['Fantasy, Action'],
        'Battlestar_Galactica.jpg',
        'https://www.youtube.com/watch?v=TnYsf2Yv8i8', 'PG-13', 44, 4, 75,
        'Syfy')
    star_trek_voy = media.TvShow(
        'Star Trek: Voyager',
        ('The Federation starship USS Voyager, chasing a band of Maquis rebels'
         ', enters the dangerous space nebula known as the Badlands. Both ships '
         'are transported by a distant space probe 75,000 light-years from '
         'home.'), ['Sci Fi'], 'Star_Trek_Voyager.jpg',
        'https://www.youtube.com/watch?v=b1PX9E2RsgU', 'PG', 44, 7, 172, 'UPN')

    # Create some Books. See class definition for the parameter order.
    worldwar1 = media.Book('Worldwar: In the Balance', (
        'First novel of the Worldwar tetralogy. The plot begins in late 1941, '
        'while the Earth is torn apart by World War II. An alien fleet arrive '
        'to conquer the planet, forcing the warring nations to make uneasy '
        'alliances against the invaders.'), ['Sci Fi', 'Alternate History'],
                           'Worldwar_In_the_balance.jpg', 'Harry Turtledove',
                           'Del Rey Books', 1994, 488, '0-345-38241-2')
    worldwar2 = media.Book(
        'Worldwar: Tilting the Balance',
        ('As the year 1943 begins, the Race attempts to consolidate its hold '
         'over Latin America, Africa, and Australia while engaged in a fierce '
         'struggle with the advanced nations of the world: the United States, '
         'the United Kingdom, the Soviet Union, Japan, and the Greater German '
         'Reich.'), ['Sci Fi', 'Alternate History'],
        'Worldwar_Tilting_the_balance.jpg', 'Harry Turtledove',
        'Del Rey Books', 1995, 478, '0-345-38997-2')
    worldwar3 = media.Book('Worldwar: Upsetting the Balance', (
        'The United States and Germany develop atomic weapons of their own and'
        ', alongside the Soviets, engage in a nuclear exchange with the Race. '
        'The Soviets detonte the first atomic bomb, but only because they '
        'captured a sample of plutonium from the Race.'),
                           ['Sci Fi', 'Alternate History'],
                           'Worldwar_Upsetting_the_balance.jpg',
                           'Harry Turtledove', 'Del Rey Books', 1996, 481,
                           '0-345-40221-9')
    worldwar4 = media.Book('Worldwar: Striking the Balance', (
        'At the beginning of 1944, the Battle of Chicago has ended with the '
        'Race\'s forces decimated as a result of an American atomic bomb. '
        'German forces in Western Europe have successfully kept the Race from '
        'reaching the Rhine while managing to hurl back the Race\'s troops in '
        'Poland after a nuclear attack on Breslau.'),
                           ['Sci Fi', 'Alternate History'],
                           'Worldwar_Striking_the_balance.jpg',
                           'Harry Turtledove', 'Del Rey Books', 1996, 465,
                           '0-345-40550-1')
    colonization1 = media.Book('Colonization: Second Contact', (
        'The novel is set in 1963, twenty one years following the end of the '
        'alternate World War II and nineteen years after the Race Invasion of '
        'Tosev 3. Earl Warren is President of the United States, Vyacheslav '
        'Molotov is the Premier of the Soviet Union, and Heinrich Himmler '
        'leads Nazi Germany.'), ['Sci Fi', 'Alternate History'],
                               'Colonization_Second_Contact.jpg',
                               'Harry Turtledove', 'Del Rey Books', 1999, 466,
                               '0-345-43019-0')
    colonization2 = media.Book('Colonization: Down to Earth', (
        'Following the nuclear attack on the colonist ships in Second Contact,'
        ' the Race continues to try to find the responsible nation, along with '
        'the purpose of the Lewis and Clark, a large space station launched by '
        'the United States.'), ['Sci Fi', 'Alternate History'],
                               'Colonization_Down_to_Earth.jpg',
                               'Harry Turtledove', 'Del Rey Books', 2000, 496,
                               '0-345-43020-4')
    colonization3 = media.Book('Colonization: Aftershocks', (
        'The nuclear war between Nazi Germany and the Race ends with a German '
        'surrender after the Fuhrer is killed and replaced by Walter Dornberger'
        ', who agrees to disband the Axis Forces, withdraw German troops from '
        'occupied France and Vichy France, and disband the German rocket and '
        'nuclear forces.'), ['Sci Fi', 'Alternate History'],
                               'Colonization_Aftershocks.jpg',
                               'Harry Turtledove', 'Del Rey Books', 2001, 496,
                               '0-345-43021-2')
    homeward = media.Book('Homeward Bound', (
        'The Admiral Peary travels at between 0.35 and 0.4 c and took a little'
        ' over 30 years to cross the twelve light years between Earth and Tau '
        'Ceti. The ship is named Admiral Peary for its role as a military '
        'exploration ship, after Adm. Robert Peary, who did the same in Arctic '
        'exploration.'), ['Sci Fi', 'Alternate History'], 'Homeward_Bound.jpg',
                          'Harry Turtledove', 'Del Rey Books', 2004, 608,
                          '0-345-45846-X')

    # Return a list with the elements in the order we want them to be shown
    return [
        the_martian, galactica, torrente, star_trek_voy, interstellar,
        star_trek_ix, breaveheart, homeward, worldwar1, worldwar2, worldwar3,
        worldwar4, colonization1, colonization2, colonization3, troy, kingdom
    ]
    "The aging patriarch of an organized crime dynasty transfers control of his clandestine empire to his reluctant son.",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BZTRmNjQ1ZDYtNDgzMy00OGE0LWE4N2YtNTkzNWQ5ZDhlNGJmL2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyNjU0OTQ0OTY@._V1_SY1000_CR0,0,704,1000_AL_.jpg",
    "https://www.youtube.com/watch?v=DVQ4BJ94XEk")
scindler_list = media.Movie(
    "Scindler's List", "1993", "8.9",
    "In German-occupied Poland during World War II, Oskar Schindler gradually becomes concerned for his Jewish workforce after witnessing their persecution by the Nazi Germans.",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BNDE4OTMxMTctNmRhYy00NWE2LTg3YzItYTk3M2UwOTU5Njg4XkEyXkFqcGdeQXVyNjU0OTQ0OTY@._V1_SY1000_CR0,0,666,1000_AL_.jpg",
    "https://www.youtube.com/watch?v=ST5rN8Hjsx0")
forrest_gump = media.Movie(
    "Forrest Gump", "1994", "8.7",
    "Forrest Gump, while not intelligent, has accidentally been present at many historic moments, but his true love, Jenny Curran, eludes him.",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BYThjM2MwZGMtMzg3Ny00NGRkLWE4M2EtYTBiNWMzOTY0YTI4XkEyXkFqcGdeQXVyNDYyMDk5MTU@._V1_SY1000_CR0,0,757,1000_AL_.jpg",
    "https://www.youtube.com/watch?v=QgStze9lTNY")

breaking_bad = media.TvShow(
    "Breaking Bad", "9.4", "5", "62",
    "A high school chemistry teacher diagnosed with inoperable lung cancer turns to manufacturing and selling methamphetamine in order to secure his family's future.",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BMTQ0ODYzODc0OV5BMl5BanBnXkFtZTgwMDk3OTcyMDE@._V1_SY1000_CR0,0,678,1000_AL_.jpg",
    "https://www.youtube.com/watch?v=Xs6_vecSv2Y")
sherlock = media.TvShow(
    "Sherlock", "9.2", "4", "15",
    "A modern update finds the famous sleuth and his doctor partner solving crime in 21st century London.",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BMWY3NTljMjEtYzRiMi00NWM2LTkzNjItZTVmZjE0MTdjMjJhL2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyNTQ4NTc5OTU@._V1_.jpg",
    "https://www.youtube.com/watch?v=qlcWFoNqZHc")
# initialize the page
movies = [
    the_shawshank_redemption, the_godfather, scindler_list, forrest_gump,
    breaking_bad, sherlock
]
website.open_movies_page(movies)
Esempio n. 6
0
life_aquatic = media.Movie(title="Life Aquatic",
                           storyline="When his partner is killed by the mysterious and possibly nonexistent Jaguar Shark, Steve Zissou and his Team Zissou crew set off for an expedition to hunt down the creature. Along with his estranged wife, a beautiful journalist and a co-pilot who could possibly be Zissou's son, the crew set off for one wild expedition.",
                           trailer_youtube_url="https://www.youtube.com/watch?v=yh401Rmkq0o",
                           poster_image_url="https://upload.wikimedia.org/wikipedia/en/thumb/7/7c/Lifeaquaticposter.jpg/220px-Lifeaquaticposter.jpg",
                           actors=["Bill Murray", "Owen Wilson", "Anjelica Huston"],
                           imdb_rating=7.4,
                           genre=["Adventure", "Comedy", "Drama"],
                           year="2004",
                           director="Wes Anderson")

friends = media.TvShow(title="Friends",
                       storyline="Rachel Green, Ross Geller, Monica Geller, Joey Tribbiani, Chandler Bing and Phoebe Buffay are all friends, living off of one another in the heart of New York City. Over the course of ten years, this average group of buddies goes through massive mayhem, family trouble, past and future romances, fights, laughs, tears and surprises as they learn what it really means to be a friend.",
                       trailer_youtube_url="https://www.youtube.com/watch?v=Eibl9JIpcKk",
                       poster_image_url="https://images-na.ssl-images-amazon.com/images/M/MV5BMTg4NzEyNzQ5OF5BMl5BanBnXkFtZTYwNTY3NDg4._V1._CR24,0,293,443_UX182_CR0,0,182,268_AL_.jpg",
                       actors=["Jennifer Aniston", "Courteney Cox", "Lisa Kudrow", "Matthew Perry", "David Schwimmer", "Matt LeBlanc"],
                       imdb_rating=9.0,
                       genre=["Comedy", "Romance"],
                       start_year="1994",
                       end_year="2004",
                       seasons=10,)

big_bang_theory = media.TvShow(title="Big Bang Theory",
                               storyline="Leonard Hofstadter and Sheldon Cooper are both brilliant physicists working at Cal Tech in Pasadena, California. They are colleagues, best friends, and roommates, although in all capacities their relationship is always tested primarily by Sheldon's regimented, deeply eccentric, and non-conventional ways. They are also friends with their Cal Tech colleagues mechanical engineer Howard Wolowitz and astrophysicist Rajesh Koothrappali. The foursome spend their time working on their individual work projects, playing video games, watching science-fiction movies, or reading comic books. As they are self-professed nerds, all have little or no luck with women. When Penny, a pretty woman and an aspiring actress from Omaha, moves into the apartment across the hall from Leonard and Sheldon's, Leonard has another aspiration in life, namely to get Penny to be his girlfriend.",
                               trailer_youtube_url="https://www.youtube.com/watch?v=3WPSDiTuHWQ",
                               poster_image_url="https://images-na.ssl-images-amazon.com/images/M/MV5BMTUyNDMxNjQyN15BMl5BanBnXkFtZTgwNzA4NDQwMDI@._V1_UX182_CR0,0,182,268_AL_.jpg",
                               actors=["Johnny Galecki", "Jim Parsons", "Kaley Cuoco", "Simon Helberg", "Kunal Nayyar", "Melissa Rauch", "Mayim Bialik"],
                               imdb_rating=8.3,
                               genre=["Comedy", "Romance"],
                               start_year="2007",
                               seasons=10)
antMan = media.Movie(
    "Ant-Man", "Man becoming a super hero",
    "https://pre11.deviantart.net/205c/"
    "th/pre/i/2015/129/9/d/"
    "ant_man_poster_by_gingerjmez-d8spj3h.jpg",
    "https://www.youtube.com/watch?v=pWdKf3MneyI", "1h 58m")

spiderMan = media.Movie(
    "Spider Man", "Man who do super stunts..",
    "https://lumiere-a.akamaihd.net/v1"
    "/images/image_ccc4b657.jpeg",
    "https://www.youtube.com/watch?v=rk-dF1lIbIg", "2h 13m")

threeIdiots = media.Movie(
    "3 Idiots", "Indian Movie about three friends",
    "https://sc-events.s3.amazonaws.com/"
    "4224477/main.jpg", "https://www.youtube.com/watch?v=xvszmNXdM4w",
    "2h 51m")

big_bang_theory = media.TvShow(
    'The Big Bang Theory', 'Season 10', "http://www.gstatic.com/tv/thumb/"
    "tvbanners/14215412/p14215412_b_v8_ad.jpg",
    'https://www.youtube.com/watch?v=WBb3fojgW0Q',
    'September 19, 2016 - May 11, 2017')

# Assigning all values in an array
movies = [avatar, ironMan, antMan, spiderMan, threeIdiots, big_bang_theory]

# Calling the functon to open webbrowser to display the result
fresh_tomatoes.open_movies_page(movies)
Esempio n. 8
0
def main():
    """
    Creates Movie objects and initializes these objects with title,
    story_line, you_tube_trailer_url, poster_image_url, & release_date.

    Also creates Tv series objects and initializes these objects with
    title, story_line, you_tube_trailer_url, poster_image_url,
    release_date, and season.
    """
    # Reading movies and TvSeries datafiles
    data_movie = pd.read_csv("datafile_movie.csv", index_col='title')
    data_tv_series = pd.read_csv("datafile_tv_series.csv", index_col='title')

    # Creating movies objects
    movie_data = get_trailer_data(data_movie, "A-X-L")
    axl = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                      movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Tau")
    tau = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                      movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Automata")
    automata = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                           movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Extinction")
    extinction = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                             movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Stealth")
    stealth = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                          movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Maze Runner: The Death Cure")
    maze_runner_the_death_cure = media.Movie(movie_data[0], movie_data[1],
                                             movie_data[2], movie_data[3],
                                             movie_data[4])

    movie_data = get_trailer_data(data_movie, "Maze Runner: The Scorch Trials")
    maze_runner_the_scorch_trials = media.Movie(movie_data[0], movie_data[1],
                                                movie_data[2], movie_data[3],
                                                movie_data[4])

    movie_data = get_trailer_data(data_movie, "The Maze Runner")
    the_maze_runner = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                                  movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Interstellar")
    interstellar = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                               movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Pacific Rim")
    pacific_rim = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                              movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Pacific Rim: Uprising")
    pacific_rim_uprising = media.Movie(movie_data[0], movie_data[1],
                                       movie_data[2], movie_data[3],
                                       movie_data[4])

    movie_data = get_trailer_data(data_movie, "Lucy")
    lucy = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                       movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Prometheus")
    prometheus = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                             movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Edge of Tomorrow")
    edge_of_tomorrow = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                                   movie_data[3], movie_data[4])

    movie_data = get_trailer_data(data_movie, "Inception")
    inception = media.Movie(movie_data[0], movie_data[1], movie_data[2],
                            movie_data[3], movie_data[4])

    # Creating TvSeries objects
    series_data = get_trailer_data(data_tv_series, "Westworld: S1", 1)
    westworld_s1 = media.TvShow(series_data[0], series_data[1], series_data[2],
                                series_data[3], series_data[4], series_data[5])

    series_data = get_trailer_data(data_tv_series, "Westworld: S2", 1)
    westworld_s2 = media.TvShow(series_data[0], series_data[1], series_data[2],
                                series_data[3], series_data[4], series_data[5])

    series_data = get_trailer_data(data_tv_series, "Intelligence: S1", 1)
    intelligence_s1 = media.TvShow(series_data[0], series_data[1],
                                   series_data[2], series_data[3],
                                   series_data[4], series_data[5])

    series_data = get_trailer_data(data_tv_series, "Intelligence: S2", 1)
    intelligence_s2 = media.TvShow(series_data[0], series_data[1],
                                   series_data[2], series_data[3],
                                   series_data[4], series_data[5])

    series_data = get_trailer_data(data_tv_series, "Minority Report", 1)
    minority_report = media.TvShow(series_data[0], series_data[1],
                                   series_data[2], series_data[3],
                                   series_data[4], series_data[5])

    series_data = get_trailer_data(data_tv_series, "Almost Human", 1)
    almost_human = media.TvShow(series_data[0], series_data[1], series_data[2],
                                series_data[3], series_data[4], series_data[5])

    # Creating movie trailer website
    fresh_tomatoes.open_movies_page([
        axl, tau, automata, extinction, stealth, maze_runner_the_death_cure,
        maze_runner_the_scorch_trials, the_maze_runner, interstellar,
        pacific_rim, pacific_rim_uprising, lucy, prometheus, edge_of_tomorrow,
        inception, westworld_s1, westworld_s2, intelligence_s1,
        intelligence_s2, minority_report, almost_human
    ])
Esempio n. 9
0
    "As the investigation deepens, Teddy realizes he will "
    "have to confront his own dark fears if he hopes to "
    "make it off the island alive.",
    "https://upload.wikimedia.org/wikipedia/en/7/76/Shutterislandposter.jpg",
    "https://youtu.be/5iaYLCiq5RM",
    "2010",
    "2h 18m")

# here are some tv shows I like
friends = media.TvShow(
    "Friends",
    "8.9",
    "Three young men and three young women - of the BFF "
    "kind - live in the same apartment complex and face "
    "life and love in New York. They're not above "
    "sticking their noses into one another's businesses "
    "and swapping romantic partners, which always leads "
    "to the kind of hilarity average people will never "
    "experience - especially during breakups.",
    "http://www.gstatic.com/tv/thumb/tvbanners/183931/p183931_b_v8_ac.jpg",
    "https://youtu.be/Yp0kth7-zsM",
    "10",
    "NBC")

friends.tv_episodes = [
    "The One After Joey and Rachel Kiss",
    "The One Where Ross is Fine",
    "The One with Ross's Tan",
    "The One with the Cake",
    "The One Where Rachel's Sister Babysits",
    "The One with Ross's Grant",
    "The One with the Home Study",
Esempio n. 10
0
import fresh_tomatoes

if __name__ == "__main__":
    toystory = media.Movie(
        "Toystory", "i will update", 55, 4,
        "https://en.wikipedia.org/wiki/Toy_Story#/media/File:Toy_Story.jpg",
        "https://www.youtube.com/watch?v=KYz2wyBy3kc")
    #print(toystory.storyline);

    avatar = media.Movie(
        "Avatar", "This is a crazy af movie", 210, 7,
        "https://media.vanityfair.com/photos/58c2f5aa0a144505fae9e9ee/master/pass/avatar-sequels-delayed.jpg",
        "https://www.youtube.com/watch?v=5PSNL1qE6VY")
    #print(avatar.storyline);
    #avatar.show_trailer();

    bahubali = media.Movie(
        "bahubali", "Magnum Opus: brothers, love betryal", 150, 9,
        "https://www.chitramala.in/wp-content/gallery/bahubali-movie-latest-posters/Baahubali-50-Days-Poster.jpg",
        "https://www.youtube.com/watch?v=qD-6d8Wo3do")

    baywatch = media.TvShow(
        "Baywatch", "Sexy Shenanigns", 30, 7,
        "http://photogallery.indiatimes.com/photo/56305531.cms", 1, "ABC")
    flash = media.TvShow("Flash", "Fastest man alive", 40, 8,
                         "https://i.redd.it/u5vcqikck3yy.jpg", 4, 'ABC')

    videos = [toystory, avatar, bahubali, flash, baywatch]

    fresh_tomatoes.open_movies_page(videos)
Esempio n. 11
0
"""
"""
import fresh_tomatoes
import media

breaking_bad = media.TvShow(
    "Breaking Bad",
    "A stage-three chemistry teacher produce and sell crystallized methamphetamine.",
    "https://upload.wikimedia.org/wikipedia/en/b/bd/Breaking_Bad_season_four_DVD.jpg",
    "1 - 5", "https://en.wikipedia.org/wiki/List_of_Breaking_Bad_episodes",
    "https://www.youtube.com/watch?v=HhesaQXLuRY")

seinfeld = media.TvShow(
    "Seinfeld",
    "About comedian Seinfeld's life with a handful of friends and acquaintances",
    "https://upload.wikimedia.org/wikipedia/en/c/ce/Seinfeld1%262.jpg",
    "1 - 9",
    "https://en.wikipedia.org/wiki/List_of_Seinfeld_episodes#Episodes",
    "https://www.youtube.com/watch?v=SOsbYJ4CfTA")

tvshow = [breaking_bad, seinfeld]

fresh_tomatoes.open_movies_page(tvshow)

#print(media.Movie.VALID_RATING)
#print(media.Movie.__doc__)
    "Boyhood",
    "BOYHOOD charts the rocky terrain of childhood",
    "https://upload.wikimedia.org/wikipedia/en/b/bb/Boyhood_film.jpg",  # noqa
    "https://youtu.be/Y0oX0xiwOv8",
    "2014",
    "166 minutes",
    "8/10")
"""---------------------TV Shows------------------------------"""
"""	Format: title, storyline, poster_image, trailer_youtube, \
            year_release,	running_time,	number_of_seasons """

breaking_bad = media.TvShow(
    "Breaking bad",
    "Story of a struggling high school chemistry \
                            teacher diagnosed with inoperable lung cancer",
    "http://ia.media-imdb.com/images/M/MV5BMTQ0ODYzODc0OV5BMl5BanBnXkFtZTgwMDk3OTcyMDE@._V1_SY1000_CR0,0,678,1000_AL_.jpg",  # noqa
    "https://youtu.be/HhesaQXLuRY",
    "2008",
    "43-58 minutes",
    "9.5/10",
    "5 seasons")

big_bang_theory = media.TvShow(
    "The Big Bang Theory",
    "The show is primarily centered on five characters \
                               living in Pasadena, California",
    "http://ia.media-imdb.com/images/M/MV5BMjI1Mzc4MDUwNl5BMl5BanBnXkFtZTgwMDAzOTIxMjE@._V1_SY1000_CR0,0,799,1000_AL_.jpg",  # noqa
    "https://youtu.be/WBb3fojgW0Q",
    "2005",
    "18-24 minutes",
    "8.4/10",
    "9 seasons")
Esempio n. 13
0
                        movie_image_url, movie_youtube_url, date_on_theater)

# ***********
# TVSHOWS
# ***********
# here goes the instanceing for the tv_shows
title = "Breaking Bad"
storyline = "A chemistry teacher diagnosed with a terminal \
            lung cancer teams up with his former student to \
            cook and sell crystal meth."
image_url = "http://ia.media-imdb.com/images/M/MV5BMTQ0ODYzODc0OV5BMl5BanBnXkFtZTgwMDk3OTcyMDE@._V1_SY317_CR0,0,214,317_AL_.jpg"  # noqa
youtube_url = "https://youtu.be/HhesaQXLuRY"
duration = "41"
num_seasons = "5"
breaking_bad = media.TvShow(
               title, duration, storyline,
               image_url, youtube_url, num_seasons)

title = "Game of Thrones"
storyline = "Several noble families fight for control \
             of the mythical land of Westeros."
image_url = "http://ia.media-imdb.com/images/M/MV5BNTgxOTI4NzY2M15BMl5BanBnXkFtZTgwMjY3MTM2NDE@._V1_SX214_AL_.jpg"  # noqa
youtube_url = "https://youtu.be/8ixEWrTLiZg"
duration = "55"
num_seasons = "6"
game_of_thrones = media.TvShow(
                  title, duration, storyline,
                  image_url, youtube_url, num_seasons)

title = "Cosmos"
storyline = "Astronomer Carl Sagan leads us on an engaging \
Esempio n. 14
0
import media, fresh_tomatoes

toy_story = media.Movie(
    "Toy Story", "A story of a boy and his toys that come to life",
    "https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg",
    "https://www.youtube.com/watch?v=Bj4gS1JQzjk")

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=5PSNL1qE6VY")

game_of_thrones = media.TvShow(
    "Game of Thrones",
    "An American fantasy drama television series created by David Benioff and D. B. Weiss.",
    "https://upload.wikimedia.org/wikipedia/en/0/04/Game_of_Thrones_Season_7.jpg",
    "https://www.youtube.com/watch?v=giYeaKsXnsI", 7, 4, "HBO")

secret_forest = media.TvShow(
    "Stranger",
    "a South Korean television series starring Jo Seung-woo and Bae Doo-na.",
    "https://upload.wikimedia.org/wikipedia/en/d/d8/Stranger_Poster.jpg",
    "https://youtu.be/xUOSR7GDCqY", 1, 2, "tvN")

videos = [toy_story, avatar, game_of_thrones, secret_forest]
fresh_tomatoes.open_movies_page(videos)

# print media.Movie.valid_rating
# print media.Movie.__doc__ #  >> This class provides a way to store movie related information
# print media.Movie.__module__ # media
avatar = media.Movie(
    "Avatar",
    "No exuberante mundo alienígena de Pandora vivem os Na'vi, seres que parecem ser "
    "primitivos, mas são altamente evoluídos. Como o ambiente do planeta é tóxico, "
    "foram criados os avatares, corpos biológicos controlados pela mente humana que se "
    "movimentam livremente em Pandora.",
    "https://upload.wikimedia.org/wikipedia/pt/thumb/b/b0/Avatar-Teaser-Poster.jpg/250px-Avatar-Teaser-Poster.jpg",
    "https://www.youtube.com/watch?v=xTWLBuTak6I", 120)

forest_gump = media.Movie(
    "Forest Gump",
    "O filme começa com uma pena caindo aos pés de Forrest Gump, sentado numa parada"
    " de ônibus em Savannah, na Georgia. Forrest pega a pena e coloca-a dentro de "
    "um livro, e então começa a contar a história de sua vida a uma mulher sentada"
    " próxima a ele.",
    "https://upload.wikimedia.org/wikipedia/pt/c/c0/ForrestGumpPoster.jpg",
    "https://www.youtube.com/watch?v=bLvqoHBptjg", 130)

prision_break = media.TvShow(
    "Prision Break",
    "Prison Break (Prison Break: Em Busca da Verdade no Brasil e Fuga da Prisão"
    " em Portugal) é uma aclamada série de televisão norte-americana de ação, crime"
    " e drama transmitida originalmente pela Fox desde 29 de agosto de 2005. Em 2015,"
    " a Fox anunciou uma quinta temporada com 9 episódios, que estreou a 4 de abril de"
    " 2017. A FOX confirmou, recentemente, a produção da sexta temporada da série, mas "
    "não divulgou muitos detalhes a respeito", "01", "02", "Local", 45,
    "https://images-na.ssl-images-amazon.com/images/I/51GD8o2DwHL.jpg",
    "https://www.youtube.com/watch?v=FeXRfJNSU1A")

movies = [toy_story, avatar, forest_gump, prision_break]
fresh_tomatoes.open_movies_page(movies)
import media
import fresh_tomatoes

toy_story = media.Movie(
    "Toy Story", 124, "A story of a boy and his toys that "
    "come to life.",
    "https://upload.wikimedia.org/wikipedia/en/thumb/1/13/Toy_Story.jpg/220px-Toy_Story.jpg",
    "https://www.google.hr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiE4dHX-PzXAhWrDZoKHa3fCdcQtwIINjAB&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKYz2wyBy3kc&usg=AOvVaw0z39p4CAtfAw4uZDhaE4vX"
)

avatar = media.Movie(
    "Avatar", 136, "A marine on an alien planet.",
    "https://upload.wikimedia.org/wikipedia/hr/thumb/5/55/Avatar_2009.jpg/220px-Avatar_2009.jpg",
    "https://www.google.hr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwj666bbj4fYAhUqCpoKHVdAA3AQtwIILTAB&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5PSNL1qE6VY&usg=AOvVaw04HYX6vYPNfKceWOFgCZ2H"
)

seinfield = media.TvShow("Seinfield", 28, 4, 2, "HBO")

print(toy_story.title)
#print(avatar.storyline)
#avatar.show_trailer()
print(seinfield.title + str(seinfield.season))
movies = [toy_story, avatar]
#fresh_tomatoes.open_movies_page(movies)

print(media.Movie.VALID_RATINGS)
print("doc: " + media.Movie.__doc__)
#print("dict: " + media.Movie.__dict__)
print("module: " + media.Movie.__module__)
print("name: " + media.Movie.__name__)
    "angry", "The Angry Birds",
    "Red, Chuck and Bomb have always been the outcasts within a community of flightless birds on an island."
    "But when mysterious green pigs intrude the island, it's up to them to figure out the reason.",
    "80 mins", "", "http://www.impawards.com/2016/posters/angry_birds.jpg",
    "https://www.youtube.com/watch?v=QRmKa7vvct4")

spiderman = media.Movie(
    "spiderman", "Spider-Man",
    "Peter Parker, a shy high school student, is often bullied by people."
    "His life changes when he is bitten by a genetically altered spider and gains superpowers.",
    "100 mins", "", "http://www.impawards.com/2002/posters/spiderman_ver1.jpg",
    "https://www.youtube.com/watch?v=O7zvehDxttM")

#defining each tv show with the correct parameters set
seinfeld = media.TvShow(
    "seinfeld", "SeinFeld", "Season 1", "Episode 1", "ABC", "60 mins", "",
    "http://www.gstatic.com/tv/thumb/tvbanners/7892827/p7892827_b_v8_aa.jpg",
    "https://www.youtube.com/watch?v=dHh_ddv-dBE")

breaking_bad = media.TvShow(
    "breaking_bad", "Breaking Bad", "Season 5", "Episode 8", "ABC", "45 mins",
    "",
    "https://vignette.wikia.nocookie.net/breakingbad/images/a/af/Season_4_Poster_3.jpg",
    "https://www.youtube.com/watch?v=HhesaQXLuRY")

#list of movies to be shown
movies = [
    toy_story, avatar, persuit_happyness, ratatouille, angry_bird, spiderman
]

#list of tv shows to be shown
tv_shows = [seinfeld, breaking_bad]
Esempio n. 18
0
                        "1986",
                        "https://www.youtube.com/watch?v=WT_xpFZe20A",
                        "6.3/10")
print(labyrinth.storyline)

harry_potter = media.Movie("Harry Potter",
                           "Fifth year wizard Harry Potter faces character defamation when he claims that He Who Must Not Be Named has                 returned.",  # noqa
                           "https://images-na.ssl-images-amazon.com/images/I/51acekLm3uL._SY445_.jpg",  # noqa
                           "2007",
                           "https://www.youtube.com/watch?v=WS8Jbm8Gob4",
                           "6.9/10")

greys_anatomy = media.TvShow("Greys Anatomy",
                             "A doctor has to juggle her professional goals with her romantic interests as a budding surgeon.",  # noqa
                             "https://upload.wikimedia.org/wikipedia/en/thumb/3/3e/Grey%27s_Anatomy_season_12_dvd.jpg/240px-Grey%27s_Anatomy_season_12_dvd.jpg",  # noqa
                             "2005",
                             "14",
                             "ABC",
                             "Losing My Religion",
                             "https: // www.youtube.com/watch?v=icXooBKhelc")

buffy = media.TvShow("Buffy",
                     "One girl is chosen to defend the world against vampires, and the forces of darkness.",  # noqa
                     "https://images-na.ssl-images-amazon.com/images/I/51DJ570H6VL._SX342_.jpg",  # noqa
                     "1997",
                     "7",
                     "FOX",
                     "Welcome To the HellMouth",
                     "https://www.youtube.com/watch?v=-1v_q6TWAL4")
favorites = [stepmom, white_chicks, labyrinth,
             harry_potter, buffy, greys_anatomy]
Esempio n. 19
0
    "A marine on an alien planet",
    "http://www.youtube.com/watch?v=-9ceBgWV8io")

school_of_rock = media.Movie(
    "School of Rock", "120 minutes",
    "http://upload.wikimedia.org/wikipedia/en/1/11/School_of_Rock_Poster.jpg",
    "Using Rock to Learn", "https://www.youtube.com/watch?v=3PsUJFEBC74")

ratatoullie = media.Movie(
    "Ratatoullie", "120 minutes",
    "http://upload.wikimedia.org/wikipedia/en/5/50/RatatouillePoster.jpg",
    "A rat's a chef", "https://www.youtube.com/watch?v=c3sBBRxDAqk")

The_fast_and_the_furious = media.Movie(
    "The Fast and the Furious", "120 minutes",
    "https://upload.wikimedia.org/wikipedia/en/5/54/Fast_and_the_furious_poster.jpg",
    "An amazing story of street racers",
    "https://www.youtube.com/watch?v=ZsJz2TJAPjw")

Seinfeld = media.TvShow(
    "Seinfeld", "30 minutes",
    "https://upload.wikimedia.org/wikipedia/commons/7/78/Seinfeld_logo.svg",
    "Season 1", "Episode 1", "https://www.youtube.com/watch?v=PaPxSsK6ZQA")

movies = [
    ratatoullie, The_fast_and_the_furious, toy_story, avatar, school_of_rock,
    Seinfeld
]

fresh_tomatoes.open_movies_page(movies)
Esempio n. 20
0
                                "While on a trip to Paris with his fiancée's family, a nostalgic screenwriter finds himself mysteriously going back to the 1920s everyday at midnight.",
                                "https://upload.wikimedia.org/wikipedia/en/9/9f/Midnight_in_Paris_Poster.jpg",
                                "https://www.youtube.com/watch?v=BYRWfS2s2v4")

hunger_games = media.Movie("Hunger Games",
                           "2h45m",
                           "Katniss Everdeen voluntarily takes her younger sister's place in the Hunger Games: a televised competition in which two teenagers from each of the twelve Districts of Panem are chosen at random to fight to the death.",
                           "https://upload.wikimedia.org/wikipedia/pt/d/dc/The_Hunger_Games.jpg",
                           "https://www.youtube.com/watch?v=4S9a5V9ODuY")

man_on_fire = media.Movie("Man on Fire",
                          "2h45m",
                          "In Mexico City, a former assassin swears vengeance on those who committed an unspeakable act against the family he was hired to protect.",
                          "https://upload.wikimedia.org/wikipedia/en/e/e8/Man_on_fireposter.jpg",
                          "https://www.youtube.com/watch?v=eDDh50B6kA4")

the_big_bang = media.TvShow ("The Big Bang Theory",
                             "0h45m",
                             "11",
                             "2 The Retraction Reaction",
                             "CBS",
                             "https://upload.wikimedia.org/wikipedia/en/5/56/The_Big_Bang_Theory_Season_1.jpg",
                             "https://www.youtube.com/watch?v=e8ykcZUQlNU")

#fresh_tomatoes - def open_movies_page

movies = [toy_story, avatar, school_of_rock, ratatouille, midnight_in_paris, hunger_games, man_on_fire, the_big_bang]
fresh_tomatoes.open_movies_page(movies)
#print(media.Movie.VALID_RATINGS) # Class variables
#print(media.Movie.__doc__) # Print class documentation - http://www2.lib.uchicago.edu/keith/courses/python/class/5/
#print(the_big_bang.duration)
get_out = media.Movie(
    "Get Out",
    "Chris meets his girlfriend's White parents and discovers"
    "something disturbing.",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BNTE"
    "2Nzg1NjkzNV5BMl5BanBnX"
    "kFtZTgwOTgyODMyMTI@._V1_UY1200_CR64,0,630,1200_AL_.jpg",
    "https://www.youtube.com/watch?v=A2JbO9lnVLE",
    "1h 44m")

# Instances of TV shows
breaking_bad = media.TvShow(
    "Breaking Bad",
    "A once loyal father and chemistry teacher, Walter White, "
    "turns to a life of crime due to developing stage 3 terminal lung cancer.",
    "https://i.pinimg.com/736x/0d/11/2e/0d112e94f0d614e9740ec59f29153639"
    "--tv-show-breaking-bad-poster.jpg",
    "https://www.youtube.com/watch?v=HhesaQXLuRY",
    "5",
    "62")

the_wire = media.TvShow(
    "The Wire",
    "Set in Baltimore, this show centers around the city's inner-city"
    "drug scene.",
    "http://www.michaeldvd.com.au/CoverArtUnverified/16256.jpg",
    "https://www.youtube.com/watch?v=uDcQbk78CSw",
    "5",
    "60")

fire_fly = media.TvShow(
Esempio n. 22
0
    "A rat is a chef in Paris.", "https://www.youtube.com/watch?v=c3sBBRxDAqk")

midnight_in_paris = media.Movie(
    "Midnight in Paris",
    "https://upload.wikimedia.org/wikipedia/en/9/9f/Midnight_in_Paris_Poster.jpg",
    "Going back in time to meet authors.",
    "https://www.youtube.com/watch?v=FAfR8omt-CY")

hunger_games = media.Movie(
    "The Hunger Games",
    "https://upload.wikimedia.org/wikipedia/en/4/42/HungerGamesPoster.jpg",
    "A really real reality show.",
    "https://www.youtube.com/watch?v=mfmrPu43DF8")

breaking_bad = media.TvShow(
    "Breaking Bad",
    "https://upload.wikimedia.org/wikipedia/en/6/61/Breaking_Bad_title_card.png",
    "Season 5", "https://www.youtube.com/watch?v=XZ8daibM3AE")

# the "movies" variable contains the class instances in an array to be used in generating the info on the web page.
trailers = [
    toy_story, avatar, the_goonies, school_of_rock, ratatouille,
    midnight_in_paris, hunger_games, breaking_bad
]

fresh_tomatoes.open_movies_page(
    trailers)  # opens the movie trailer web page in the web browser.

# print(media.Movie.VALID_RATINGS) <- test for printing array output of VALID RATINGS class variable

print(
    media.Movie.__doc__
Esempio n. 23
0
    "Harry Potter takes on Lord Voldemort",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BMTY2MTk3MDQ1N15BMl5BanBnXkFtZTcwMzI4NzA2NQ@@._V1_SY1000_SX675_AL_.jpg",
    "https://www.youtube.com/watch?v=5NYt1qirBWg")

mockingjay_part_2 = media.Movie(
    "The Hunger Games: Mockingjay Part 2",
    "Katniss must bring together the army against evil President Snow",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BNjQzNDI2NTU1Ml5BMl5BanBnXkFtZTgwNTAyMDQ5NjE@._V1_UY1200_CR79,0,630,1200_AL_.jpg",
    "https://www.youtube.com/watch?v=n-7K_OjsDCQ")

movies = [toy_story, avatar, harry_potter_deathly_hallows, mockingjay_part_2]

# Enter TV Show Content
walking_dead = media.TvShow(
    "The Walking Dead",
    "A group of individuals struggling through a world where the dead come back as zombies",
    "http://static.tvgcdn.net/rovi/showcards/tvshow/303547/thumbs/16923352_957x1276.jpg",
    "https://www.youtube.com/watch?v=R1v0uFms68U")

blacklist = media.TvShow(
    "The Blacklist",
    "An ex-con helps the FBI take down the members of his blacklist",
    "https://s-media-cache-ak0.pinimg.com/originals/ba/8f/fa/ba8ffaf54d9990f58aacf71c258de835.jpg",
    "https://www.youtube.com/watch?v=JGBIimq1I3A")

the_good_wife = media.TvShow(
    "The Good Wife",
    "A stay at home mom comes back to her job as a lawyer after her husband is publically investigated and found to have mulitple affairs",
    "https://images-na.ssl-images-amazon.com/images/M/MV5BMTI2OTk4MDk3OF5BMl5BanBnXkFtZTcwMTY3NTc3Mg@@._V1_UY1200_CR89,0,630,1200_AL_.jpg",
    "https://www.youtube.com/watch?v=OLN6Dp1Gi-8")
Esempio n. 24
0
    and Isengard and (spoiler alert)
    features the return of a most beloved character thought dead""",
    "https://upload.wikimedia.org/wikipedia/en/a/ad/Lord_of_the_Rings_-_" +
    "The_Two_Towers.jpg", "https://www.youtube.com/watch?v=Y4neBR0h39c")

lotr3 = media.Movie(
    "The Lord of the Rings: The Return of the King", "200 min", "10/10",
    """Third part of the Lord of the Rings trilogy. Tells of the final battles
    between good and evil and follows
    the journey of the ring to whichever end it may come""",
    "https://upload.wikimedia.org/wikipedia/en/9/9d/Lord_of_the_Rings_-_" +
    "The_Return_of_the_King.jpg",
    "https://www.youtube.com/watch?v=KOQSQaGgJxs")

bb_1_1 = media.TvShow(
    "Breaking Bad", "55 min", "10/10", 1, 1, "AMC",
    "https://upload.wikimedia.org/wikipedia/commons/7/77/" +
    "Breaking_Bad_logo.svg", "https://www.youtube.com/watch?v=HhesaQXLuRY")

bb_1_2 = media.TvShow(
    "Breaking Bad", "55 min", "9.8/10", 1, 2, "AMC",
    "https://upload.wikimedia.org/wikipedia/commons/7/77/" +
    "Breaking_Bad_logo.svg", "https://www.youtube.com/watch?v=HhesaQXLuRY")

got_1_1 = media.TvShow(
    "Game Of Thrones", "45 min", "9.5/10", 1, 1, "HBO",
    "http://www.gstatic.com/tv/thumb/tvbanners/" +
    "14160794/p14160794_b_v8_aa.jpg",
    "https://www.youtube.com/watch?v=gcTkNV5Vg1E")

media = [toy_story, lotr1, lotr2, lotr3, bb_1_1, bb_1_2, got_1_1]
fresh_tomatoes.open_movies_page(media)
                        "A story of a boy and his toys that come to life",
                        "150 mins", "Animation, Adventure, Comedy", "G",
                        "https://bit.ly/1OHWo0L",
                        "https://www.youtube.com/watch?v=vwyZH85NQC4")

avatar = media.Movie("Avatar", "A marine on an alien planet", "200 mins",
                     "Science Fiction, Action, Adventure, Fantasy", "PG-13",
                     "https://bit.ly/1oUhcTQ",
                     "https://www.youtube.com/watch?v=5PSNL1qE6VY")

heat = media.Movie("Heat 1995", "A Los Angeles crime saga", "180 mins",
                   "Crime, Thriller, Action", "R", "https://bit.ly/2V020JM",
                   "https://www.youtube.com/watch?v=2GfZl4kuVNI")

miami_vice = media.TvShow("Miami Vice", "Cops, Drugs & Miami", "60 mins",
                          "Crime, Action, Adventure", "R",
                          "https://bit.ly/2FE188w",
                          "https://www.youtube.com/watch?v=b6OymLS64Jo")

knight_rider = media.TvShow("Knight Rider", "A lone crime fighter", "60 mins",
                            "R", "Action, Crime", "https://bit.ly/2FF6OPS",
                            "https://www.youtube.com/watch?v=oNyXYPhnUIs")

street_hawk = media.TvShow("Street Hawk",
                           "A desk bound cop secretly fights crime", "60 mins",
                           "Superhero, Adventure, Action", "R",
                           "https://bit.ly/2uvXDuI",
                           "https://www.youtube.com/watch?v=sP_zFKkJgvY")

trailer = [heat, street_hawk, knight_rider, miami_vice, toy_story, avatar]
fresh_tomatoes.open_movies_page(trailer)
Esempio n. 26
0
                         "1hr 35min")

matchstick_men = media.Movie("Matchstick Men",
                             "A phobic con artist and his protégé are on the"
                             "verge to pull off a lucrative swindle when the"
                             "former's teenage daughter arrives unexpectedly.",
                             "https://upload.wikimedia.org/wikipedia/en/8/8e/"
                             "Matchstick_Men.jpg",
                             "https://www.youtube.com/watch?v=WgsmEhnIy7I",
                             "1hr 56min")

# Favourite TV Shows
walking_dead = media.TvShow("Walking Dead",
                            "Sheriff Deputy Rick Grimes wakes up from a coma,"
                            "to learn the world is in ruins, and must lead a"
                            "group of survivors to stay alive.",
                            "http://www.gstatic.com/tv/thumb/tvbanners"
                            "/13176393/p13176393_b_v8_ab.jpg",
                            "https://www.youtube.com/watch?v=R1v0uFms68U",
                            7)

game_of_thrones = media.TvShow("Game of Thrones",
                               "Nine noble families fight for control over the"
                               "mythical lands of Westeros, while a forgotten"
                               "race returns after being dormant for thousands"
                               "of years.",
                               "http://www.gstatic.com/tv/thumb/tvbanners"
                               "/14160794/p14160794_b_v8_aa.jpg",
                               "https://www.youtube.com/watch?v=BpJYNVhGf1s",
                               7)

house_of_cards = media.TvShow("House of Cards",
Esempio n. 27
0
                           "$109.7 million",
                           "IMDb = 8.5/10|Metacritic = 66%|"
                           "Rotten Tomatoes = 75%",
                           "2hr 10min")
# Game of Thrones Tv Show: Show's title, Show's storyline, Show's poster image,
# Show's trailer, Show's release date, Show's writers, Show's cast,
# Show's budget, Show's collection, Show's ratings, Show's duration
Game_of_thrones = media.TvShow("Game of Thrones",
                               "Several royal families desire the Iron Throne"
                               "\nto gain control of Westeros. Whilst kingdoms"
                               " fight each other for power,\na sinister force"
                               " lurks beyond the Wall in the north.\n",
                               "https://upload.wikimedia.org/wikipedia/en/d/d8/Game_of_Thrones_title_card.jpg",  # noqa
                               "https://www.youtube.com/watch?v=BpJYNVhGf1s",
                               "17 April 2011",
                               "David Benioff,\nD. B. Weiss",
                               "Emilia Clarke,\nKit Harington,\nSophie Turner,"
                               "\nPinker Dinklage,\nLena Headey,"
                               "\nMaisie Williams,\nNikolaj Coster-Waldau,"
                               "\nGwendoline Christie,\nAlfie Allen \n",
                               "8",
                               "HBO",
                               "IMDb = 9.5/10|TV.com = 9/10|"
                               "Rotten Tomatoes = 94%",
                               "67hr")
# Castle Rock Tv Show: Show's title, Show's storyline, Show's poster image,
# Show's trailer, Show's release date, Show's writers, Show's cast,
# Show's budget, Show's collection, Show's ratings, Show's duration
Castle_Rock = media.TvShow("Castle Rock",
                           "Henry returns to Castle Rock, Maine, unsettled by"
                           "\nthe place he once called home; based on the"
                           " literary canon of Stephen King.\n",
Esempio n. 28
0
    "http://ia.media-imdb.com/images/M/MV5BMjIxMjgxNTk0MF5BMl5BanBnXkFtZTgwNjIyOTg2MDE@._V1_SX640_SY720_.jpg",  # noqa
    "https://www.youtube.com/watch?v=idAVRvQeYAE")  # noqa

the_big_short = media.Movie(
    "The Big Short",
    "Based on the book by Michael Lewis"
    "(writer of Moneyball, Liar's Poker and Flash Boys, among others),"
    "the true story of a handful of investors who bet against the US mortgage market in 2006-7.",
    "http://cdn3-www.comingsoon.net/assets/uploads/gallery/the-big-short/tbs_1-sht_teaser.jpg",  # noqa
    "https://www.youtube.com/watch?v=vgqG3ITMv1Q")  # noqa

# Different TvShow instances

wall_street_warriors = media.TvShow(
    "Wall Street Warriors",
    "season1, 2, 3",
    "http://ecx.images-amazon.com/images/I/51uYlndI-IL.jpg",  # noqa
    "https://www.youtube.com/watch?v=nyRiuv4EDB4")  # noqa

traders = media.TvShow(
    "Traders",
    "season1, 2, 3, 4, 5",
    "http://www.gstatic.com/tv/thumb/tvbanners/184285/p184285_b_v8_ad.jpg",  # noqa
    "https://www.youtube.com/watch?v=n5RbftJr5CA")  # noqa

# Collect all the instances and put them into one array

movies_and_tvshows = [
    wall_street,
    inside_job,
    margin_call,