E-Hentai Downloader
A Python-based tool for downloading E-Hentai albums. This tool reads a list of URLs from a file and processes the downloads accordingly.
Features
- Downloads multiple files concurrently.
- Supports batch downloading via a list of URLs.
- Tracks download progress with a progress bar.
- Automatically creates a directory structure for organized storage.
Dependencies
- Python 3
BeautifulSoup(bs4) - for HTML parsingfake_useragent- for generating fake user agents for web scrapingrequests- for HTTP requestsrich- for progress display in the terminal
Directory Structure
project-root/
├── src/
│ ├── crawlers/
│ │ ├── crawler.py # Main crawler module used across the project
│ │ └── crawler_utils.py # Utilities for extracting media download links
│ ├── downloaders/
│ │ ├── album_downloader.py # Manages the downloading of entire albums
│ │ └── download_utils.py # Utilities for managing the download process
│ ├── managers/
│ │ ├── live_manager.py # Manages a real-time live display
│ │ ├── log_manager.py # Manages real-time log updates
│ │ └── progress_manager.py # Manages progress bars
│ ├── config.py # Manages constants and settings used across the project
│ ├── file_utils.py # Utilities for managing file operations
│ └── general_utils.py # Miscellaneous utility functions
├── downloader.py # Module for initiating downloads from specified EHentai URLs
├── main.py # Main script to run the downloader
├── URLs.txt # Text file listing album URLs to be downloaded
└── session_log.txt # Log file for recording session details
Installation
- Clone the repository:
git clone https://github.com/Lysagxra/EHentaiDownloader.git
- Navigate to the project directory:
cd EHentaiDownloader
- Install the required dependencies:
pip install -r requirements.txt
Single Album Download
To download a single album from an URL, you can use downloader.py, running the script with a valid album URL.
Usage
python3 downloader.py <album_url>
Example
python3 downloader.py https://e-hentai.org/g/3392858/1a77348e16/
Batch Download
To batch download from multiple album URLs, you can use the main.py script. This script reads URLs from a file named URLs.txt and downloads each one using the album downloader.
Usage
- Create a file named
URLs.txtin the root of your project, listing each URL on a new line.
- Example of
URLs.txt:
https://e-hentai.org/g/2466603/ab9b9e04c9/
https://e-hentai.org/g/2486673/e24cf9d5d8/
https://e-hentai.org/g/2490534/e80e7c554c/
- Ensure that each URL is on its own line without any extra spaces.
- You can add as many URLs as you need, following the same format.
- Run the batch download script:
python3 main.py
- The downloaded files will be saved in the
Downloadsdirectory.
Logging
The application logs any issues encountered during the download process in a file named session_log.txt. Check this file for any URLs that may have been blocked or had errors.
Release files for ehentaix 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ehentaix-0.1.3.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ehentaix-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.8 kB
Release files / ehentaix-0.1.3.tar.gz
| Download URL | ehentaix-0.1.3.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d50d5ce5f3248d572b3a148de259394f70e4432457ab040b738924b271728bce
|
|
BLAKE2b-256 checksum How to use checksums |
382d7a8e16fd8cd18a83f4918c54abb1c35e6ccbf756dc5c2db991b00b7a2459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / ehentaix-0.1.3-py3-none-any.whl
| Download URL | ehentaix-0.1.3-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d0905e02aec9629a0923bee9d47eddbdf6f345e0740eb0381f6fa269b589556
|
|
BLAKE2b-256 checksum How to use checksums |
7a40c00d7685109968aa1c434aa7db65e7456d8ebf7ae47666fec42d43e0f218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|