Posts Tagged ‘python script’

I finally got tons of pirated movies from my friends on a HD, the movies number maybe was about 500 movies.

My problem was that which one to start with, I used to pick a name and search the Internet for the ratings, and repeat this till I get a recommended one, shit, no?!

What is nice about being a programmer? is you can help yourself 🙂

I wrote a Python script which expects the movies directory and will scan this directory and collect the movies sub-directories names and get the ratings from the Internet and sort them by rating, that’s it.

Example of the tool results:

arefaey@arefaey:~/workspace/Movies Rater: python movies-rater.py /home/arefaey/movies/
Total movies found: 236
API response had no rating for movie: The Back-Up Plan
API response had no rating for movie: Once Upon a Time in the West
API response had no rating for movie: Cowboys and Aliens
API response had no rating for movie: New folder

#############################
Rated Movies: 222

(‘The Shawshank Redemption’, 9.3)
(‘The Rite’, 9.3)
(‘The Godfather’, 9.2)
(‘Pulp Fiction’, 9.0)
(‘The Dark Knight’, 9.0)
(‘The Godfather Part II’, 9.0)
(‘Fight Club’, 8.9)
(‘Inception’, 8.8)
(‘Inception ‘, 8.8)
(‘Goodfellas’, 8.8)
(‘Saving Private Ryan’, 8.6)
…………….

#############################
Unrated Movies: 14

Even the Rain
Gnomeo and Juliet
The Back-Up Plan
Undisputed III Redemption
Outlander.08.DVDRip
Like Stars on Earth
Terribly Happy
Love Likes Coincedences
Once Upon a Time in the West
Cowboys and Aliens
New folder
Born to Raise Hell 2
King of Devil’s Island
Mooz-lum

Fork me  https://github.com/montaro/movies-rater

Advertisements