feat: implement import-trips CLI with Playwright-based Kia trip scraper #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/import-trips"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the import-trips CLI command for scraping trip history from owners.kia.com.
Changes
scripts/import_trips.pywith full implementationtests/test_import_trips.pywith 12 mock-based tests (no real API calls)CLI Flags
--start YYYYMMDD(default: 30 days ago)--end YYYYMMDD(default: today)--dry-run(login only, skip trip fetch)--verbose(debug logging)Functional
Testing
All 12 tests pass. Coverage includes:
Verification
Closes #3