Skip to main content

A simple image scraper to download all images from a given url

Project description

A high performance, easy to use, multithreaded command line tool which downloads images from the given webpage.

Build Status Version Downloads
Build Status Latest Version PyPi downloads


Click here to see it in action!


You can also download using pip:

$ pip install ImageScraper


Note that ImageScraper depends on lxml, requests, setproctitle, and future. It also depends on pyThreadpool which can be downloaded and installed from here temporarily. If you run into problems in the compilation of lxml through pip, install the libxml2-dev and libxslt-dev packages on your system.


$ image-scraper [OPTIONS] URL

You can also use it in your Python scripts.

import image_scraper


-h, --help                      Print help
-m, --max-images <number>       Maximum number images to be scraped
-s, --save-dir  <path>          Name of the folder to save the images
-g, --injected                  Scrape injected images
--formats [ [FORMATS ..]]       Specify the formats of images to be scraped
--max-filesize  <size>          Limit on size of image in bytes (default: 100000000)
--dump-urls                     Print the URLs of the images
--scrape-reverse                Scrape the images in reverse order
--proxy-urls            Use the specified HTTP/HTTPS proxy

If you downloaded the tar:

Extract the contents of the tar file.

$ cd ImageScraper/
$ python install
$ image-scraper --max-images 10 [url to scrape]


Scrape all images

$ image-scraper

Scrape at max 2 images

$ image-scraper -m 2

Scrape only gifs and download to folder ./mygifs

$ image-scraper -s mygifs --formats gif


By default, a new folder called “images_” will be created in the working directory, containing all the downloaded images.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ImageScraper, version 2.0.7
Filename, size File type Python version Upload date Hashes
Filename, size ImageScraper-2.0.7.tar.gz (8.6 kB) File type Source Python version None Upload date Hashes View
Filename, size ImageScraper-2.0.7-py2.py3-none-any.whl (10.0 kB) File type Wheel Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page