Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

NJACKWinterOfCode/IMDB_Portal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMDB_Portal

A simple utility script which assists in getting movies information and ratings.

Features:

  1. Get movie information by title
  2. Find top rated movies
  3. Rename the directories which contain the movies by appending IMDB rating and year of release to it.

Modules used:

  • Bs4

  • Requests

  • lxml

  • json

  • Tkinter/tkinter

Installation Guide

  • To install all the dependencies in the requirements.txt file, use command pip install -r requirements.txt

  • The project has one more dependency : Python Tkinter To install Tkinter on Python 2.x : sudo apt-get install python-tk To install Tkinter on Python 3.x : sudo apt-get install python3-tk

It is implemented using the BeautifulSoup module of bs4 , requests module, along with os, sys and json modules.

  • The first feature is implemented using the json response generated, after making a request via the requests module to the TMDB API after generating an API key from the website. The json response is thereafter processed and the information is extracted using the json module. The IMDB rating is obtained by using the IMDB ID obtained from the json response and then using the ID to scrap rating from : http://www.imdb.com/title/<IMDB_ID> .

  • The second feature is implemented by scraping the Top 'n'(say 50) movies from the IMDB website using the response generated through the requests module.

  • The third feature is an added sub-feature to the first one. The information gathered, is thereafter appended to the directory name. This directory accessing and renaming is done by the help of os module.

How to use: Enter the choices and title of the movie when asked for.

Instructions before using: If you are going to use the third feature, make sure that all the folders' name contain only the movie name, and no other extra character or whitespace should be left. Also ensure you enter the correct and complete path (e.g.: /home/user-name/Videos/ or /media/user-name/New Volume/Videos).

To run the script in CUI Mode: Type python imdb.py from your terminal. To run the script in GUI Mode: Type python app.py from your terminal.

All the results will be displayed on the terminal, as well as saved in a file called info.txt in the same directory where the script is present.

About

A utility tool to check out movies information and ratings!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%