I like planning travel routes around automotive/motorcycle museums, and last winter i wasted too much time manually pinning museum locations in Google My Maps.
This repo is an effort to have content of Automuseums.info website as GPX files.
Download generated GPX files here: https://automuseums.tldrtravel.info
Display help:
.venv/bin/python3 cli.py --help
Generate all possible output GPX files:
.venv/bin/python3 cli.py --group
Regenerate output files with current cache:
.venv/bin/python3 cli.py --group '--cache-ttl-countrylist' '999' '--cache-ttl-museumlist' '999' '--cache-ttl-museumpage' '999'
Run in lowprofile mode and regenerate grouped GPX:
.venv/bin/python3 cli.py --lowprofile --group
--lowprofile
mode is designed to be executed periodically (e.g. via cron)
and keep output GPX files up to date with upstream website data.
It will pick a single country with oldest (or absent) output
and refresh data on its museums, including grouped-by-region
output files
if --group
option is enabled.
With default --request-delay
execution can take more than 2 hours for countries like United States.
A convenient side-effect of only refreshing one country is low RAM requirement. Unlike all-country runs, lowprofile mode works fine on <=1GB RAM computers.
To enable Sentry.io SDK,
create sentry.dsn
file with Client Key (DSN) in the root of the project.
- Python >=3.3
To create venv:
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt