Pybooru is a Python library to access API of Danbooru/Moebooru based sites.
- Version: 3.0.1
- Licensed under: MIT License
- Python: >= 2.6 or Python: >= 3
- requests.
Pypi - Python Package Index: Pybooru on Pypi.
sudo pip install Pybooru
or
sudo easy_install Pybooru
git clone git://github.com/luquedaniel/pybooru.git
cd pybooru
sudo python setup.py build
sudo python setup.py install
from pybooru import Pybooru
client = Pybooru('Konachan')
artists = client.artists('ma')
for artist in artists:
print("Name: {0}".format(artist['name']))
from pybooru import Pybooru
client = Pybooru('Konachan', username='your-username', password='your-password')
client.comments_create(post_id=id, comment_body='Comment content')
from pybooru import Pybooru
client = Pybooru('konachan.com', username='your-username', password='your-password',
hashString='So-I-Heard-You-Like-Mupkids-?--{0}--')
client.comments_create(post_id=id, comment_body='Comment content')