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/*

Download files

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

Source Distribution

danbooru_scraper-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

danbooru_scraper-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file danbooru_scraper-0.1.2.tar.gz.

File metadata

  • Download URL: danbooru_scraper-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for danbooru_scraper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 19266109d69e85394ed61f91733c76b490bbedcc3d98b21bd115d2299b511884
MD5 39a6cc6412894e82172165b796a7bb96
BLAKE2b-256 3d7c64806f616e938b5f6887659f7eada0418d311605c886bf1e735397baa7e8

See more details on using hashes here.

File details

Details for the file danbooru_scraper-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for danbooru_scraper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5844291a9c3a0510cf51ff2532d17c0211a69ba8838f9efd206d31f8abaacd4
MD5 3666c4dec67538b8c6731a65a37c0fc4
BLAKE2b-256 b5ba0f18713860aa18f92579f74cb0ea02b96aa82a3368aea99bd274793acca9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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