https://github.com/mrxehmad/4chan-img-downloader
4chan image downloader
https://github.com/mrxehmad/4chan-img-downloader
4chan 4chan-downloader 4chan-image-downloader image-downloader pyrhon
Last synced: 3 months ago
JSON representation
4chan image downloader
- Host: GitHub
- URL: https://github.com/mrxehmad/4chan-img-downloader
- Owner: mrxehmad
- Created: 2024-09-14T03:32:48.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T11:41:27.000Z (8 months ago)
- Last Synced: 2025-01-07T21:13:04.533Z (4 months ago)
- Topics: 4chan, 4chan-downloader, 4chan-image-downloader, image-downloader, pyrhon
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Downloader Script
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.
## Features
- 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.## Requirements
- Python 3.x
- `requests` module## Installation
1. Clone or download this repository to your local machine.
2. Install the required Python package by running:
```bash
pip install requests
```## Usage
1. Place your text file (e.g., `more.txt`) in the same directory as the script. This file should contain one image URL per line.
2. Run the script:
```bash
python script_name.py
```3. When prompted, enter the name of the file containing the image URLs (e.g., `more.txt`).
4. The script will download each image and save it in the `downloaded_images` folder.
## Example File (`more.txt`)
```txt
https://is2.4chan.org/y/1722370635659735.png
https://is2.4chan.org/y/1722778573406161.jpg
```## Output
The images will be saved in a folder called `downloaded_images` with names like:
```
51.png
52.jpg
```## License
This project is licensed under the MIT License.