Skip to main content

Download gallery and insert into h2hdb

Project description

H@HDB Downloader (h2hdb-downloader)

Usage

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

h2hdb_downloader-0.1.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

h2hdb_downloader-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file h2hdb_downloader-0.1.0.tar.gz.

File metadata

  • Download URL: h2hdb_downloader-0.1.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for h2hdb_downloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 798cb216c873d3453e06d46b030afe5af1c56ad1c3ce51d66f89b383c8d4b108
MD5 003fc9e712f07804689d21fa3d93f65c
BLAKE2b-256 21fe9bb2239cd07868cf9e8606417a078ba577bd1d62d2d8253f6f8fceecc5b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for h2hdb_downloader-0.1.0.tar.gz:

Publisher: publish.yml on Kuan-Lun/h2hdb-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file h2hdb_downloader-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for h2hdb_downloader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29d80561212ca48f5d287db30748500fbea1df5d9e9c54872fe60464f29e3c4d
MD5 b30e16d8641f6c292eecd41b730b0809
BLAKE2b-256 e0ae8789eff439987103baa1e032a6dc0482c2423c3e32e2e5b6ba23ea3232e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for h2hdb_downloader-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Kuan-Lun/h2hdb-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page