Skip to content

Lysagxra/MangaWorldDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MangaWorld Downloader

A Python-based tool for downloading and organizing manga content from MangaWorld.

Demo

Features

  • Downloads multiple chapters concurrently.
  • Supports batch downloading via a list of URLs.
  • Convert downloaded chapters into PDFs.
  • Track and display download progress.
  • Organize and format manga chapters efficiently.

Dependencies

  • Python 3
  • aiohttp - for asynchronous HTTP requests
  • requests - for HTTP requests
  • beautifulsoup4 (bs4) - for HTML parsing
  • Pillow - for image processing
  • rich - for progress display in terminal

Directory Structure

project-root/
├── helpers/
│ ├── format_utils.py    # Functions for formatting manga data.
│ ├── download_utils.py  # Utilities for downloading content from URLs.
│ ├── pdf_generator.py   # Tools for generating PDF files from manga chapters.
│ └── progress_utils.py  # Utilities for tracking and displaying progress.
├── manga_downloader.py  # Core functionality for managing manga downloads.
├── main.py              # Main script to run the downloader.
└── URLs.txt             # Text file containing manga URLs

Installation

  1. Clone the repository:
git clone https://github.com/Lysagxra/MangaWorldDownloader.git
  1. Navigate to the project directory:
cd MangaWorldDownloader
  1. Install the required dependencies:
pip install -r requirements.txt

Single Manga Download

To download a single manga, you can use the manga_downloader.py script.

Usage

Run the script followed by the manga URL you want to download:

python3 manga_downloader.py <manga_url>

Example

python3 manga_downloader.py https://www.mangaworld.ac/manga/2754/sayonara-eri

Batch Download

Usage

  1. Create a URLs.txt file in the project root and list the manga URLs you want to download.

  2. Run the main script via the command line:

python3 main.py

The downloaded files will be saved in the Downloads directory.

PDF Generation

This tool includes a feature to generate PDFs from downloaded manga chapters. You can use the -p argument from the command line to enable this functionality.

Usage

To generate PDFs for the downloaded manga, run the following command:

python3 main.py -p

This will create PDF files for each chapter and save them in the specified output directory. The generated PDFs maintain the original quality of the downloaded images and are optimized for readability.