-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovie_list.py
73 lines (62 loc) · 2.37 KB
/
movie_list.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
'''This module contanis a list of six favourite movies
to be displayed on a local website.
Each movie object provies 4 types of information abou the movie:
- title
- storyline
- poster image
- youtube trailer'''
import media
import fresh_tomatoes
def movies_list():
night_crawler = media.Movie(
"Night Crawler",
"A story of a man who is willing to do anything"
"for getting to his goal",
"http://t0.gstatic.com/images?q=tbn:ANd9GcSmbiO41jmiTPaGUv1I61kVqe-JPxfpkSfw20i6QfvGv5Zqd7jP", # NOQA
"https://www.youtube.com/watch?v=u1uP_8VJkDQ"
)
persuit_of_happiness = media.Movie(
"Persuit of happiness",
"A stroy of man who struggles in life not to fail"
"and be successful",
"http://www.gstatic.com/tv/thumb/movieposters/162523/p162523_p_v8_ad.jpg", # NOQA
"https://www.youtube.com/watch?v=89Kq8SDyvfg"
)
groundhog_day = media.Movie(
"Groundhog day",
"A weatherman finds himself living the same day"
"over and over again",
"http://www.gstatic.com/tv/thumb/movieposters/14569/p14569_p_v8_ay.jpg", # NOQA
"https://www.youtube.com/watch?v=tSVeDx9fk60"
)
Novitiate = media.Movie(
"Novitiate",
"A story of a young woman who decides to grant herself"
"for jesus then, starts question herself about her faith.",
"https://upload.wikimedia.org/wikipedia/en/c/c2/Novitiate_film_poster.jpg", # NOQA
"https://www.youtube.com/watch?v=8kKexutLfE0"
)
cast_away = media.Movie(
"Cast Away",
"A man survives alone on an island"
"and finds a way to get home after 4 years there.",
"http://www.gstatic.com/tv/thumb/movieposters/26553/p26553_p_v8_at.jpg", # NOQA
"https://www.youtube.com/watch?v=2TWYDogv4WQ"
)
brave_heart = media.Movie(
"Braveheart",
"William Wallace leads his country scotland to a war"
"against English army who slautered his wife",
"http://t0.gstatic.com/images?q=tbn:ANd9GcSnnenelmzF4MKdtHBnaQYbDstLRExO1brKmrTBe_Ve40Vwq_lO", # NOQA # NOQA
"https://www.youtube.com/watch?v=1NJO0jxBtMo"
)
return([
night_crawler,
persuit_of_happiness,
groundhog_day,
Novitiate,
cast_away,
brave_heart
])
movies = movies_list()
fresh_tomatoes.open_movies_page(movies)