Gdown

A Python tool to download things from Google Drive

pipx install gdown

After that, you can download any file from Google Drive by running one of these commands:

gdown https://drive.google.com/uc?id=<file_id>  # for files
gdown <file_id>                                 # alternative format
gdown --folder https://drive.google.com/drive/folders/<file_id>  # for folders
gdown --folder --id <file_id>                                   # this format work

I also learned about pipx, which is apparently a recommend way for Python to install and run Python scripts in isolated environments. apt-get install pipx.

Notes mentioning this note