GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - YGGverse/gemini-dl: Batch downloader for Gemini protocol

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
help.gmi
help.gmi
 
 

Repository files navigation

gemini-dl

CLI batch downloader for Gemini protocol, inspired by wget and yt-dlp tools

At this moment, project under development, some features already implemented and testing (feedback | PR)

Interface

gemini-dl

Components

  • gemini-php - Client for Gemini protocol
  • gemtext-php - Parser for Gemtext
  • net-php - Network toolkit for URL operations
  • php-cli-colors - CLI colors

Features

  • Grab single URL or --crawl entire capsule
  • Multiple MIME types download (e.g. inline images and other media)
  • Detailed crawler log for every request + totals
  • Flexible options
    • Custom --delay between requests
    • Custom --index filename for directories
    • Custom storage location
      • Filesystem
      • FTP
    • Optional links replacement for local navigation
      • Relative (default)
      • Absolute (--absolute)
      • Original (--keep)
    • --match regex URL
    • --unique snap version or sync with existing copy
    • Configurable redirect levels to --follow
    • Document size limit to download

Environment

apt install git composer php-fpm php-mbstring

Install

  • git clone https://github.com/YGGverse/gemini-dl.git
  • cd gemini-dl
  • composer update
  • chmod +x src/gemini-dl.php (for direct execution only)

Usage

src/gemini-dl.php --source gemini://.. --target /path/to/download
  • alternatively, launch with specified php version /path/to/php src/gemini-dl.php

Options

# Required

-s, --source   - string, gemini protocol address
-t, --target   - string, absolute path to destination folder

# Optional

-a, --absolute - no value, links to absolute filepath (ignored on --keep), disabled by default
-c, --crawl    - no value, crawl document links (entire capsule download), disabled by default
-d, --delay    - integer, pause between requests to prevent abuse (seconds), 1 by default
-f, --follow   - integer, follow redirects on --crawl, 0 by default
-i, --index    - string, index filename of directory listing, index.gmi by default
-h, --help     - no value, show available commands
-k, --keep     - no value, keep original links (--crawl mode only), disabled by default
-m, --match    - string, collect links match regex rule, /.*/ by default
-r, --raw      - no value, include meta headers (--keep option ignored), disabled by default
-u, --unique   - no value, append snap version as folder timestamp, disabled by default
  • show in CLI: gemini-dl.php --help

About

Batch downloader for Gemini protocol

Topics

batch-downloadclidownloadergeminigemini-dlgemini-downloadgemini-protocolgemtextgmi

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.