Skip to main content

danbooru-scraper

yet another danbooru scraper, this time distributed for sagemaker use

Installation:

pip install danbooru-scraper

Usage

cli:

# danbooru-scraper --help
usage: danbooru-scraper [-h] --from-id FROM_ID --to-id TO_ID
                        --local-dir LOCAL_DIR --upload-dir UPLOAD_DIR

example inputs:

danbooru-scraper --from-id 8627380 --to-id 8627391 --local-dir danbooru_downloads --upload-dir s3://dataset-ingested/danbooru --request-interval 0.85

python:

from danbooru_scraper import DanbooruScraper

scraper = DanbooruScraper(root_dir='../data/')
post_ids = [i for i in range(1000, 10000)]
scraper.scrape_posts(post_ids)

SageMaker:

(Check notebooks/laucch_sagemaker.ipynb for a complete example of distributed scraping on sagemaker.)

Build:

python -m pip install build twine
python -m build
twine check dist/*
twine upload dist/*

Metadata

Release files for danbooru-scraper 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for danbooru-scraper 0.1.2
File Size Uploaded Provenance Actions
danbooru_scraper-0.1.2.tar.gz 3.6 kB Without provenance Details for danbooru_scraper-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for danbooru-scraper 0.1.2
File Interpreter ABI Platform Actions
danbooru_scraper-0.1.2-py3-none-any.whl Python 3 none any Details for danbooru_scraper-0.1.2-py3-none-any.whl

Total release size: 8.4 kB

Release files / danbooru_scraper-0.1.2.tar.gz

Download URL danbooru_scraper-0.1.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
19266109d69e85394ed61f91733c76b490bbedcc3d98b21bd115d2299b511884
BLAKE2b-256 checksum
How to use checksums
3d7c64806f616e938b5f6887659f7eada0418d311605c886bf1e735397baa7e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Release files / danbooru_scraper-0.1.2-py3-none-any.whl

Download URL danbooru_scraper-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5844291a9c3a0510cf51ff2532d17c0211a69ba8838f9efd206d31f8abaacd4
BLAKE2b-256 checksum
How to use checksums
b5ba0f18713860aa18f92579f74cb0ea02b96aa82a3368aea99bd274793acca9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Security for danbooru-scraper 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page