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.1.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.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: h2hdb_downloader-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4ca050a2c2a3c72f1f8597dcf42647700e6fec379d00c54a73ee15d97a2b1878
MD5 4a8e3ee89913c7a6b31525426a93aa21
BLAKE2b-256 c1b9b6c6f75c5fcbdf0452c61d4446f765af6c71295082e7c56b4c639fd12354

See more details on using hashes here.

Provenance

The following attestation bundles were made for h2hdb_downloader-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for h2hdb_downloader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a96589a4085138eeba7f9944790e7e72ee2b977fd7ffbe37a7e35c5d4756a430
MD5 b131974fb781d86cb36cf00a106274dc
BLAKE2b-256 2397fe9f2d3234c6a99627d65b3db41a1ac5d03243710625a52cadc5720b8b07

See more details on using hashes here.

Provenance

The following attestation bundles were made for h2hdb_downloader-0.1.1-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