image-scraper
Python script to scrap images
Developer's guide
$ git clone https://github.com/NaveenKarippai/image-scraper
$ cd image-scraper
Information
Usage:
python scraper.py --help
will show:
Usage: scraper.py [OPTIONS] COMMAND [ARGS]...
A site image scraping tool.
Options:
--help Show this message and exit.
Commands:
batch_downloader Takes a text file and scrapes the image URLs
site_scrape Takes a URL and scrapes all the images
site_scrape
# python scraper.py site_scrape --help
Usage: scraper.py site_scrape [OPTIONS]
Takes a URL and scrapes all the images
Options:
--site TEXT The site's URL to scrape images from
--help Show this message and exit.
batch_downloader
# python scraper.py batch_downloader --help
Usage: scraper.py batch_downloader [OPTIONS]
Takes a text file and scrapes the image URLs
Options:
--file PATH A text file with URLs of the images to download
--help Show this message and exit.
Unit Testing
$ python -m unittest discover -v tests/
Contributing
Please read the before a pull request.