Skip to content

eventarchives 活动数据

活动数据信息获取模块。

python
from bestdori import eventarchives

类型定义

EventArchiveInfo 活动数据信息

字段名类型描述
cutoffList[NoneDict | Dict[str, int]]活动分数线定长列表
boardList[List[int]]定长列表,此处空项值为空列表

def get_all() async

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

获取总乐队信息,返回以乐队 ID 为字段名、EventArchiveInfo为字段值的信息字典。

返回值: Dict[str, EventArchiveInfo]

class EventArchive()

活动数据类,包含各种活动数据相关资源整合。

def init()

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

def get_info() async

获取活动数据信息。

返回值: EventArchiveInfo

def get_top() async

参数名类型默认值描述
serverServer-指定活动服务器
midint0歌曲 ID 。仅在查询歌曲分数排名时为非 0

获取活动的最终排名分数线数据。

返回值: EventTopData

def get_comment() async

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

获取活动数据的社区评论列表。

返回值: PostList