Skip to content

An IMDB API written in python which returns json object of all the info of a movie available on imdb.com taking IMDB ID as input .

Notifications You must be signed in to change notification settings

msaqib4203/IMDB-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

IMDB-API

A python script which takes imdb ID or movie title as input and outputs a JSON object of all the information available on www.imdb.com

Dependancies

  • BeautifulSoup
  • requests
  • json

Usage

Input:
Enter IMDB ID or Title: tt2395427

Output:
{"rating": "7.4", "votes": "519,581", "rated": "PG-13", "description": "When Tony Stark and Bruce Banner try to jump-start a dormant peacekeeping program called Ultron, things go horribly wrong and it's up to Earth's mightiest heroes to stop the villainous Ultron from enacting his terrible plan.", "title": "Avengers: Age of Ultron\u00a0(2015)", "poster": "https://images-na.ssl-images-amazon.com/images/M/MV5BMTM4OGJmNWMtOTM4Ni00NTE3LTg3MDItZmQxYjc4N2JhNmUxXkEyXkFqcGdeQXVyNTgzMDMzMTg@._V1_UX182_CR0,0,182,268_AL__QL50.jpg", "bestRating": "10", "cast": ["Robert Downey Jr.", "Chris Evans", "Mark Ruffalo"], "directors": ["Joss Whedon"], "writers": ["Joss Whedon", "Stan Lee (based on the Marvel comics by)", "Marvel Studios", "Walt Disney Pictures"], "genre": ["Action", "Adventure", "Sci-Fi"]}


Input:
Enter IMDB ID or Title: harry potter 6

Output:
{"rating": "7.5", "votes": "352,297", "rated": "PG", "description": "As Harry Potter begins his sixth year at Hogwarts, he discovers an old book marked as "the property of the Half-Blood Prince" and begins to learn more about Lord Voldemort's dark past.", "title": "Harry Potter and the Half-Blood Prince\u00a0(2009)", "poster": "https://images-na.ssl-images-amazon.com/images/M/MV5BNzU3NDg4NTAyNV5BMl5BanBnXkFtZTcwOTg2ODg1Mg@@._V1_UX182_CR0,0,182,268_AL__QL50.jpg", "bestRating": "10", "cast": ["Daniel Radcliffe", "Emma Watson", "Rupert Grint"], "directors": ["David Yates"], "writers": ["Steve Kloves (screenplay)", "J.K. Rowling (novel)", "Warner Bros.", "Heyday Films"], "genre": ["Adventure", "Family", "Fantasy"]}


Feel free to use or suggest any changes. Thank You! 😇

About

An IMDB API written in python which returns json object of all the info of a movie available on imdb.com taking IMDB ID as input .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages