Metadata-Version: 2.1
Name: h2hdb-downloader
Version: 0.0.1
Summary: Download gallery and insert into h2hdb
Author: Kuan-Lun Wang
License: GNU Affero General Public License v3
Project-URL: Homepage, https://github.com/Kuan-Lun/h2hdb-downloader
Project-URL: Source, https://github.com/Kuan-Lun/h2hdb-downloader
Project-URL: Tracker, https://github.com/Kuan-Lun/h2hdb-downloader/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: h2hdb>=0.6.68.56
Requires-Dist: hbrowser>=0.0.3

# H@HDB Downloader (h2hdb-downloader)

## Usage

Here's a quick example of how to use H@HDB Downloader:

```python
from h2hdb_downloader import PreLinks, Downloader
from hbrowser import ExHDriver

gallery = GalleryURLParser("https://exhentai.org/g/123/456/")
prelinks = PreLinks()
with ExHDriver("username", "password", headless=True) as driver:
    downloader = Downloader(driver, prelinks)
    downloader.download_gallery(gallery)
    downloader.deep_download_gid(gallery,
        filters=["artist", "group"],
        conditions=["language:chinese$", "language:speechless$"],
        )
    downloader.download_gid(666) # download gid:666
```

## License

This project is distributed under the terms of the GNU General Public Licence (GPL). For detailed licence terms, see the `LICENSE` file included in this distribution.
