bluegreencity-ki

Citree Species Extraction

Overview

This workflow extracts all species profiles and all available criteria from the public Citree website via its internal AJAX endpoints.

The extraction currently uses:

The resulting files are written to data/derived/species:

Script

Script entry point:

Reusable parser and HTTP logic:

Extracted Fields

The CSV contains one row per Citree profile and one column per extracted criterion.

Metadata columns:

Criteria columns include, among others:

The extractor also keeps all additional criteria that appear in the Citree detail tables.

Label Normalization

Citree uses inconsistent label spellings in some places, for example around umlauts or separators.

The extractor normalizes known variants to stable output columns, for example:

Unknown labels are preserved as they appear after whitespace normalization.

Usage

Run from the project root:

python scripts/extract_citree_species_catalog.py

Optional test run:

python scripts/extract_citree_species_catalog.py --limit 10 --delay-seconds 0

Output Format

CSV

Flat table for downstream joins, manual inspection, and import into other tools.

JSON

The JSON file stores:

Notes