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

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