/get_ips

Get IPv4 and IPv6 addresses of hostnames using socket.getaddrinfo().

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

get_ips

Python Coveralls GitHub license

Get IPv4 and IPv6 addresses of hostnames using socket.getaddrinfo().

Requirements

Python 3.8+

Setup

python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements.txt

Testing

venv/bin/python3 -m pytest --cov --cov-report html

Usage

venv/bin/python3 main.py --input-file sample_urls.txt --output-file output.txt