Skip to main content

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

Project description

# Ranobelib Loader

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

## Установка

```bash
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.0.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.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ranobelib_loader-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d5d618b9dae525d9578412a938b849f573db2f52c211f03fb4d38020cc9ad2c7
MD5 ee99e693c389d416bd96ca19e5ae5b28
BLAKE2b-256 8e11fee416ccb0da975487ea3766efe2677431237979f087e91b14ae29023f36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ranobelib_loader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c41149e1437c2cdce3d4d4837f3dbba05b1ca30f39f635bfcf2ec101df6baa12
MD5 bc18af5a8a5d54f6d5c5069c10564744
BLAKE2b-256 d1fe071f2fa751796b19db7119e9882db2bfe0e64f92c796eb3ea46f547220bd

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