Skip to content

This script scrapes the top movies from IMDb and stores the data in a CSV file.

Notifications You must be signed in to change notification settings

ecrudele/imdb-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMDb Top Movies Scraper

This script scrapes the top movies from IMDb and stores the data in a CSV file.

Installation

  1. Create a virtual environment called .env:

    python -m venv .env
  2. Activate the virtual environment:

    • Linux/macOS:
      source .env/bin/activate
    • Windows:
      .env\Scripts\activate
  3. Install the required libraries:

    pip install -r requirements.txt

Usage

To run the script, execute the following command:

python main.py

The script will store the data in a CSV file named top_movies.csv in the same directory.

Tests

To run the tests in the tests directory, execute the following command:

pytest

Make sure the virtual environment is activated beforehand. You can run this command in the root directory.

About

This script scrapes the top movies from IMDb and stores the data in a CSV file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages