Download images from DuckDuckGo
Project description
DuckDuckGoImages
Instalation
To install run the following:
pip install DuckDuckGoImages
Usage
import using the following:
import DuckDuckGoImages as ddg
and then you can search and download images from DuckDuckGo using:
ddg.download('kittens')
The above command will search for the query phrase kittens
, and then will try to download the list of image urls into the current folder.
Each downloaded image will have a randomic UUIDv4 name.
Options
When downloading images you can pass download
the next list of parameters to achieve different results:
folder
: The path where the downloaded images are saved. Default is current directory.max_urls
: If set to a number, then only that amount of images will be downloaded. Note that the available images to download could be less thanmax_urls
. DefaultNone
, so all search results will try to be downloaded.thumbnails
: If set toTrue
, the image thumbnails will be downloaded instead of the actual image. This should avoid broken links, but it will also download a smaller image in most cases. DefaultNone
.parallel
: If set to true, then N jobs will be created to download the list of images faster, the number of jobs is the number of cpu procesors on the machine. DefaultFalse
.shuffle
: If set to true, the list of images will be shuffled randomly before download. DefaultFalse
.remove_folder
: If set to true, then the folder where the images will be downloaded is deleted before the download. DefaultFalse
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for DuckDuckGoImages-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1cf19c528eec9dc1337642269777114e32effc3eb51a8f520dada89fd944a6a |
|
MD5 | c46bd78bf8ff770ae644a0997d323c59 |
|
BLAKE2b-256 | eb96b733c2379d24c7f7bc6a4d76484c50272cf99c9e493bb4dfd06df99b4a51 |