Skip to main content

Неофициальная библиотека для Kinopoisk API Unofficial

Простая библиотека для взаимодействия с Kinopoisk API Unofficial. Полная документация для работы с библиотекой по этому адресу: NotKinoPoiskAPI (GitHub)

Установка

Устанавливается через pip

pip install notkinopoiskapi

Использование

Пакет был разделён на четыре эндпоинта.

Фильмы и сериалы

kp = KpFilms(API_USER_KEY)

Персонал и сотрудники

kp = KpStaff(API_USER_KEY)

Медия новости

kp = KpMedia(API_USER_KEY)

Пользователи кинопоиска

kp = KpUser(API_USER_KEY)

Окружение и переменные

Ключ к API можно указывать напрямую, либо при помощи переменных окружения в вашем файле .env. Пример в env.default.

Переменная окружения Описание Пример
NKPA_API_KEY Ключ API из панели профиля. Возможно использовать несколько разных ключей через двойной пайп (||). key1||key2||key3
NKPA_PROXY Прокси подключения. Возможно использовать несколько разных прокси через двойной пайп (||). Нужно указать тип прокси через одиночный пайп (http | или socks5 |) и адрес прокси. http|user:pass@url.com:port ||socks5|user:pass@ip:port||https|ip
NKPA_USER_AGENT User-Agent. Возможно использовать несколько разных агентов через двойной пайп (||) Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36||Mozilla/5.0 (Linux; Android 13; SM-S901U)
NKPA_CACHE_DIR Пользовательская папка с кешем /home/user/.cache/notkinopoiskapi
NKPA_CACHE_LIFE Продолжительность жизни кеша в днях, по умолчанию 7 дней 7

Metadata

Release files for notkinopoiskapi 1.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for notkinopoiskapi 1.0.0
File Interpreter ABI Platform Actions
notkinopoiskapi-1.0.0-py3-none-any.whl Python 3 none any Details for notkinopoiskapi-1.0.0-py3-none-any.whl

Release files / notkinopoiskapi-1.0.0-py3-none-any.whl

Download URL notkinopoiskapi-1.0.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e300e4b55ae33769132e590cbd79ec364a38b5d12c973492a4912c552bceae29
BLAKE2b-256 checksum
How to use checksums
3e4fd49fed6a76b98a5396652a1f20a780c6f94a794e31c0181e3d5032d12add
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.8.10

Security for notkinopoiskapi 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

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