Images Scraper CLI is a command-line tool that allows you to scrape and download images from the internet based on a specified search query using the images-scraper package. It provides a simple and customizable way to download a specified number of images and save them to a designated output directory.
Before using the Images Scraper CLI, make sure you have Node.js installed on your machine.
npm install -g images-scraper-cli
Run the CLI using the following command:
images-scraper-cli <search query> <number of images> <output directory>
<search query>
: The query for images you want to search for.<number of images>
(optional): The number of images to download (default is 10).<output directory>
(optional): The directory where the images will be saved (default is './scrapped-images').
images-scraper-cli "cats" 10 "./cats"
- If the specified output directory does not exist, it will be created automatically.
- Supported image file extensions are "png", "jpg", "jpeg", "gif", and "webp".
This project is licensed under the MIT License - see the LICENSE file for details.
Ibrahim Rahhal for the images-scraper package.
Contributions are welcome! Please open an issue or submit a pull request with any improvements or bug fixes.
This project is for educational and personal use only. Use it responsibly and respect the terms of service of the websites you are scraping images from.