1- ImageScraper
2- =============
1+ ImageScraper
2+ ============
33
4- A cool command line tool which downloads all images in the given
4+ A cool command line tool to download images in the given
55webpage.
66
77+------------------+--------------------+--------------------+
@@ -10,11 +10,23 @@ webpage.
1010| |Build Status | | |Latest Version | | |PyPi downloads | |
1111+------------------+--------------------+--------------------+
1212
13+ Demo
14+ ^^^^
15+
16+ Click `here <http://showterm.io/d3aef5bc3f37cd49757d1#fast >`__ to see it
17+ in action!
18+
1319Download
1420--------
1521
16- pip install(recommended)
17- ~~~~~~~~~~~~~~~~~~~~~~~~
22+ tar file:
23+ ~~~~~~~~~
24+
25+ Grab the latest stable build from **- Pip:
26+ https://pypi.python.org/pypi/ImageScraper **
27+
28+ pip install (recommended):
29+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1830
1931You can also download using pip:
2032
@@ -36,16 +48,26 @@ Usage
3648
3749 $ image-scraper [OPTIONS] URL
3850
51+ You can also use it in your python scripts.
52+
53+ .. code :: py
54+
55+ import image_scraper
56+ image_scraper.scrape_images(URL )
57+
3958 Options
4059-------
4160
4261.. code :: sh
4362
4463 -h, --help Print help
4564 -m, --max-images < number> Maximum number images to be scraped
46- -s, --save-dir < path> Name of the folder to save the images (default: ./images_< domain> )
65+ -s, --save-dir < path> Name of the folder to save the images
66+ -g, --injected Scrape injected images
67+ --formats [ [FORMATS ..]] Specify the formats of images to be scraped
4768 --max-filesize < size> Limit on size of image in bytes (default: 100000000)
4869 --dump-urls Print the URLs of the images
70+ --scrape-reverse Scrape the images in reverse order
4971
5072If you downloaded the tar:
5173~ ~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -54,38 +76,41 @@ Extract the contents of the tar file.
5476
5577.. code:: sh
5678
57- $cd ImageScraper/
58- $python setup.py install
59- $image -scraper --max-images 10 [url to scrape]
79+ $ cd ImageScraper/
80+ $ python setup.py install
81+ $ image-scraper --max-images 10 [url to scrape]
6082
61- If installed using pip:
62- ~~~~~~~~~~~~~~~~~~~~~~~
83+ Examples
84+ --------
6385
64- Open python in terminal.
86+ Scrape all images
6587
6688.. code:: sh
6789
68- $image -scraper --max-images 10 [url to scrape]
90+ $ image-scraper ananth.co.in/test.html
6991
70- NOTE:
71- ^^^^^
92+ Scrape at max 2 images
7293
73- A new folder called "images\_ " will be created in the same place,
74- containing all the downloaded images.
94+ .. code:: sh
7595
76- Upgrading
77- ---------
96+ $ image-scraper -m 2 ananth.co.in/test.html
7897
79- Check if a newer version if available and upgrade using:
98+ Scrape only gifs and download to folder ./mygifs
8099
81100.. code:: sh
82101
83- $ sudo pip install ImageScraper --upgrade
102+ $ image-scraper -s mygifs ananth.co.in/test.html --formats gif
103+
104+ NOTE:
105+ ^^^^^
106+
107+ By default, a new folder called " images\_" will be created in the
108+ working directory, containing all the downloaded images.
84109
85110
86111.. | Build Status| image:: https://travis-ci.org/sananth12/ImageScraper.svg? branch= master
87112 :target: https://travis-ci.org/sananth12/ImageScraper
88113.. | Latest Version| image:: https://pypip.in/v/ImageScraper/badge.png
89114 :target: https://pypi.python.org/pypi/ImageScraper/
90- .. |PyPi downloads | image :: http://img.shields.io/badge/downloads-7k %20total-blue.svg
115+ .. | PyPi downloads| image:: http://img.shields.io/badge/downloads-7.5k %20total-blue.svg
91116 :target: https://pypi.python.org/pypi/ImageScraper
0 commit comments