Pybooru is a Python package to access to the API of Danbooru/Moebooru based sites.
Project description
Pybooru - Package for Danbooru/Moebooru API
Pybooru is a Python package to access to the API of Danbooru/Moebooru based sites.
- Version: 4.1.0
- Licensed under: MIT License
Dependencies
- Python: >= 2.7 or Python: >= 3.3
- requests
Installation
from Python Package Index (Pypi)
pip install --user Pybooru
Manual installation
git clone git://github.com/luquedaniel/pybooru.git
cd pybooru
pip install --user -r requirements.txt
sudo python setup.py build
python setup.py install
Examples of use
See More examples.
Danbooru
from pybooru import Danbooru
client = Danbooru('danbooru')
artists = client.artist_list('ma')
for artist in artists:
print("Name: {0}".format(artist['name']))
Login example
from pybooru import Danbooru
client = Danbooru('danbooru', username='your-username', api_key='your-apikey')
client.comment_create(post_id=id, body='Comment content')
Moebooru
from pybooru import Moebooru
client = Moebooru('konachan')
artists = client.artist_list(name='neko')
for artist in artists:
print("Name: {0}".format(artist['name']))
Login example
Default sites
from pybooru import Moebooru
client = Moebooru('konachan', username='your-username', password='your-password')
client.comment_create(post_id=id, comment_body='Comment content')
Not default sites
from pybooru import Moebooru
client = Moebooru('konachan.com', username='your-username', password='your-password',
hash_string='So-I-Heard-You-Like-Mupkids-?--{0}--')
client.comment_create(post_id=id, comment_body='Comment content')
Documentation
You can consult the documentation on Read the Docs
Status
Platform | Master | Develop |
---|---|---|
Linux & OSX (Travis CI) | ||
Windows (AppVeyor) |
Contributing
Feel free to contribute, take a look at CONTRIBUTING.
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
Pybooru-4.2.0b1.tar.gz
(20.3 kB
view hashes)
Built Distribution
Close
Hashes for Pybooru-4.2.0b1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c66d20c5653dab2dccd46df50ed5803acbe29c004b60aac8d76793bdf5eb0e |
|
MD5 | 9bd08a259dfff35d2d8a13ebdae66cb7 |
|
BLAKE2b-256 | b999b8fe8a96f9c249d7781306b09465b97a89409a5bbc62fed079156e679b06 |