1
Fork 0

Add project README

This commit is contained in:
Jake Howard 2023-05-05 11:44:01 +01:00
parent d7b66de563
commit c2837f5100
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 13 additions and 0 deletions

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# Plausible Page Report
Create a CSV of all page views by URL. Plausible has a [page stats export](https://plausible.io/docs/export-stats), but this silently limits itself to the 100 most viewed pages. It does however have an [API](https://plausible.io/docs/stats-api#get-apiv1statsbreakdown).
## Usage
Create an API key, and export it as `$PLAUSIBLE_API_TOKEN`
```
python3 report.py <hostname>
```
If you run your own Plausible instance ([like me](https://theorangeone.net/posts/self-hosting-plausible/)), set `$PLAUSIBLE_HOST`.

0
report.py Normal file → Executable file
View File