Skip to content

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

License

Notifications You must be signed in to change notification settings

elliotwutingfeng/get_ips

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