Skip to Content
VLRdevAPI

已完赛赛果列表 (Completed Matches)

浏览 vlr.gg 上已完赛的比赛记录与比分结果,包含胜负战队判定与多页自动分页支持。

matches.completed() 返回来自 vlr.gg 的已完赛历史赛果分页列表,包含总比分及获胜方信息。

方法签名

matches.completed(
    page: int = 1,
    max_page: int = 0,
    return_all: bool = False,
) -> CompletedMatchesPage

请求参数

Prop

Type

返回类型 - CompletedMatchesPage

Prop

Type

CompletedMatchEntry 字段明细

Prop

Type

TeamInCompletedMatch 字段明细

Prop

Type

代码示例

import vlrdevapi

completed_page = vlrdevapi.matches.completed(page=1)

for match in completed_page.matches[:5]:
    t1 = match.team1.name if match.team1 else "待定"
    t2 = match.team2.name if match.team2 else "待定"
    s1 = match.team1.score if match.team1 and match.team1.score is not None else 0
    s2 = match.team2.score if match.team2 and match.team2.score is not None else 0
    winner = t1 if match.team1 and match.team1.is_winner else t2
    print(f"{t1} [{s1} - {s2}] {t2} -> 获胜方: {winner} ({match.event})")

最后更新于

本页内容