Built using Perplexity.ai
Authenticates via OAuth2 (Authorization Code flow), fetches all paginated workout results, parses them into a Pandas DataFrame, computes summary statistics, and exports to a styled Excel workbook with charts.
- Register your application at https://log.concept2.com/developers/home
- Redirect URI: http://localhost:8000/callback
- Install dependencies: pip install requests requests-oauthlib pandas openpyxl
- Set environment variables in an .env file in the root directory (or edit CREDENTIALS below): C2_CLIENT_ID=your_client_id C2_CLIENT_SECRET=your_client_secret
- Run: python concept2_logbook.py
The script will open your browser for OAuth approval, then fetch all workouts and write concept2_workouts.xlsx to the current directory.
