Unofficial https://danbooru.donmai.us Package
Project description
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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
danbooru-0.1.1.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
danbooru-0.1.1-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file danbooru-0.1.1.tar.gz.
File metadata
- Download URL: danbooru-0.1.1.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
011f2c7f802cffcb5d47cc61e545459f83218c607eb79020a81e576b45453a3c
|
|
| MD5 |
bb3f973b10b0be4640bea5f562ced01d
|
|
| BLAKE2b-256 |
9f3d59976aae8864bf2a9050ad68f9cf52fd1dd59aa21f8f4ed61217f685a11d
|
File details
Details for the file danbooru-0.1.1-py3-none-any.whl.
File metadata
- Download URL: danbooru-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d477bf22e43bc5549ea53f0d9dc475dcf04f289c5692b5293d3785668f92e6ca
|
|
| MD5 |
8e8082b5a33be0296d43d046018bf75b
|
|
| BLAKE2b-256 |
324bff227c248ec8101a2f271cbb4c81f02838f842016d2d405d94279986d665
|