Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

archivefetch

A fast, concurrent CLI tool to fetch archived URLs from the Wayback Machine CDX API.

Install

go install github.com/AliHzSec/archivefetch@latest

Usage

archivefetch -d example.com

Flags

FlagShortDefaultDescription
-domain-dTarget domain (required)
-list-lFile with list of domains (one per line)
-subs-sfalseInclude subdomains
-threads-t10Concurrent fetch threads
-retry-r0Max retries per request
-page-size-ps50CDX page size (1–50)
-timeout-T60HTTP timeout in seconds
-proxy-pHTTP/SOCKS5 proxy
-output-ostdoutOutput file path
-silent-SfalseSuppress logs, print URLs only

Examples

# Basic fetch
archivefetch -d example.com
# Include subdomains, save to file
archivefetch -d example.com -s -o example_urls.txt
# Multiple domains from file
archivefetch -l domains.txt -s -o results.txt
# With proxy and retries
archivefetch -d example.com -p "http://127.0.0.1:8080" -r 3
# Silent mode (pipe-friendly)
archivefetch -d example.com -S | grep "\.php"# Increase threads for faster fetching
archivefetch -d example.com -t 20 -o output.txt