A python implementation of the Habrahabr.ru API
Project description
Имплементация API сайта Habrahabr.ru используя Python.
Быстрый старт
>>> import habrahabr >>> auth = habrahabr.Auth(client="000000.00000000", token="0000000000") >>> api = habrahabr.Api(auth) >>> print(api.user.me())
Поддержка
python >= 2.7
python >= 3.2
Установка
Из Pypi
$ pip install habrahabr-api
Из исходников
$ git clone https://github.com/dotzero/habrahabr-api-python $ cd habrahabr-api-python $ python setup.py install
Использование
Получение экземпляра класса habrahabr.Api для доступа ко всем ресурсам:
>>> import habrahabr >>> auth = habrahabr.Auth(client="000000.00000000", token="0000000000") >>> api = habrahabr.Api(auth)
Описание API ресурсов:
api.comments - Ресурс работы с комментариями
api.company - Ресурс работы с компаниями
api.feed - Ресурс работы с “основной” лентой постов
api.flow - Ресурс работы с потоками
api.hub - Ресурс работы с хабами
api.poll - Ресурс работы с постами
api.post - Ресурс работы с опросами
api.search - Ресурс работы с поиском
api.settings - Ресурс работы с настройками профиля
api.tracker - Ресурс работы с трекером
api.user - Ресурс работы с пользователями
Лицензия
Библиотека доступна на условиях лицензии MIT: http://www.opensource.org/licenses/mit-license.php
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file habrahabr-api-0.1.2.tar.gz.
File metadata
- Download URL: habrahabr-api-0.1.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a1e90e1d200ba4769132caf0a751ea8f19a5439e81afbdfc347cb076a691929
|
|
| MD5 |
2d89a256b4368e79e0b887fec8fd3154
|
|
| BLAKE2b-256 |
cda8605ad7782d981867975e0165fed266801bb174038332ef666a3456deb50f
|
File details
Details for the file habrahabr_api-0.1.2-py2-none-any.whl.
File metadata
- Download URL: habrahabr_api-0.1.2-py2-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
393e7e87f1e882166110696c185a48acf3c6809067b6a8687802d17ea30dedee
|
|
| MD5 |
952e982abba3fce9450c2f1194e287cc
|
|
| BLAKE2b-256 |
ab07dee372ed5c0fb4e58855a3ee9d608d902c73130ad78fd40ffe0cc5aef0a7
|