The goal for this python script it to retrieve all the events that happened in one Sonarqube community instance
export SONARQUBE_TOKEN="token"
export SONARQUBE_URL="url"
Just run:
python3 sonarqube_stats.py
Read more about the process in my blog: https://pt4.tech/blog/sonarqube-usage-stats/