Skip to main content

Реализация Api для сервиса kinopoisk.dev

Project description

Kinopoisk Dev Api

Python-модуль для взаимодействия с неофициальным API КиноПоиска

Установка

$ pip install kinopoisk-dev

Получение токена

Для получения токена необходимо перейти kinopoisk.dev и написать по контактам.

Movie

Методы для работы с данными о фильмах

Получить данные о фильме по Kinopoisk ID

Возвращает информацию о фильме.

  • Эндпоинт - /movie
  • Метод - movie
kp = KinopoiskDev(token=TOKEN)
data = kp.movie(field=Field.KP, search="301")

Получить данные о списке фильмов по Kinopoisk ID

Возвращает информацию о списке фильмов

  • Эндпоинт - /movie
  • Метод - movie_ids
kp = KinopoiskDev(token=TOKEN)
datas = kp.movie_ids(field=Field.KP,
                     ids=["301", "1209527", "1400126", "1445165", "4489530", "4396744", "4963617", "1435399",
                          "4400160", "4397602", '542352345', ])

Параметры

Field

Поля Значение Описание
KP id Поиск по id kinopoisk
IMDB externalId.imdb Поиск по id imdb
TMDB externalId.tmdb Поиск по id tmdb

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

kinopoisk-dev-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

kinopoisk_dev-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file kinopoisk-dev-0.1.1.tar.gz.

File metadata

  • Download URL: kinopoisk-dev-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.0 Windows/10

File hashes

Hashes for kinopoisk-dev-0.1.1.tar.gz
Algorithm Hash digest
SHA256 03b4a3d8a8237293edfd79b744292a61eb375dead0856282683452752c5b1646
MD5 8c52dee5222eabd2607878d7b05a2657
BLAKE2b-256 8b3c5f8a3ae7d06bec63b5f290b48252f327b7dcf90749909c16a90690b0ce5d

See more details on using hashes here.

File details

Details for the file kinopoisk_dev-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kinopoisk_dev-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.0 Windows/10

File hashes

Hashes for kinopoisk_dev-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 980578475be1546bcaf7836214976b27f63bb681764f41cc57fde800e13b2a9f
MD5 9e719b947ae65d53a5f6127675bbe8dd
BLAKE2b-256 a507b1629be942c888cd27bc3a78591f570512478ee93b505f49634efab97714

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