Download comic images from https://xkcd.com into local disk.
Based on the downloadXkcd.py file in Chapter 11 of book Automate the Boring Stuff with Python
python downloadXKCD.py
python downloadXKCD.py -a
python downloadXKCD.py -a NUM
The NUM is a number like 1872 in url https://xkcd.com/1872
It will download all the images in links from https://xkcd.com/1 to https://xkcd.com/1872
python downloadXKCD.py -s NUM python downloadXKCD.py -s NUM1 NUM2 ...
The NUM is a number like 1872 in url https://xkcd.com/1872
By default, the images will be stored in ./xkcd, but if runing the Python file with option `-d dir`, all the images will be stored in dir.
- Python v3+
- BeautifulSoup4
pip install beautifulsoup4
- Check if the image is already downloaded and completed, currently it will redownload all the images.