- Install the Python package manager pip.
sudo apt install python3-pip- Install Python virtual environment support.
sudo apt install python3-venv- Create a new directory in your home folder for your Python virtual environments and change directories into it.
mkdir python-virtual-environments
cd python-virtual-environments- Create a new virtual environment
python3 -m venv ~/venv/spooky- Activate the virtual environment. Note: If you want to exit the virtual environment just type
deactivate.
source ~/venv/spooky/bin/activate- Install the required packages.
cd ~/spooky_crawler
pip install -r requirements.txtHOST - host to run under e.g. http://localhost:8080
API_TOKEN - token to access the spooky_kingdom API