Run the code following the instructions below, to extract relevant information about who visits your website.
To run the code:
- Clone the repo and cd into the directory
- The input_data.gz file needs to be placed at the top level of the directory
- Dependencies are all installed inside a virtual environment, to use it you
need to have virtualenv installed as such:
pip install virtualenv
- Create virtual environment:
virtualenv my_env
- Activate the virtual environment:
source my_env/bin/activate
- Install dependencies inside it:
pip install -r requirements.txt
- Run the command:
python3 runner.py input_data.gz
- Watch your terminal for some magic
- Deactivate the environment when the code exits:
deactivate
Resources: