https://github.com/mfa/wandrer-earth-to-sqlite
convert wandrer.earth Your Points xlsx to sqlite
https://github.com/mfa/wandrer-earth-to-sqlite
Last synced: 12 months ago
JSON representation
convert wandrer.earth Your Points xlsx to sqlite
- Host: GitHub
- URL: https://github.com/mfa/wandrer-earth-to-sqlite
- Owner: mfa
- Created: 2023-12-09T21:57:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-09T21:57:55.000Z (over 2 years ago)
- Last Synced: 2025-04-01T21:49:13.567Z (about 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## wandrer-earth-to-sqlite
Convert [wandrer.earth your points](https://wandrer.earth/dashboard/stats) xlsx file to sqlite to query in [Datasette](https://datasette.io/).
More info in this blogpost: .
### requirements
```
openpyxl
pandas
sqlite-utils
```
optional:
```
datasette
```
### run
Download Your Points xslx file from , i.e. ``earth-09-12-23.xlsx``
```
python convert.py earth-09-12-23.xlsx
```
View newly created database with datasette:
```
datasette earth-09-12-23.db
```
Browse to
### Example Queries:
List of all Monthly achievements ordered by points:
```sql
SELECT full_name, name, points, updated FROM champions ORDER BY points DESC
```
Regions near to 25%:
```sql
SELECT pure_name, full_name, completed_in_km, percentage,
distance_to_25_in_km, distance_to_50_in_km, distance_to_75_in_km
FROM points WHERE percentage < 25 ORDER BY distance_to_25_in_km
```