Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A modern web-based manga downloader with real-time progress tracking and dual theme support. Download single chapters or batch ranges from readonepiece-manga.net with an intuitive interface.

Notifications You must be signed in to change notification settings

laveesh21/hiManga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š hiManga - Manga Downloader

License Python Flask

A modern, fast, and user-friendly web application for downloading manga chapters from readonepiece-manga.net with real-time progress tracking.

Features β€’ Installation β€’ Usage β€’ Tech Stack β€’ Screenshots


✨ Features

  • 🎯 Simple Interface - Clean, intuitive design with dark/light theme support
  • ⚑ Fast Downloads - Multi-threaded downloading for optimal speed
  • πŸ“Š Real-Time Progress - Live updates via WebSocket connection
  • 🎨 Dual Themes - Beautiful dark mode and professional light theme
  • πŸ“¦ Batch Downloads - Download single chapters or custom ranges
  • πŸ’Ύ Smart Organization - Automatically organized folder structure
  • πŸ”— URL Parsing - Intelligent URL and chapter number detection
  • ⏱️ Time Estimation - Accurate download time predictions
  • πŸ“± Responsive Design - Works perfectly on all devices
  • 🎭 Professional Icons - Font Awesome integration throughout

πŸš€ Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)
  • Git (optional, for cloning)

Step 1: Clone the Repository

git clone https://github.com/yourusername/hiManga.git
cd hiManga

Or download and extract the ZIP file.

Step 2: Create Virtual Environment

# Create virtual environment
python -m venv venv

# Activate virtual environment
# On Linux/Mac:
source venv/bin/activate

# On Windows:
venv\Scripts\activate

Step 3: Install Dependencies

pip install -r requirements.txt

The required packages are:

  • Flask==3.0.0
  • Flask-SocketIO==5.3.5
  • beautifulsoup4==4.12.2
  • lxml==4.9.3
  • requests==2.31.0
  • python-socketio==5.10.0

Step 4: Run the Application

python app.py

Or use the included launcher script:

chmod +x run.sh
./run.sh

The application will start on http://localhost:5000

πŸ“– Usage

Basic Download

  1. Open the Application

    • Navigate to http://localhost:5000 in your browser
  2. Enter Manga URL

    • Paste the manga chapter URL from readonepiece-manga.net
    • Example: https://ww8.readonepiece.com/manga/manga-name-chapter-123/
  3. Select Download Option

    • This Chapter Only: Downloads the single chapter from the URL
    • Custom Range: Downloads multiple chapters (specify start and end)
  4. Start Download

    • Click the "Start Download" button
    • Watch real-time progress with live updates
  5. Access Downloaded Files

    • Files are saved in downloads/MangaName_Chapter_XXX/
    • Each chapter gets its own organized folder
    • Images are numbered sequentially

URL Format

The application accepts URLs in the format:

https://ww8.readonepiece.com/manga/manga-name-chapter-123/

The chapter number is automatically extracted from the URL.

Theme Switching

Click the moon/sun icon in the top-right corner to toggle between:

  • Dark Theme: Modern dark blue with bright accents
  • Light Theme: Clean white with green accents

Your theme preference is automatically saved.

πŸ› οΈ Tech Stack

Backend

  • Flask: Lightweight web framework for Python
  • Flask-SocketIO: WebSocket support for real-time communication
  • BeautifulSoup4: HTML parsing and web scraping
  • Requests: HTTP library for downloading content
  • lxml: Fast XML and HTML parsing

Frontend

  • HTML5: Semantic markup structure
  • CSS3: Modern styling with animations and transitions
  • JavaScript: Dynamic UI updates and WebSocket client
  • Socket.IO: Real-time bidirectional event-based communication
  • Font Awesome 6: Professional icon library
  • Google Fonts (Inter): Clean, modern typography

Architecture

  • Threading Mode: Asynchronous background processing
  • WebSocket Protocol: Real-time progress streaming
  • MVC Pattern: Organized code structure
  • Responsive Design: Mobile-first approach

πŸ“ Project Structure

hiManga/
β”œβ”€β”€ app.py                 # Flask application and routes
β”œβ”€β”€ manga_scraper.py       # Web scraping logic with progress tracking
β”œβ”€β”€ manga_downloader.py    # Original CLI version
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ run.sh                # Launch script
β”œβ”€β”€ .gitignore            # Git ignore patterns
β”œβ”€β”€ README.md             # Project documentation
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ index.html        # Main download interface
β”‚   └── about.html        # About page
β”œβ”€β”€ static/
β”‚   β”œβ”€β”€ style.css         # Application styling
β”‚   └── script.js         # Frontend JavaScript
β”œβ”€β”€ downloads/            # Downloaded manga (auto-created)
└── venv/                 # Virtual environment (auto-created)

🎨 Screenshots

Dark Theme

The default dark theme features a modern blue color scheme with smooth gradients and professional styling.

Light Theme

The light theme provides a clean, bright interface with green accents for a fresh, professional look.

Real-Time Progress

Live progress tracking shows overall completion, current chapter, and per-chapter download status.

βš™οΈ Configuration

Changing the Port

Edit app.py and modify:

socketio.run(app, host='0.0.0.0', port=5000, debug=True)

Custom Download Directory

Edit manga_scraper.py and change:

self.download_dir = "downloads"  # Change to your preferred directory

πŸ”§ Troubleshooting

Port Already in Use

# Kill the existing process
pkill -f "python app.py"

# Or use a different port in app.py

Module Not Found

# Ensure virtual environment is activated
source venv/bin/activate  # Linux/Mac
venv\Scripts\activate     # Windows

# Reinstall dependencies
pip install -r requirements.txt

Connection Issues

  • Check if the Flask server is running
  • Verify firewall settings allow connections to port 5000
  • Check browser console for WebSocket errors

Download Failures

  • Verify the manga URL is correct and accessible
  • Check your internet connection
  • Some manga pages may have changed their structure

🀝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests
  • Improve documentation

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Disclaimer

This tool is for educational purposes only. Please respect copyright laws and the terms of service of the websites you download from. Always support manga creators by purchasing official releases when available.

πŸ™ Acknowledgments

  • Built with Flask and Socket.IO
  • Icons by Font Awesome
  • Typography by Google Fonts (Inter)
  • Inspired by the manga community

⬆ Back to Top

Made with ❀️ for manga enthusiasts

About

A modern web-based manga downloader with real-time progress tracking and dual theme support. Download single chapters or batch ranges from readonepiece-manga.net with an intuitive interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published