/pybooru

Pybooru is a Python library to access API of Danbooru/Moebooru based sites.

Primary LanguagePythonMIT LicenseMIT

Pybooru - Library for Danbooru/Moebooru API.

A fork of Pybooru by Daniel Luque.

Pybooru is a Python library to access API of Danbooru/Moebooru based sites.

This fork adds the missing API for Danbooru v2 and a few others.

  • Version: 3.1.0
  • Licensed under: MIT License

Dependencies.

Installation

Manual installation

git clone git://github.com/buzzbyte/pybooru.git
cd pybooru
sudo python setup.py build
sudo python setup.py install

Examples of use

from pybooru import Pybooru

client = Pybooru('Konachan')

artists = client.artists('ma')

for artist in artists:
    print("Name: {0}".format(artist['name']))

Login example

Default sites

from pybooru import Pybooru

client = Pybooru('Konachan', username='your-username', password='your-password')

client.comments_create(post_id=id, comment_body='Comment content')

Other sites

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')

More examples.

License