This is a Python script to download manga images from the site MangaReader.to. The script extracts manga information such as name, ID, reading type (chapter or volume), language, and downloads the chapter/volume images, saving everything in an organized directory structure.
Before running the script, make sure you have Python installed along with the following packages:
requestsbeautifulsoup4
If you haven’t installed them yet, run the following command:
pip install requests beautifulsoup4-
Clone or download the repository
git clone https://github.com/etoshy/mangareader.to-downloader.git cd mangareader.to-downloader -
Run the script
python manga_downloader.py
-
Enter the links When prompted, enter the chapter or volume links separated by commas.
Example input:
https://mangareader.to/read/one-piece-100, https://mangareader.to/read/naruto-45 -
The script will download the data and images
- The manga information will be saved in a
info.jsonfile - Images will be downloaded and organized inside
mangas/MangaName/Chapter_XorVolume_Xfolders
- The manga information will be saved in a
After running the script, the file structure will look like this:
/mangas/
├── One Piece/
│ ├── Chapter 100/
│ │ ├── info.json
│ │ ├── 1.jpg
│ │ ├── 2.jpg
│ │ ├── ...
│
├── Naruto/
├── Volume 45/
│ ├── info.json
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── ...
-
Error accessing the page
- Check if the link is correct
- The website may be down or have changed its HTML structure
-
Error downloading images
- Make sure the image URLs are correct
- Check your internet connection
- It may be necessary to adjust the part of the code that retrieves the image links
Created by etoshy