I want to create a script that retrives all stats from all site at my plausible account:
APIs:
https://plausible.io/docs/sites-api
https://plausible.io/docs/stats-api
1. Find all sites in my plausible account using the site api
2. Retrieve stats for each site using the stats api
3. Combine all stats into a single data structure
4. Write the combined month to date stats to ./output/month-to-date.csv
5. Write the combined year to date stats to ./output/year-to-date.csv
First, read the requirements carefully.
Then, start with design.md first. Stop there until further instructions.
I reviewed design.md, everything looked fine so I asked copilot to:
Start implementing the design.