Skip to main content

Hatena Haiku for Python 3

Project description

https://img.shields.io/pypi/v/hatena-haiker.svg

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


Download files

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

Source Distribution

hatena-haiker-0.4.0.tar.gz (13.3 kB view details)

Uploaded Source

File details

Details for the file hatena-haiker-0.4.0.tar.gz.

File metadata

File hashes

Hashes for hatena-haiker-0.4.0.tar.gz
Algorithm Hash digest
SHA256 75248ca63584f2b74c3a76d6da90458cf701b2ed839768c5aeb3aa4e90f20096
MD5 2db1e97000845804ecbdb6ad19e777b7
BLAKE2b-256 fd8e8abd70ff6210ca21c14306b400e9a1634046089dafccb1b58fa5f2846bf9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page