- Conda (or miniconda) installed = https://docs.conda.io/en/latest/miniconda.html
- Create conda environment:
conda env create -f environment.yml
- Activate conda environment
conda activate python-ip-lookup
- On your terminal:
python ip_lookup.py $FILE_TO_SEARCH
- Replace
$FILE_TO_SEARCH
with the file path you wish to search.
- Replace
- The file
output.json
will be created containing the lookup result
- If any changes are made on
environment.yml
you should update the environment with the following command:conda env update --file environment.yml --prune
- A
http_cache.sqlite
file will be created. This file is used to cache HTTPS requests made to perform the lookup.