A web scraper for extracting actor names and their corresponding roles from IMDb's website. It allows you to input a movie name and retrieves the cast information by scraping the IMDb web pages.
- Enter a movie name and retrieve the cast details.
- Utilizes web scraping techniques to extract data from IMDb.
- Displays the movie title and the names of actors along with their respective roles.
- Provides a simple and straightforward way to gather cast information for a specific movie.
- Python 3.x
- Required libraries: urllib, bs4, requests
- Clone this repository or download the script file.
- Ensure that you have Python 3.x installed.
- Install the required libraries by running the following command:
pip install -r requirements.txt
This will install all the necessary libraries specified in the requirements.txt file.
4. Open a terminal or command prompt and navigate to the directory where the script is located.
5. Run the script using the following command:
python castScraper.py
- Follow the prompts and enter the movie name when prompted.
- The script will scrape the IMDb website and display the movie's title, along with the actors and their roles, on the console.
Feel free to use and modify this script as per your requirements.
This script is intended for educational and personal use only. Please ensure compliance with IMDb's terms of service and any applicable laws and regulations when using this script.