Fetch every contract from portal and export the data—including Valor total—to contratos.csv.
python -m transparencia.main Or
pytest tests/integrations/test_main.py::test_scrape_integration - Python ≥ 3.10
- Chromium (downloaded automatically by Playwright)
pipx install uv uv venv .venv
source .venv/bin/activate//double check this
uv pip install beautifulsoup4 playwright pytest
playwright install uv pip install -r requirements.txtscraper/
│
├─ transparencia/
│ └─ main.py
│
└─ tests/
├─ integration/
│ └─ transparencia/
│ └─ test_main.py