Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedragon/mywheels-scraper
Small utility to export invoices from the MyWheels website into CSV and/or JSON
https://github.com/fedragon/mywheels-scraper
Last synced: about 1 month ago
JSON representation
Small utility to export invoices from the MyWheels website into CSV and/or JSON
- Host: GitHub
- URL: https://github.com/fedragon/mywheels-scraper
- Owner: fedragon
- Created: 2024-11-18T05:48:12.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T05:48:23.000Z (about 2 months ago)
- Last Synced: 2024-12-01T07:39:34.202Z (about 1 month ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mywheels scraper
aka: what you end up doing when you periodically want to know how much you're spending using the [MyWheels](https://mywheels.nl) service, but there's "download all invoices to CSV" button on their website.
This small utility collects my invoices' history from the [MyWheels website](https://mywheels.nl), storing them to a local sqlite3 database and (optionally) exporting them to CSV and/or JSON. When run over an existing database, it only collects the new invoices, if any.
## Run
1. Run the Chromium version installed by Playwright in debug mode, e.g.
```
~/Library/Caches/ms-playwright/chromium-1140/chrome-mac/Chromium.app/Contents/MacOS/Chromium --remote-debugging-port=9222
```2. In the browser window that just opened, login to your MyWheels account
3. Run
```
uv run src/app/main.py --download 1 -- export csv json
```