[arcalive] add 'user' extractor (#5657)

This commit is contained in:
Mike Fährmann
2025-03-14 18:58:10 +01:00
parent d900e868e4
commit 31e57bafab
4 changed files with 82 additions and 13 deletions

View File

@@ -120,11 +120,56 @@ __tests__ = (
},
{
"#url" : "https://arca.live/b/arknights",
"#class" : arcalive.ArcaliveBoardExtractor,
"#url" : "https://arca.live/b/arknights",
"#class" : arcalive.ArcaliveBoardExtractor,
"#pattern": arcalive.ArcalivePostExtractor.pattern,
"#range" : "1-100",
"#count" : 100,
"#range" : "1-100",
"#count" : 100,
"category" : {str, None},
"categoryDisplayName": {str, None},
"commentCount": int,
"createdAt" : str,
"id" : int,
"isUser" : bool,
"?mark" : str,
"nickname" : str,
"publicId" : {int, None},
"ratingDown" : int,
"ratingUp" : int,
"thumbnailUrl": {str, None},
"title" : str,
"viewCount" : int,
},
{
"#url" : "https://arca.live/u/@Si%EB%A6%AC%EB%A7%81",
"#class": arcalive.ArcaliveUserExtractor,
"#range": "1-5",
"#urls" : (
"https://arca.live/b/vrchat/107257886",
"https://arca.live/b/soulworkers/95371697",
"https://arca.live/b/arcalivebreverse/90843346",
"https://arca.live/b/arcalivebreverse/90841126",
"https://arca.live/b/arcalivebreverse/90769916",
),
"boardName" : str,
"boardSlug" : {"vrchat", "soulworkers", "arcalivebreverse"},
"category" : {str, None},
"categoryDisplayName": {str, None},
"commentCount": int,
"createdAt" : str,
"id" : int,
"isUser" : True,
"?mark" : "image",
"nickname" : "Si리링",
"publicId" : {int, None},
"ratingDown" : int,
"ratingUp" : int,
"thumbnailUrl": {str, None},
"title" : str,
"viewCount" : int,
},
)