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 | |
|---|---|---|---|
| danbooru-0.1.1.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| danbooru-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|