Danbooru
- Version: 0.0.9
- License under: MIT License
Dependencies
- Python: >= 3.9.7
- beautifulsoup4
- cloudscraper
Example of use
Danbooru
from danbooru import Danbooru
booru = Danbooru() or Danbooru(host="safebooru")
post_random = booru.post_random()
print(post_random.file_url)
results
- 1
- 2
Login example
from danbooru import Danbooru
booru = Danbooru("YOUR-USERNAME", "YOUR-API_KEY")
print(booru.searchs(tags="loli"))
from danbooru import Danbooru
booru = Danbooru("YOUR-USERNAME", "YOUR-PASSWORD")
print(booru.searchs(tags="1girl 1boy"))
from danbooru import Danbooru
booru = Danbooru()
account = booru.create_account()
USERNAME = account["username"]
PASSWORD = account["password"]
print(USERNAME, PASSWORD)
print(booru.searchs(tags="long_hair"))
Metadata
Release files for danbooru 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| danbooru-0.1.1.tar.gz | 10.4 kB | Without provenance | Details for danbooru-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| danbooru-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for danbooru-0.1.1-py3-none-any.whl |
Total release size: 21.3 kB
Release files / danbooru-0.1.1.tar.gz
| Download URL | danbooru-0.1.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
011f2c7f802cffcb5d47cc61e545459f83218c607eb79020a81e576b45453a3c
|
|
BLAKE2b-256 checksum How to use checksums |
9f3d59976aae8864bf2a9050ad68f9cf52fd1dd59aa21f8f4ed61217f685a11d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / danbooru-0.1.1-py3-none-any.whl
| Download URL | danbooru-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d477bf22e43bc5549ea53f0d9dc475dcf04f289c5692b5293d3785668f92e6ca
|
|
BLAKE2b-256 checksum How to use checksums |
324bff227c248ec8101a2f271cbb4c81f02838f842016d2d405d94279986d665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for danbooru 0.1.1
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.