This Python script downloads images from a list of URLs provided in a text file and saves them with sequential filenames starting from 51, while keeping the original file extensions.
- Reads image URLs from a file provided by the user.
- Downloads each image and saves it in the
downloaded_images
folder. - Automatically names images starting from 51 (e.g.,
51.png
,52.jpg
, etc.). - Retains the original image file extensions.
- Python 3.x
requests
module
- Clone or download this repository to your local machine.
- Install the required Python package by running:
pip install requests
-
Place your text file (e.g.,
more.txt
) in the same directory as the script. This file should contain one image URL per line. -
Run the script:
python script_name.py
-
When prompted, enter the name of the file containing the image URLs (e.g.,
more.txt
). -
The script will download each image and save it in the
downloaded_images
folder.
https://is2.4chan.org/y/1722370635659735.png
https://is2.4chan.org/y/1722778573406161.jpg
The images will be saved in a folder called downloaded_images
with names like:
51.png
52.jpg
This project is licensed under the MIT License.