IMDB Scraper / IMDB API without a key ✨.
Simple python web scraper to scrape IMDB.
This tool can get the following information:
- Movie Name
- Movie Year
- Movie Rating
- Movie Duration
- Movie Storyline
- Movie Poster
- Movie Trailer
Also it get more info on tv-series :
- Series Episodes
- Series Seasons
To deploy this project
clone the project and run the following commands:
git clone https://github.com/chnthkksn/imdb-api.git # clone the project
cd imdb-api # go to project directory
python -m venv venv # create virtual environment
venv\Scripts\activate # activate virtual environment
pip install -r requirements.txt # install requirements
python main.py # run the project
After running the project you can use the following endpoints:
- /docs - all the endpoints and their usage
- /api/search/{query} - search for a movie/tv series by name ( urlencode the query - ex: /api/search/avengers%20endgame )
- /api/getinfo/{movie_id} - get movie/tv series info
- /api/getimg/{movie_id} - get screenshots of the movie/tv series
- /api/akas/{movie_id} - get as known as titles of the movie/tv series
{movie_id} is the imdb id of the movie/tv series
You can get the imdb id from the url of the movie/tv series
For example: https://www.imdb.com/title/tt4154796/
The imdb id is: tt4154796
- Python - Language
- BeautifulSoup - Web scraper
- FastApi - Web framework
- Uvicorn - ASGI Web server
- Add search query endpoint
- Add top movies endpoint
- Add trending movies endpoint
- Create a docker image
- Add as known as titles endpoint