Skip to content

Instantly share code, notes, and snippets.

@giang-pham
giang-pham / download_sentry_data.py
Last active December 21, 2022 15:45 — forked from siiramone/download_sentry_data.py
Download sentry events with a query for a project. Useful for data processing.
"""Download sentry data.
usage:
1. create auth token (https://sentry.io/settings/account/api/auth-tokens/).
2. make a directory for export if not exists.
$ mkdir data
3. fix query (L29).
4. install python and run pip3 install requests then execute
$ python download_sentry_data.py <org>/<project> <auth_token>
5. a CSV file with a name formatted as "./data/issues_YYYYmmDDHHMMSS.csv" is created.
"""