Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 871 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 871 Bytes

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.