Skip to main content

Ranking 99 Mind f*ck movies

· 3 min read


Ranking and sorting a list of 99 mind-bending thriller movies using IMDbPy API in Python.

The open source code is available here.

During the Christmas holidays, me and my girlfriend, after watching The Office [US] twice in a row, and knowing most of Dwight’s pranks off by heart, decided that it was time to find something worth watching.

Although there’s lots of tempting series out there, we didn’t want to follow that path as we don’t like the “addiction” effect that a series has. Also, we have the same taste regarding movies, where we both enjoy complex thriller plots, that leave your mind to resonate about them long after being done with it. Personally, I consider a movie great when it still crosses my mind when trying to sleep or the day after. So, thriller movies it was.

After doing a little research work I came across this list of movies on Reddit: 99 mind f*ck movies. I knew this list was good because most of my favourite movies were there, e.g. The Prestige, Inception, The Usual Suspects, Primal Fear, and Ex Machina.

So, the movie list was decided, and with that, also our new year’s resolution.

However, this list had 2 issues:

1. The list didn’t have any particular order. We would like to have the list ranked from best to worst, so that watching the best ones first will keep our motivation levels up to finish the list.

2. The movie title didn’t have the released year. Although we don’t particularly mind old movies, sometimes we’re just not in the mood to watch a B&W screen, or poor image resolution.

Therefore, while Meg was busy, I was on a role to hack something that would both sort the list based on IMDB ranking, and add the release years to the titles.

In a couple of minutes, I was already playing with IMDbPy API. This allowed me to have the sorting algorithm running in the background pretty quick. Within the hour, we already had our sorted movie list. Which I have attached below for future reference.

image

The first movie of the list that none of us had already watched was the movie Incendies. After having watched this movie, I can already tell you that sorting out this list was worth it. Definitely mind blowing, and a great watch.

As usual, you can find the source code on my github: SortMoviesPerRating.

Hope you enjoyed this read!