Imagine is a small script to download images of the web, by providing a list of url via file.
Installing imagine can be done easily from this git repository:
pip install git+https://github.com/NotANormalNerd/imagine.git
Imagine will try and use https regardless of the protocol specified in the file and will fallback in case the server does not offer https.
All URLs have to be in the schema http(s)://somedomain.tld/path/to/image.jpg. URLs missing that schema will be skipped with a warning.
Logging can be setup by providing a path to a python fileConfig file via the environment variable IMAGINE_LOGGING
After installing the script can easily be run:
imagine image-list.txt -d /some/place/big/
Imagine has the following command line options:
user@somesystem:~$ imagine --help Usage: imagine [OPTIONS] FILENAME Options: --ignore-cert Don't check certificate validity --ignore-content-type Don't check for image/* content-type -d, --destination DIRECTORY Save images to this directory, defaults to CWD --dry-run Don't download any images. Just check for availability. --help Show this message and exit.