Skip to content

TheStalwart/Automuseums-gpx

Repository files navigation

Automuseums.info content as GPX files

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

Example use

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

--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.

Sentry.io SDK integration

To enable Sentry.io SDK, create sentry.dsn file with Client Key (DSN) in the root of the project.

Development environment

  • Python >=3.3

venv-based

To create venv: python3 -m venv .venv && .venv/bin/pip install -r requirements.txt

About

Content of Automuseums.info website as GPX files

Resources

License

Stars

Watchers

Forks