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)
| File | Size | Uploaded | |
|---|---|---|---|
| danbooru_scraper-0.1.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| danbooru_scraper-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|