No description
  • Python 86.2%
  • Shell 13.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Werle 9175b685ad docs: add license, changelog, readme
Move the original readme into the docs folder as the design doc
2026-09-17 02:53:14 +09:00
docs docs: add license, changelog, readme 2026-09-17 02:53:14 +09:00
packaging/appimage Initial commit: project skeleton 2026-09-16 15:05:01 +09:00
scripts Initial commit: project skeleton 2026-09-16 15:05:01 +09:00
src/bmw_motorrad_scraper feat: bump version number 2026-09-17 02:13:47 +09:00
.gitignore Cache login session 2026-09-16 17:28:23 +09:00
CHANGELOG.md docs: add license, changelog, readme 2026-09-17 02:53:14 +09:00
DEVELOPMENT.md Initial commit: project skeleton 2026-09-16 15:05:01 +09:00
LICENSE.txt docs: add license, changelog, readme 2026-09-17 02:53:14 +09:00
pyproject.toml Initial commit: project skeleton 2026-09-16 15:05:01 +09:00
README.md docs: add license, changelog, readme 2026-09-17 02:53:14 +09:00
requirements-dev.txt Initial commit: project skeleton 2026-09-16 15:05:01 +09:00
requirements.txt Initial commit: project skeleton 2026-09-16 15:05:01 +09:00

BMW Motorrad Mileage Scraper

Overview

Every year, BMW Motorrad Japan runs a mileage rally. By clocking up and registering miles with a dealer, participants can earn prizes.

Secondarily, participants can check in to Spots and collect Stamps. As of 2026, collecting Stamps does not earn any prizes.

Spots are comprised of Official Spots, created by BMW dealers, and Community Spots which are submitted by rally participants.

Scraping Spots

This program scrapes the official rally website for both Official and Community Spots and saves them as either a CSV file or a GPX file.

This allows importing the Spots as Waypoints in your satellite navigation system. This program is primarily designed for use with OsmAnd and its Web interface.

Usage

$ bmw-motorrad-mileage-scraper --help
usage: bmw-motorrad-mileage-scraper [-h] [--version] [--year YEAR] [--format {csv,gpx}] [--quiet] [--email EMAIL]
                                    [--password PASSWORD] [--session-path SESSION_PATH]

Export BMW Motorrad Mileage Rally spots to GPX.

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --year YEAR
  --format {csv,gpx}
  --quiet               suppress informational messages
  --email EMAIL
  --password PASSWORD
  --session-path SESSION_PATH
                        path to the cached Mozilla/Netscape cookie file

By default, the scraper prompts for your login details and then downloads and prints the Spots as a CSV. The session is saved for later reuse.

To download the Spots as a GPX, use:

$ bmw-motorrad-mileage-scraper --format gpx > bmw_mileage_rally_2026_spots.gpx

Development

See the Development document for more information. The Design document was the original input into a Vibe-coding session using Copilot, although later modifications are handcrafted.

License

This software is licensed under the MIT License