/py-ip-log

Primary LanguagePython

py-ip-log

Quick start

  1. clone repository, install libs check outdated
    python3 -m venv .venv
    source .venv/bin/activate
    pip install --upgrade pip
    pip install -r requirements.txt
    pip list --outdated  # show outdated libs
  1. get and log IP to fie
python log_ip_to_file.py
  1. add new cron job
crontab -e 
0 * * * * cd /home/funker/git/py-ip-log && $(which python3) log_ip_to_file.py >> cron-log.log 2>&1