Skip to content

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

License

Notifications You must be signed in to change notification settings

flame0thrower/pybooru

 
 

Repository files navigation

Pybooru - Library for Danbooru/Moebooru API.

Build Status

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

  • Version: 3.0.1
  • Licensed under: MIT License

Dependencies.

Installation

from Python Package Index (Pypi)

Pypi - Python Package Index: Pybooru on Pypi.

sudo pip install Pybooru

or

sudo easy_install Pybooru

Manual installation

git clone git://github.com/luquedaniel/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.

CI Report

License

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%