Skip to main content

Unofficial https://danbooru.donmai.us Package

Project description

Danbooru

PyPI GitHub license

  • Version: 0.0.9
  • License under: MIT License

Dependencies

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 Saber alter on a moto with a bikini
  • 2 Two character of azur lane, version chibi

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


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)

Uploaded Source

Built Distribution

danbooru-0.1.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for danbooru-0.1.1.tar.gz
Algorithm Hash digest
SHA256 011f2c7f802cffcb5d47cc61e545459f83218c607eb79020a81e576b45453a3c
MD5 bb3f973b10b0be4640bea5f562ced01d
BLAKE2b-256 9f3d59976aae8864bf2a9050ad68f9cf52fd1dd59aa21f8f4ed61217f685a11d

See more details on using hashes here.

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

Hashes for danbooru-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d477bf22e43bc5549ea53f0d9dc475dcf04f289c5692b5293d3785668f92e6ca
MD5 8e8082b5a33be0296d43d046018bf75b
BLAKE2b-256 324bff227c248ec8101a2f271cbb4c81f02838f842016d2d405d94279986d665

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page