Metadata-Version: 2.4
Name: h2hdb-downloader
Version: 0.1.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
Classifier: Programming Language :: Python :: 3.14
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: h2hdb>=0.9.1.9
Requires-Dist: hbrowser>=0.26.5
Dynamic: license-file

# H@HDB Downloader (h2hdb-downloader)

## Usage

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

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

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

asyncio.run(main())
```

## 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.
