A CLI tool that looks up port information from speedguide.net (via web.archive.org) and displays it in a formatted table in your terminal.
- Looks up port information for any valid port (0-65535)
- Fetches data from web.archive.org snapshot of speedguide.net
- Formats output as a readable table in your terminal
- Automatically adapts to terminal width (defaults to 80 columns if detection fails)
# Debian/Ubuntu
sudo apt install libssl-dev
# Fedora/RHEL
sudo dnf install openssl-devel
# macOS (via Homebrew)
brew install opensslreqwest- HTTP client for fetching port datascraper- HTML parsing and CSS selector supporthtml2text- Converts HTML tables to terminal-friendly textterm_size- Terminal dimension detection
# Clone the repository
git clone https://github.com/yourusername/portscraper.git
cd portscraper
# Build and install
cargo install --path ../linux_install.shportscraper <port># Look up HTTP port
portscraper 80
# Look up HTTPS port
portscraper 443
# Look up SSH port
portscraper 220- Success1- Error (invalid port, no data found, or network error)
The library exposes the following public functions:
Constructs the full URL by appending the port number to the base URL.
Performs an HTTP GET request to fetch port information.
Parses the HTML response and extracts the port information table.
See LICENSE file for details.
