"They revisit their college days and recall "
    "the memories of their friend "
    "who inspired them to think differently, "
    "even as the rest of the world called them 'idiots' ",
    "http://www.gstatic.com/tv/thumb/"
    "movieposters/7951929/p7951929_p_v8_aa.jpg",
    "https://www.youtube.com/watch?v=K0eDlFX9GMc")

# movie object 5
movie5 = Movie(
    "The conjuring", "Paranormal investigators Ed and Lorraine "
    "Warren work to help a family terrorized by a "
    "dark presence in their farmhouse", "http://t2.gstatic.com/images?q=tbn:"
    "ANd9GcQnHDbJFDDZYC5g9gHa6-NqBE8JUet_iRIPXJym8CtaHsVQa76M",
    "https://www.youtube.com/watch?v=k10ETZ41q5o")

# movie object 6
movie6 = Movie(
    "Baahubali 2: The Conclusion", "When Shiva, the son of Bahubali, "
    "learns about his heritage, he begins to look for answers. "
    "His story is juxtaposed with past events "
    "that unfolded in the Mahishmati Kingdom",
    "https://www.desiretrees.in/wp-content"
    "/uploads/2017/01/Bahubali-2-Posters.jpg",
    "https://www.youtube.com/watch?v=qD-6d8Wo3do")

movies = [movie1, movie2, movie3, movie4, movie5, movie6]

# sending movies to open them in web page
open_movies_page(movies)
    "2001-2010",
    "https://www.youtube.com/watch?v=Ji6-Pbfypys",
    "http://ia.media-imdb.com/images/M/MV5BMTc2NjgxMzc5Nl5BMl5BanBnXkFtZTcwOTc0OTM0MQ@@._V1._CR10,44,330,454_SY317_CR8,0,214,317_AL_.jpg",  # noqa
    9,
    182,
    "Zach Braff",
    "Sarah Chalke",
    "Donald Faison",
    "Neil Flynn",
    "John C McGinley")

covert = media.Series(
    "Covert Affairs",
    "A young CIA operative/trainee, Annie Walker, \
                      is sent into the field to work for the DPD \
                      (Domestic Protection Division).",
    "2010-2014",
    "https://www.youtube.com/watch?v=pXXOg4Xe2xQ",
    "http://ia.media-imdb.com/images/M/MV5BMTM3Nzk5Njc3M15BMl5BanBnXkFtZTcwMTUxNzc4Nw@@._V1_SY317_CR11,0,214,317_AL_.jpg",  # noqa
    5,
    75,
    "Piper Perabo",
    "Christopher Gorham",
    "Kari Matchett")

# Add series to a list
series = {scrubs, raymond, covert}

# Render the HTML by passing in the movies and series.  Opens browser window.
fresh_tomatos.open_movies_page(movies, series)
import media
import fresh_tomatos

#Hard coded list of Movie objects with title and other info.
movies = [media.Movie(movie_title="The Shawshank Redemption",
                      poster_image="http://ia.media-imdb.com/images/M/MV5BODU4MjU4NjIwNl5BMl5BanBnXkFtZTgwMDU2MjEyMDE@._V1_SX214_AL_.jpg",
                      trailer_youtube="https://www.youtube.com/watch?v=NmzuHjWmXOc",
                      release_date="14 October 1994"),
          media.Movie(movie_title="Spirited Away",
                      poster_image="http://ia.media-imdb.com/images/M/MV5BMjYxMDcyMzIzNl5BMl5BanBnXkFtZTYwNDg2MDU3._V1_SY317_CR5,0,214,317_AL_.jpg",
                      trailer_youtube="https://www.youtube.com/watch?v=ByXuk9QqQkk",
                      release_date="20 July 2001"),
          media.Movie(movie_title="The Dark Knight",
                      poster_image="http://ia.media-imdb.com/images/M/MV5BMTMxNTMwODM0NF5BMl5BanBnXkFtZTcwODAyMTk2Mw@@._V1_SY317_CR0,0,214,317_AL_.jpg",
                      trailer_youtube="https://www.youtube.com/watch?v=_PZpmTj1Q8Q",
                      release_date="18 July 2008"),
          media.Movie(movie_title="Office Space",
                      poster_image="http://ia.media-imdb.com/images/M/MV5BOTA5MzQ3MzI1NV5BMl5BanBnXkFtZTgwNTcxNTYxMTE@._V1_SY317_CR0,0,214,317_AL_.jpg",
                      trailer_youtube="https://www.youtube.com/watch?v=dMIrlP61Z9s",
                      release_date="19 February 1999")]

if __name__ == "__main__":
    fresh_tomatos.open_movies_page(movies)
Beispiel #4
0
def main():
    fav_movies = load_movies()
    fresh_tomatos.open_movies_page(fav_movies)
    """rule 1 , no one knows about the fight club""",
    "https://www.movieposter.com/posters/archive/main/67/MPW-33738"
    "",  # NOQA
    """https://www.youtube.com/watch?v=J8FRBYOFu2w""")

sh_redemption = media.Movie(
    "Shawshank Redemption",
    "Crime Two imprisoned men bond" + "over a number of years",
    "https://sherrymedia.files.wordpress.com/2010/09/shawshank-redemption-poster.jpg?w=540",  # NOQA
    "https://www.youtube.com/watch?v=6hB3S9bIaco")

gone_girl = media.Movie(
    "Gone Girl",
    "thriller-Crime With his wife's disappearance" +
    " having become the focus of an intense media circus",
    "http://t1.gstatic.com/images?q=tbn:ANd9GcTwcWs6CK22NdvXZH0CbigLxoV-N3GIJypphImFYYv1vG_VKXTQ",  # NOQA
    "https://www.youtube.com/watch?v=Ym3LB0lOJ0o")

# creating Movie List

movies_list = [toy_story, avatar, batman, fight_club, sh_redemption, gone_girl]

# Displaying entertainment center in Web browser

fresh_tomatos.open_movies_page(movies_list)

# main

if __name__ == '__main__':
    pass
Beispiel #6
0
# Harry Potter and the Prisoner of Azkaban Movie: Title, youtube_url,
# storyline, movie_photo_link
harry_potter_3 = Movie(
    "Harry Potter and the Prisoner of Azkaban",
    "https://www.youtube.com/watch?v=lAxgztbYDbs",
    "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.",
    "http://vignette1.wikia.nocookie.net/harrypotter/images/c/c4/7VTALkqjG40vby3uVIsp03d7yXy.jpg/revision/latest?cb=20130803163319"  # NOQA
)

# Harry Potter and the Goblet of Fire Movie: Title, youtube_url,
# storyline, movie_photo_link
harry_potter_4 = Movie(
    "Harry Potter and the Goblet of Fire",
    "https://www.youtube.com/watch?v=BNcW1JLJ660",
    "A young wizard finds himself competing"
    " in a hazardous tournament between rival"
    " schools of magic, but he is distracted by"
    " recurring nightmares.",
    "https://vignette.wikia.nocookie.net/harrypotter/images/2/2c/Goblet_of_Fire_Film_Poster.jpg/revision/latest/scale-to-width-down/333?cb=20140817011104"  # NOQA
)

# Setting the list of the movies
movie_list = [harry_potter_1, harry_potter_2, harry_potter_3, harry_potter_4]

# Initializing the website with the list
start_page = ft.open_movies_page(movie_list)
import media
import fresh_tomatos
Zootopia = media.movies(
    "Zootopia (2016)", "https://youtu.be/g9lmhBYB11U",
    "https://image.tmdb.org/t/p/w600_and_h900_bestv2/sM33SANp9z6rXW8Itn7NnG1GOEs.jpg"
)

Minions = media.movies(
    "Minions (2015)", "https://youtu.be/jc86EFjLFV4",
    "https://image.tmdb.org/t/p/w600_and_h900_bestv2/q0R4crx2SehcEEQEkYObktdeFy.jpg"
)

Finding_Dory = media.movies(
    "Finding Dory (2016)", "https://youtu.be/JhvrQeY3doI",
    "https://image.tmdb.org/t/p/w600_and_h900_bestv2/z09QAf8WbZncbitewNk6lKYMZsh.jpg"
)

School_Rock = media.movies(
    "School of Rock (2003)", "https://youtu.be/LqEszt5wG9I",
    "https://image.tmdb.org/t/p/w600_and_h900_bestv2/cREN222Yw78zvSQ9bg17Y9QZS0c.jpg"
)

Maze_Runner = media.movies(
    "The Maze Runner (2014)", "https://youtu.be/64-iSYVmMVY",
    "https://image.tmdb.org/t/p/w600_and_h900_bestv2/coss7RgL0NH6g4fC2s5atvf3dFO.jpg"
)

films = [Zootopia, Minions, Finding_Dory, School_Rock, Maze_Runner]
fresh_tomatos.open_movies_page(films)