Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elliotwutingfeng/get_ips
Get IPv4 and IPv6 addresses of hostnames using socket.getaddrinfo().
https://github.com/elliotwutingfeng/get_ips
dns domain fqdn fqdn-resolve-to-ip hostname http icann ip-address ipv4 ipv6 osi osint socket tcp-ip url
Last synced: about 2 months ago
JSON representation
Get IPv4 and IPv6 addresses of hostnames using socket.getaddrinfo().
- Host: GitHub
- URL: https://github.com/elliotwutingfeng/get_ips
- Owner: elliotwutingfeng
- License: bsd-3-clause
- Created: 2023-01-31T04:36:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T08:31:41.000Z (11 months ago)
- Last Synced: 2024-01-29T10:24:16.778Z (11 months ago)
- Topics: dns, domain, fqdn, fqdn-resolve-to-ip, hostname, http, icann, ip-address, ipv4, ipv6, osi, osint, socket, tcp-ip, url
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# get_ips
![Python](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue)
[![Coveralls](https://img.shields.io/coverallsCoverage/github/elliotwutingfeng/get_ips?logo=coveralls&style=for-the-badge)](https://coveralls.io/github/elliotwutingfeng/get_ips?branch=main)
[![GitHub license](https://img.shields.io/badge/LICENSE-BSD--3--CLAUSE-GREEN?style=for-the-badge)](LICENSE)Get IPv4 and IPv6 addresses of hostnames using [socket.getaddrinfo()](https://docs.python.org/3/library/socket.html#socket.getaddrinfo).
## Requirements
Python 3.8+
## Setup
```shell
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements.txt
```## Testing
```shell
venv/bin/python3 -m pytest --cov --cov-report html
```## Usage
```shell
venv/bin/python3 main.py --input-file sample_urls.txt --output-file output.txt
```