To run this:
pip3 install -r requirements.txt-
Output:
python download_images.py --helpusage: download_images.py [-h] [-p PATH] url This script downloads all images from a web page positional arguments: url The URL of the web page you want to download images optional arguments: -h, --help show this help message and exit -p PATH, --path PATH The Directory you want to store your images, default is the domain of URL passed - If you want to download all images from https://www.thepythoncode.com/topic/web-scraping for example:
A new folder
python download_images.py https://www.thepythoncode.com/topic/web-scrapingwww.thepythoncode.comwill be created automatically that contains all the images of that web page. - If you want to download images from javascript-driven websites, consider using
download_images_js.pyscript instead (it accepts the same parameters)