This is a powerful command-line tool that allows you to fetch detailed information about movies from IMDb (Internet Movie Database). With this script, you can quickly access movie details such as title, release year, plot summary, cast, ratings, and more, directly from the IMDb database.
Before using the script, ensure that the following dependencies are installed on your system:
- Bash (Bourne Again SHell)
- cURL (Client for URLs)
- jq (Command-line JSON processor)
Clone this repository to your local machine:
git clone https://github.com/Njoguu/imdb-bash.git
Change into the project directory:
cd imdb-movie-information-fetcher
Make the imdb-ghw.sh
script executable:
chmod +x imdb-ghw.sh
Run the script by providing the movie title as an argument:
./imdb-ghw.sh "Movie Title"
Replace "Movie Title" with the title of the movie you want to fetch information about. If the title contains spaces, make sure to enclose it in double quotes.
./imdb-ghw.sh "Teen Wolf"
The script will display detailed information about the movie, including:
- Title
- Year of release
- Runtime
- Genre
- Plot summary
To use the script correctly you need an API KEY from Open Movie Database.
Include it in the imdb-ghw.sh
script:
IMDB_API_KEY="your_api_key_here"
Replace "your_api_key_here" with your actual OMDb API API key. Please follow the terms of use while using the script.