All Projects → sananth12 → Imagescraper

sananth12 / Imagescraper

Licence: gpl-3.0
✂️ High performance, multi-threaded image scraper

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Imagescraper

Termplotlib
Plotting on the command line
Stars: ✭ 294 (-53.33%)
Mutual labels:  terminal, command-line, pypi
Mitype
Typing speed test in terminal
Stars: ✭ 241 (-61.75%)
Mutual labels:  terminal, command-line, pypi
Crawly
Crawly, a high-level web crawling & scraping framework for Elixir.
Stars: ✭ 440 (-30.16%)
Mutual labels:  scraper, scraping
Keep
A Meta CLI toolkit : Personal shell command keeper and snippets manager
Stars: ✭ 451 (-28.41%)
Mutual labels:  terminal, command-line
Cabal Cli
Terminal client for Cabal, the p2p chat platform.
Stars: ✭ 479 (-23.97%)
Mutual labels:  terminal, command-line
Lookatme
An interactive, terminal-based markdown presenter
Stars: ✭ 392 (-37.78%)
Mutual labels:  terminal, command-line
Go Prompt
Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
Stars: ✭ 4,255 (+575.4%)
Mutual labels:  terminal, command-line
Buku
🔖 Personal mini-web in text
Stars: ✭ 4,825 (+665.87%)
Mutual labels:  terminal, command-line
Terminal Link
Create clickable links in the terminal
Stars: ✭ 361 (-42.7%)
Mutual labels:  terminal, command-line
Finviz
Unofficial API for finviz.com
Stars: ✭ 493 (-21.75%)
Mutual labels:  scraper, pypi
Rtv
Browse Reddit from your terminal
Stars: ✭ 4,558 (+623.49%)
Mutual labels:  terminal, command-line
Nve
Run any command on specific Node.js versions
Stars: ✭ 531 (-15.71%)
Mutual labels:  terminal, command-line
Jmxterm
Interactive command line JMX client
Stars: ✭ 389 (-38.25%)
Mutual labels:  terminal, command-line
Py cui
A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
Stars: ✭ 380 (-39.68%)
Mutual labels:  terminal, command-line
Figures
Unicode symbols with Windows CMD fallbacks
Stars: ✭ 438 (-30.48%)
Mutual labels:  terminal, command-line
Castero
TUI podcast client for the terminal
Stars: ✭ 375 (-40.48%)
Mutual labels:  terminal, command-line
Dataflowkit
Extract structured data from web sites. Web sites scraping.
Stars: ✭ 456 (-27.62%)
Mutual labels:  scraper, scraping
Googler
🔍 Google from the terminal
Stars: ✭ 5,594 (+787.94%)
Mutual labels:  terminal, command-line
Katana
A Python Tool For google Hacking
Stars: ✭ 355 (-43.65%)
Mutual labels:  scraper, scraping
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-45.24%)
Mutual labels:  terminal, command-line

ImageScraper 📃

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

Build Status Downloads Test Coverage
Build Status PyPi downloads Coverage Status

Demo

Click here to see it in action!

Download

tar file:

Grab the latest stable build from - Pip: https://pypi.python.org/pypi/ImageScraper

pip install (recommended):

You can also download using pip:

$ pip install ImageScraper

Dependencies

Note that ImageScraper depends on lxml, requests, setproctitle, and future. 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. (Deprecated)

import image_scraper
image_scraper.scrape_images(URL)

Options

-h, --help            show this help message and exit
-m MAX_IMAGES, --max-images MAX_IMAGES
                    Limit on number of images
-s SAVE_DIR, --save-dir SAVE_DIR
                    Directory in which images should be saved
-g, --injected        Scrape injected images
--proxy-server PROXY_SERVER
                    Proxy server to use
--min-filesize MIN_FILESIZE
                    Limit on size of image in bytes
--max-filesize MAX_FILESIZE
                    Limit on size of image in bytes
--dump-urls           Print the URLs of the images
--formats [FORMATS [FORMATS ...]]
                    Specify formats in a list without any separator. This
                    argument must be after the URL.
--scrape-reverse      Scrape the images in reverse order
--filename-pattern FILENAME_PATTERN
                    Only scrape images with filenames that match the given
                    regex pattern
--nthreads NTHREADS   The number of threads to use when downloading images.

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.

Issues

Q.)All images were not downloaded?

It could be that the content was injected into the page via JavaScript; this scraper doesn't run JavaScript.

Contribute

If you want to add features, improve them, or report issues, feel free to send a pull request!!

Contributors

Disclaimer

ImageScraper is to be used education/research purposes only. The authors takes NO responsibility and/or liability for how you choose to use any of the tools/source code/any files provided. By using ImageScraper, you understand that you are AGREEING TO USE AT YOUR OWN RISK.

License

GPL V3

Analytics

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].