This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Minimal downloader for PostHog session replay snapshots. | |
| - Reads POSTHOG_HOST, POSTHOG_PERSONAL_API_KEY, POSTHOG_PROJECT_ID from .env | |
| - Writes one JSON file per event in a per-session folder | |
| - Only supports blob_v2 source currently | |
| Example: | |
| # Download latest 3 sessions from last 7 days |