Metadata-Version: 2.4
Name: exhentai-gallery
Version: 0.1.3
Summary: a simple method to get all image in an exhentai gallery.
License: MIT
License-File: LICENSE
Author: GGN_2015
Author-email: neko@jlulug.org
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: fake-useragent
Requires-Dist: pillow
Requires-Dist: requests
Requires-Dist: selenium (>=4.43.0,<5.0.0)
Description-Content-Type: text/markdown

# exhentai_gallery
a simple method to get all image in an exhentai gallery.

## Installation

```bash
pip install exhentai_gallery
```

## Usage

If you have an exhentai account, use exhentai (slower):
```python
from exhentai_gallery import exhentai_get_image_links
from exhentai_gallery import get_exhentai_cookie
from exhentai_gallery import ImageParallelDownloader

# First page URL of the gallery
gallery_url = "https://exhentai.org/s/f45e2977ea/3884442-1"

# Retrieve all image links (stored in list)
# You must fill in chrome.exe and chromedriver.exe if you are accessing exhentai
image_links = exhentai_get_image_links(
    gallery_url,
    r"D:\ProgramData\chrome-win64\chrome.exe",
    r"D:\ProgramData\chromedriver-win64\chromedriver.exe",
    link_call_back=print,
    cookies=get_exhentai_cookie(
        ipb_member_id="...",
        ipb_pass_hash="...",
        igneous="..."
    ),
    encoding="utf-8")

ImageParallelDownloader(image_links, "./img/").download_all()
```

If you do not have an exhentai account, use e-hentai:
```bash
from exhentai_gallery import exhentai_get_image_links
from exhentai_gallery import ImageParallelDownloader

gallery_url = "https://e-hentai.org/s/89212e7849/3885016-1"

# Retrieve all image links (stored in list)
# You do not need to fill in chrome.exe and chromedriver.exe if you are accessing e-hentai
image_links = exhentai_get_image_links(
    gallery_url,
    r"D:\ProgramData\chrome-win64\chrome.exe",
    r"D:\ProgramData\chromedriver-win64\chromedriver.exe",
    link_call_back=print,
    encoding="utf-8")

ImageParallelDownloader(image_links, "./img/").download_all()
```

