This repository hosts an image downloader script designed to download a series of images from specified URLs. It is an ongoing project, and the current version is an early iteration with plans for further expansion and feature enhancements.
The creation of this script was inspired by the book Automate the Boring Stuff with Python by Al Sweigart. The project also utilized OpenAI's GPT-3.5 to assist with coding challenges.
- Author's Personal Web Page: Al Sweigart
- Author's GitHub: asweigart
- Book Website: Automate the Boring Stuff
- Print Version of the Book: No Starch Press - Note: A 3rd edition is upcoming.
Ensure you have Python installed on your machine. You can download it from python.org.
Clone or download this repository to your local machine:
git clone https://github.com/PointyBytes/WebComicScraper.git
Navigate into the project directory:
cd WebComicScraper
All the necessary libraries are listed in the requirements.txt file. Before running the script, install the required Python libraries by running the following command in your terminal:
pip install -r requirements.txt
This will ensure all dependencies are installed as per the requirements listed.
Modify the the name and settings_example.py
file with the necessary parameters:
- Clone or download this repository to your local machine.
- Create a copy of the
settings_example.py
file and rename it tosettings.py
. - Adjust the
settings.py
file with the correctBASE_URL
,NUM_IMAGES
, andOUTPUT_FOLDER
before running the script.
# Example settings.py configuration
base_url = "https://example.com/images/"
num_images = 50
output_folder = "./Downloads/"
make_cbz = False
cbz_filename = "Name of the Comic"
Execute the script from your command line:
python main.py
This will start the process of downloading the specified number of images into the designated output folder.
Contributions are welcome! If you have ideas for features or have found a bug, please open an issue or a pull request.
This is an early version of the script, and I plan to expand it with more features and possibly GUI support in the future. Stay tuned!
This project is open source and available under the GNU GPL v3.0 or later. You can find the full license text in the LICENSE file within this repository.