Pybooru is a Python package to access to the API of Danbooru/Moebooru based sites.
pip install --user Pybooru
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
See More examples.
from pybooru import Danbooru
client = Danbooru('danbooru')
artists = client.artist_list('ma')
for artist in artists:
print("Name: {0}".format(artist['name']))
from pybooru import Danbooru
client = Danbooru('danbooru', username='your-username', api_key='your-apikey')
client.comment_create(post_id=id, body='Comment content')
from pybooru import Moebooru
client = Moebooru('konachan')
artists = client.artist_list(name='neko')
for artist in artists:
print("Name: {0}".format(artist['name']))
from pybooru import Moebooru
client = Moebooru('konachan', username='your-username', password='your-password')
client.comment_create(post_id=id, comment_body='Comment content')
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')
You can consult the documentation on Read the Docs
Platform | Master | Develop |
---|---|---|
Linux & OSX (Travis CI) | ||
Windows (AppVeyor) |
Feel free to contribute, take a look at CONTRIBUTING.