How makew0rld/gemget works
gemget is a command-line Gemini downloader. Users provide URLs as arguments or through an input file; the command normalizes and scans them, fetches each URL, handles Gemini response statuses and redirects, then streams successful content to stdout or a file. Download limits, client certificates, proxies, progress output, and logging are supporting capabilities. The source excerpts show the main orchestration and download path; optional integrations are included only where documented or configured, and no unsampled implementation details are assumed.
Main entry points: network.go Fetch and status handling · gemget.go Command orchestration · scanner.go URL scanner · logging.go Status and errors
Components 13
URL input
- URL scanner
scanner/scanner.go - URL input file
Gemini transfer
- Command orchestration
gemget.go - Fetch and status handling
network.go - Gemini servers
Download output
- Download writer
network.go - Local files
- Standard output
Configuration and feedback
- Client configuration
gemget.go - SOCKS5 proxy
- Status and errors
logging.go - Progress display
network.go
Other components
- CLI user
Connections 14
- CLI user → Command orchestration: provides options
gemget.go - Command orchestration → URL scanner: scans URLs
gemget.go - URL input file → URL scanner: supplies lines
- URL scanner → Fetch and status handling: yields URLs
- Command orchestration → Fetch and status handling: invokes fetch
gemget.go - Command orchestration → Client configuration: configures client
gemget.go - Fetch and status handling → Gemini servers: requests content
network.go - Fetch and status handling → Download writer: saves successful body
network.go - Download writer → Local files: writes file
network.go - Fetch and status handling → Standard output: streams body
network.go - Client configuration → SOCKS5 proxy: configures optional proxy
gemget.go - Command orchestration → Status and errors: reports status
gemget.go - Fetch and status handling → Status and errors: reports outcomes
network.go - Download writer → Progress display: updates progress
network.go