Skip to main content

Python Habrahabr.ru API

PyPI GitHub License Build Status Code Coverage Scrutinizer Code Quality

Имплементация 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

Metadata

Release files for habrahabr-api 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for habrahabr-api 0.1.2
File Size Uploaded
habrahabr-api-0.1.2.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for habrahabr-api 0.1.2
File Interpreter ABI Platform
habrahabr_api-0.1.2-py2-none-any.whl Python 2 none any Details

Total release size: 38.9 kB

Release files / habrahabr-api-0.1.2.tar.gz

Download URL habrahabr-api-0.1.2.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7a1e90e1d200ba4769132caf0a751ea8f19a5439e81afbdfc347cb076a691929
BLAKE2b-256 checksum
How to use checksums
cda8605ad7782d981867975e0165fed266801bb174038332ef666a3456deb50f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / habrahabr_api-0.1.2-py2-none-any.whl

Download URL habrahabr_api-0.1.2-py2-none-any.whl
Size 29.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
393e7e87f1e882166110696c185a48acf3c6809067b6a8687802d17ea30dedee
BLAKE2b-256 checksum
How to use checksums
ab07dee372ed5c0fb4e58855a3ee9d608d902c73130ad78fd40ffe0cc5aef0a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page