Skip to content

comics 漫画

漫画信息获取模块。

python
from bestdori import comics

类型定义

ComicInfo 漫画信息

漫画详细信息字典。

字段名类型描述
assetBundleNamestr漫画资源库名
titleList[str | None]漫画标题定长列表
subTitleList[str | None]漫画副标题定长列表
publicStartAtList[str | Literal[1] | None]漫画公开时间时间戳定长列表。若漫画为服务器开放时即开放则此字段值为 1 ,否则为时间戳字符串
characterIdList[int]漫画相关角色 ID 列表

def get_all() async

参数名类型默认值描述
indexLiteral[5]5指定获取的 JSON 信息
me keywordOptional[Me]None登录用户类

获取总漫画信息,返回以漫画 ID 为字段名、 ComicInfo 为字段值的信息字典。

返回值: Dict[str, ComicInfo]

class Comic()

漫画类。包含各种漫画资源获取。

def init()

参数名类型默认值描述
idint-漫画 ID
me keywordOptional[Me]None登录用户类

def get_info() async

获取漫画信息。

返回值: ComicInfo

def get_comment() async

参数名类型默认值描述
limitint20获取到的帖子数量上限
offsetint0获取帖子时的偏移量
orderOrder'TIME_ASC'

获取漫画的社区评论列表。

返回值: PostList

def get_thumbnail() async

参数名类型默认值描述
serverServerName-获取资源所在服务器

获取漫画缩略图资源。

返回值: bytes

def get_asset() async

参数名类型默认值描述
serverServerName-获取资源所在服务器

获取漫画图像资源。

返回值: bytes