Skip to main content

ImageScraper :page_with_curl:

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

Demo

Click here to see it in action!

Download

Dependencies

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.

Usage

$ image-scraper [OPTIONS] URL

You can also use it in your Python scripts.

import image_scraper
image_scraper.scrape_images(URL)

Options

-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 setup.py install
$ image-scraper --max-images 10 [url to scrape]

Examples

Scrape all images

$ image-scraper  ananth.co.in/test.html

Scrape at max 2 images

$ image-scraper -m 2 ananth.co.in/test.html

Scrape only gifs and download to folder ./mygifs

$ image-scraper -s mygifs ananth.co.in/test.html --formats gif

NOTE:

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

Release files for ImageScraper 2.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ImageScraper 2.0.7
File Size Uploaded
ImageScraper-2.0.7.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ImageScraper 2.0.7
File Interpreter ABI Platform
ImageScraper-2.0.7-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 18.6 kB

Release files / ImageScraper-2.0.7.tar.gz

Download URL ImageScraper-2.0.7.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8cd50d3d601a71091fc6af3f37a4962091e7f2c0753a1ea530c090cc87523543
BLAKE2b-256 checksum
How to use checksums
5716ae81054a1fc319bc7d2725288d48fd9d0aa4612e704f9943e837699409b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ImageScraper-2.0.7-py2.py3-none-any.whl

Download URL ImageScraper-2.0.7-py2.py3-none-any.whl
Size 10.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
90c8bcf12b0a975bf52c64cd186a34c047fdbbd7b97d576dfc5b87e111cf719a
BLAKE2b-256 checksum
How to use checksums
434be1e2af3b0892cf55fe4db06ce16e6d1d41c6bb95ae208b52109316da948c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0.7 This release

2 release files

2.0.6

2 release files

2.0.5

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page