A wrapper for Danbooru API
Project description
AppleBooru
AppleBooru is a Python library for interacting with the Danbooru API. Provides a simple and easy-to-use interface to help developers access and manipulate posts and wiki pages on Danbooru.
Key Features
- Client: All requests to Danbooru API are through the client.
- Post API: Easily get posts.
- Wiki Page API: Get wiki pages on Danbooru, support search options and fuzzy.
Installation
pip install applebooru
Usage Example
from applebooru import AppleBooruClient
# Initialize the client
client = AppleBooruClient(api_key="your_api_key", username="your_username")
# Retrieve posts
posts = client.posts.get_posts(other_names_match='鍙插皵鐗瑰皵', limit=10)
for post in posts:
print(post)
# Retrieve wiki pages
wiki_pages = client.wiki_pages.get_wiki_pages(title='surtr_(arknights)', only=['id', 'title'], limit=5)
for page in wiki_pages:
print(page)
Dependencies
- Python 3.6+
- requests
Target Audience
- Developers who need to interact with the Danbooru API
- Users who want to automate management of content on Danbooru
License
MIT License
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
applebooru-1.0.0b2.tar.gz
(3.1 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
File details
Details for the file applebooru-1.0.0b2.tar.gz.
File metadata
- Download URL: applebooru-1.0.0b2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe522ebef94891c1cbd5a9758747f29b01b5df97d8275d168d76847da17bae44
|
|
| MD5 |
ab58cf28134b2a0fc60f400882c0980e
|
|
| BLAKE2b-256 |
4389d9c281db3d207584af3c5255b4e295ef4f1aa677b9f0c038ed2606c67a55
|
File details
Details for the file applebooru-1.0.0b2-py3-none-any.whl.
File metadata
- Download URL: applebooru-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acab96d03106b75be612a3de30b6f70e9d9db90bdd13ee5a5b3b3dc46fdcd931
|
|
| MD5 |
2574a74f0c85cd2ece8f4c7b4f9bdf91
|
|
| BLAKE2b-256 |
61201d062e4c6ac2edd0e8408ba192804cb18d21af66e06cd409f2944d9aad8b
|