Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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)

Metadata

Release files for ranobelib-loader 0.1.1

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

Source distribution (sdist)

Source distribution for ranobelib-loader 0.1.1
File Size Uploaded
ranobelib_loader-0.1.1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ranobelib-loader 0.1.1
File Interpreter ABI Platform
ranobelib_loader-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / ranobelib_loader-0.1.1.tar.gz

Download URL ranobelib_loader-0.1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
34f67c160cf82f3957cd3fab3d50705f2f595b66de84cf11579fceab2ac3c654
BLAKE2b-256 checksum
How to use checksums
13f893a293c34510bd4b6bbc94ea8b39dedb5c342fc4bbcfd4842ff433e9bb0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / ranobelib_loader-0.1.1-py3-none-any.whl

Download URL ranobelib_loader-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47adf448ba8f5d3b4af2dbabee83bf572d96472da53fca1dda2c6a5c396d234b
BLAKE2b-256 checksum
How to use checksums
44b72973a4a1d7dcad40ed7de967a46308aa3c652f94e5f4787317c9c4a93fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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