Skip to main content

Неофициальное API для загрузки контента на сайт ranobelib.

Project description

Ranobelib Loader

Неофициальное API для загрузки контента на сайт Ranobelib.me.

Установка

pip install ranobelib-loader

Требования

  • Python >= 3.10

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

from ranobelib_loader import RanobelibLoader

# Инициализация загрузчика с access token
loader = RanobelibLoader(access_token="your_access_token")

# Загрузка главы
response = loader.load_chapter(
    branch_id=123,
    text="Текст главы в формате Markdown",
    manga_id=456,
    name="Название главы",
    number=1,
    volume=1,
    teams=[789],
    publish_at="2025-01-01 12:00:00"  # По UTC
)

print(response.status_code)
print(response.json())

Параметры метода load_chapter

  • branch_id (int): ID ветки
  • text (str): Текст новеллы (обычный текст или Markdown)
  • manga_id (int): ID новеллы
  • name (str): Название главы
  • number (int): Номер главы
  • volume (int): Том
  • teams (list[int]): ID команды/команд
  • publish_at (str | datetime | None): Время публикации в формате "YYYY-mm-dd HH:MM:SS" (по UTC)
  • pages (Any): Страницы (по умолчанию [])
  • expired_type (int): Тип истечения (по умолчанию 0)
  • attachments (Any): Вложения (по умолчанию [])

Зависимости

  • lxml==5.4.0
  • Markdown==3.8.2
  • prosemirror==0.5.2
  • Requests==2.32.4

Лицензия

BSD 3-Clause License

Этот модуль содержит код из проекта prosemirror-py (лицензия BSD 3-Clause "New" or "Revised" License)

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

ranobelib_loader-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ranobelib_loader-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ranobelib_loader-0.1.1.tar.gz.

File metadata

  • Download URL: ranobelib_loader-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ranobelib_loader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 34f67c160cf82f3957cd3fab3d50705f2f595b66de84cf11579fceab2ac3c654
MD5 85fced1b5dc5cfed63ef8fc4e74f0600
BLAKE2b-256 13f893a293c34510bd4b6bbc94ea8b39dedb5c342fc4bbcfd4842ff433e9bb0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ranobelib_loader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47adf448ba8f5d3b4af2dbabee83bf572d96472da53fca1dda2c6a5c396d234b
MD5 6cc5da987a9b01b36a3d06ab7296179a
BLAKE2b-256 44b72973a4a1d7dcad40ed7de967a46308aa3c652f94e5f4787317c9c4a93fd4

See more details on using hashes here.

Supported by

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