An open API service indexing awesome lists of open source software.

https://github.com/techdad/py-compare-lists

Simple Way to Compare Lists in Python
https://github.com/techdad/py-compare-lists

Last synced: 3 months ago
JSON representation

Simple Way to Compare Lists in Python

Awesome Lists containing this project

README

          

# Simple Way to Compare Lists of IP Addresses in Python

## How to Use

### Create your 2 text files with the IP Addresses in a list
- One IP address per line
- Store files in 'input' directory

### Edit the file paths to the IP Address List Files
```
ips1 = "/Users/your_user/Github/sub_folder/compare-lists/input/file1.txt"

ips2 = "/Users/your_user/Github/sub_folder/compare-lists/input/file2.txt"
```

Note: The ip addresses used in this repo were created with https://www.ipvoid.com/random-ip/

### Run python3 compare-lists.py in the directory

## Sample Output:

![image](https://user-images.githubusercontent.com/63926014/168871505-58e6ef9a-9fd2-4f60-b652-041d1624d42f.png)