Skip to content

TheStalwart/Automuseums-gpx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

189 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Sentry.io SDK integration

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

Better Stack heartbeat monitor

To enable Better Stack heartbeat monitor, create heartbeat.url file with heartbeat URL in the root of the project.

systemd files

systemd/* folder contains files that can be copied to /etc/systemd/system/ or symlinked with systemctl link /home/automuseums/Automuseums-gpx/systemd/automuseums.*

Enable cronjob with systemctl enable --now automuseums.timer

Development environment

  • Python >=3.10

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

Contributors