1
Install
Tirsvad edited this page 2026-11-21 07:46:21 +01:00

Install

🌐 English · Dansk · Bahasa Melayu

Create a local virtual environment in .venv, upgrade pip and install the project with its test tools. You need Python 3.14 or newer.

Linux and macOS:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Windows (PowerShell):

py -3.14 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Run the scraper (it waits 2 s between requests and writes data/wellness_foods.csv):

python -m nutrition_scraper

Run the tests:

python -m pytest