How transparency data was gathered, processed, and visualized.
storage.googleapis.com/transparencyreport/).r.jina.ai/<url>) is used as a free fallback to extract page text where needed.src/gtra/datasets.py — registry of all datasets with source URLs and bulk availability flags.src/gtra/download.py — fetches and caches each bulk dataset under data/<id>/. Idempotent — skips if cached.src/gtra/analyze.py — per-dataset analysis. For copyright: loads CSV, normalizes column names, generates charts. For non-bulk: returns documented stub findings.src/gtra/charts.py — shared matplotlib/seaborn chart helpers with a consistent editorial palette.src/gtra/build_site_data.py — exports all findings as JSON to docs/data/ for the static site to consume.docs/data/copyright.json generated by the Python pipeline. Run python -m gtra.analyze --dataset copyright --download --report then python -m gtra.build_site_data to update.# Run full pipeline locally
git clone https://github.com/chirag127/google-transparency-report-analysis.git
cd google-transparency-report-analysis
pip install -r requirements.txt
pip install -e .
# Download + analyze copyright dataset
python -m gtra.analyze --dataset copyright --download --report
# Export all JSON for site
python -m gtra.build_site_data
# Run tests
pip install -r requirements-dev.txt
pytest tests/ --ignore=tests/e2e