titles years durations ratings votes
1 Kuru Otlar Üstüne 2023 197 8.1 5063
2 Istanbul Için Son Çagri 2023 91 5.3 35018
3 Yedinci Kogustaki Mucize 2019 132 8.2 5063
4 Ölümlü Dünya 2 2023 117 7.5 35018
5 Bihter 2023 113 3.6 5063
6 Ölümlü Dünya 2018 107 7.6 35018
7 Kis Uykusu 2014 196 8.0 5063
8 Dag II 2016 135 8.2 35018
9 Do Not Disturb 2023 114 6.3 5063
10 Ayla: The Daughter of War 2017 125 8.3 35018
Question 3
Arrange your data frame in descending order by Rating. Present the top 5 and bottom 5 movies based on user ratings. Have you watched any of these movies? Do you agree or disagree with their current IMDb Ratings?
I cannot say that I agree with this list, which was created based on the points given by users. They are definitely enjoyable, entertaining and valuable movies. However, the events depicted in the films made by Yeşil Yeşil Çam are old and a bit exaggerated compared to today. I think there are better movies.
Bottom 5 movies based on user ratings.
bottom5_movies <-tail(df, 5)print(bottom5_movies)
titles years durations ratings votes
189 Cumali Ceber 2 2018 100 1.2 5063
199 Müjde 2022 NA 1.2 5063
245 15/07 Safak Vakti 2021 95 1.2 5063
101 Cumali Ceber: Allah Seni Alsin 2017 100 1.0 5063
150 Reis 2017 108 1.0 35018
To be honest, I haven’t watched any of the movies in this list. So I can say I have no idea.
Check the ratings of 2-3 of your favorite movies. What are their standings?
url ="https://www.imdb.com/search/title/?title_type=feature&groups=top_1000&country_of_origin=TR&count=250"name <-c()year <-c()html =read_html(url)title <- html %>%html_nodes('.ipc-title__text')title <-html_text(title)title <-tail(head(title,-1),-1)title <-str_split(title, " ", n=2)title <-unlist(lapply(title, function(x) {x[2]}))year <- html %>%html_nodes(".sc-43986a27-7.dBkaPT.dli-title-metadata")year <-html_text(year)year <-substr(year, 1, 4)year <-as.numeric(year)name <-append(name, title)year <-append(year, year)top1000_df <-data.frame(name, year)print(top1000_df, caption ="Turkish movies in IMDB Top1000 without rating, duration and votes")
name year
1 Yedinci Kogustaki Mucize 2019
2 Kis Uykusu 2014
3 Nefes: Vatan Sagolsun 2009
4 Ayla: The Daughter of War 2017
5 Babam ve Oglum 2005
6 Ahlat Agaci 2018
7 Bir Zamanlar Anadolu'da 2011
8 Eskiya 1996
9 G.O.R.A. 2004
10 Vizontele 2001
11 Her Sey Çok Güzel Olacak 1998
12 Yedinci Kogustaki Mucize 2019
13 Kis Uykusu 2014
14 Nefes: Vatan Sagolsun 2009
15 Ayla: The Daughter of War 2017
16 Babam ve Oglum 2005
17 Ahlat Agaci 2018
18 Bir Zamanlar Anadolu'da 2011
19 Eskiya 1996
20 G.O.R.A. 2004
21 Vizontele 2001
22 Her Sey Çok Güzel Olacak 1998
New data frame with Turkish movies in the top 1000 containing only the title and year.
top1000_new_df<-merge(x=top1000_df, y=df,by.x=c("name", "year"),by.y=c("titles", "years"), all.x=TRUE)print(top1000_new_df, caption ="Turkish movies in IMBD Top1000 with rating, duration and votes")
name year durations ratings votes
1 Ahlat Agaci 2018 188 8.0 35018
2 Ahlat Agaci 2018 188 8.0 35018
3 Ayla: The Daughter of War 2017 125 8.3 35018
4 Ayla: The Daughter of War 2017 125 8.3 35018
5 Babam ve Oglum 2005 108 8.2 35018
6 Babam ve Oglum 2005 108 8.2 35018
7 Bir Zamanlar Anadolu'da 2011 157 7.8 5063
8 Bir Zamanlar Anadolu'da 2011 157 7.8 5063
9 Eskiya 1996 128 8.1 35018
10 Eskiya 1996 128 8.1 35018
11 G.O.R.A. 2004 127 8.0 35018
12 G.O.R.A. 2004 127 8.0 35018
13 Her Sey Çok Güzel Olacak 1998 107 8.1 35018
14 Her Sey Çok Güzel Olacak 1998 107 8.1 35018
15 Kis Uykusu 2014 196 8.0 5063
16 Kis Uykusu 2014 196 8.0 5063
17 Nefes: Vatan Sagolsun 2009 128 8.0 5063
18 Nefes: Vatan Sagolsun 2009 128 8.0 5063
19 Vizontele 2001 110 8.0 5063
20 Vizontele 2001 110 8.0 5063
21 Yedinci Kogustaki Mucize 2019 132 8.2 5063
22 Yedinci Kogustaki Mucize 2019 132 8.2 5063
top1000_new_df <- top1000_new_df[order(top1000_new_df$ratings, decreasing =TRUE),]print(top1000_new_df, caption ="Turkish movies in IMDB Top 1000 according to rankings.")
name year durations ratings votes
3 Ayla: The Daughter of War 2017 125 8.3 35018
4 Ayla: The Daughter of War 2017 125 8.3 35018
5 Babam ve Oglum 2005 108 8.2 35018
6 Babam ve Oglum 2005 108 8.2 35018
21 Yedinci Kogustaki Mucize 2019 132 8.2 5063
22 Yedinci Kogustaki Mucize 2019 132 8.2 5063
9 Eskiya 1996 128 8.1 35018
10 Eskiya 1996 128 8.1 35018
13 Her Sey Çok Güzel Olacak 1998 107 8.1 35018
14 Her Sey Çok Güzel Olacak 1998 107 8.1 35018
1 Ahlat Agaci 2018 188 8.0 35018
2 Ahlat Agaci 2018 188 8.0 35018
11 G.O.R.A. 2004 127 8.0 35018
12 G.O.R.A. 2004 127 8.0 35018
15 Kis Uykusu 2014 196 8.0 5063
16 Kis Uykusu 2014 196 8.0 5063
17 Nefes: Vatan Sagolsun 2009 128 8.0 5063
18 Nefes: Vatan Sagolsun 2009 128 8.0 5063
19 Vizontele 2001 110 8.0 5063
20 Vizontele 2001 110 8.0 5063
7 Bir Zamanlar Anadolu'da 2011 157 7.8 5063
8 Bir Zamanlar Anadolu'da 2011 157 7.8 5063