GitHunt

Imagine

Imagine is a small script to download images of the web, by providing a list of url via file.

.. image:: https://travis-ci.org/NotANormalNerd/imagine.svg?branch=master
:target: https://travis-ci.org/NotANormalNerd/imagine

Installation

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

.. _fileConfig: https://docs.python.org/2/library/logging.config.html#configuration-file-format

Running the script

After installing the script can easily be run::

imagine image-list.txt -d /some/place/big/

Argument and Options

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.

Languages

Python100.0%
BSD 2-Clause "Simplified" License
Created February 22, 2016
Updated January 28, 2023