Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Hatena Haiku for Python 3

Project description

hatena-haiker is an unofficial library for the Hatena Haiku API.

Examples

import haiker
api = haiker.Haiker()
for status in api.public_timeline(count=3, body_formats=['haiku']):
    created_at = status.created_at.strftime('%Y-%m-%d %H:%M:%S')
    print(created_at, status.user.id, status.keyword)
    print(status.haiku_text)
    print()
import haiker
auth = haiker.OAuth('MyConsumerKey', 'MyConsumerSecret',
                    'MyAccessToken', 'MyAccessTokenSecret')
api = haiker.Haiker(auth)
status = api.update_status('BOT', 'Hello, world!', source='API')
api.add_star(status.id)

Installation

pip3 install --upgrade hatena-haiker

Documentation

After completing the installation, execute the following:

python3 -m pydoc haiker

Project details


Release history Release notifications

This version
History Node

0.4.0

History Node

0.3.0

History Node

0.2.0

History Node

0.1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
hatena-haiker-0.4.0.tar.gz (13.3 kB) Copy SHA256 hash SHA256 Source None Jul 18, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page