This script is very juvenile and at its infancy stage. I am not responsible for any damage done due to the use of this script. Do you own research.
Steps:
# Run before start running the script. Prepare a python environment.
python3 -m venv venv
# Load into the virtual python environment by running.
source venv/bin/activate
# Install required packages.
pip install -r requirements.txt
# Run the script
python icloud_downloader.py