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 hashes)
Built Distribution
danbooru-0.1.1-py3-none-any.whl
(10.9 kB
view hashes)