Skip to main content

A tool for downloading GPX files from websites

Project description

GPX Scraper

A command-line tool for downloading GPX files from websites. This tool can download individual GPX files or batch process multiple files from a list of links.

Features

  • Download individual GPX files from a webpage
  • Batch download multiple GPX files from a list of links
  • Organize downloads into hierarchical folder structures based on page titles
  • Command-line interface for easy integration into scripts
  • Interactive mode for manual operation

Installation

Using pip:

pip install gpx-scraper

Using Poetry:

poetry add gpx-scraper

Or install directly from the repository:

pip install git+https://github.com/ironscripter/gpx-scraper.git

Usage

Command Line

Download a single GPX file:

gpx-scraper download https://example.com/hike-page

Download multiple GPX files from a list page:

gpx-scraper batch https://example.com/hikes-list --organize

Run in interactive mode:

gpx-scraper interactive

Options

  • download - Download a single GPX file

    • --output-dir, -o - Directory to save downloaded files (default: downloads)
  • batch - Download multiple GPX files from a list

    • --organize, -g - Organize downloads into subfolders based on page titles
    • --output-dir, -o - Directory to save downloaded files (default: downloads)
  • interactive - Run in interactive mode

Development

Setup with Poetry

# Clone the repository
git clone https://github.com/ironscripter/gpx-scraper.git
cd gpx-scraper

# Install dependencies
poetry install

# Run the tool
poetry run gpx-scraper

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpx_scraper-1.0.0b0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpx_scraper-1.0.0b0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file gpx_scraper-1.0.0b0.tar.gz.

File metadata

  • Download URL: gpx_scraper-1.0.0b0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.22 Linux/6.11.0-1012-azure

File hashes

Hashes for gpx_scraper-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 2d5f739a60c0cf4c1b0b00d6809713f1e073e1485957d99ecfaca95f65fc5069
MD5 899d05b787e5efe8f172917240279d67
BLAKE2b-256 274908e2648f499c11bd6a35805bae140361227e0a11006523f6d0cd564ff4d9

See more details on using hashes here.

File details

Details for the file gpx_scraper-1.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: gpx_scraper-1.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.22 Linux/6.11.0-1012-azure

File hashes

Hashes for gpx_scraper-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fba49ac40fd52a1d8bb4e174ea707d32d9be0344ce80276ae55b48104d33bd2
MD5 33250b4fcf594baab84fd9caef10716f
BLAKE2b-256 a4261a862eed0762a4708d91b526621698255dc96ddb6c5dfe697fe18cb1c893

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page