[artstation] support collections (#146)

https://github.com/mikf/gallery-dl/issues/146#issuecomment-1972101003
This commit is contained in:
Mike Fährmann
2024-03-01 19:34:08 +01:00
parent 32ec695195
commit cf9e99c07b
4 changed files with 89 additions and 2 deletions

View File

@@ -64,6 +64,44 @@ __tests__ = (
"#count" : 6,
},
{
"#url" : "https://www.artstation.com/mikf/collections/2647023",
"#category": ("", "artstation", "collection"),
"#class" : artstation.ArtstationCollectionExtractor,
"#count" : 10,
"collection": {
"active_projects_count": 3,
"id" : 2647023,
"is_private" : False,
"micro_square_image_url": "https://cdna.artstation.com/p/assets/images/images/005/131/434/micro_square/gaeri-kim-cat-front.jpg?1488720625",
"name" : "テスト",
"projects_count": 3,
"small_square_image_url": "https://cdna.artstation.com/p/assets/images/images/005/131/434/small_square/gaeri-kim-cat-front.jpg?1488720625",
"user_id" : 697975,
},
"user": "mikf",
},
{
"#url" : "https://www.artstation.com/mikf/collections",
"#category": ("", "artstation", "collections"),
"#class" : artstation.ArtstationCollectionsExtractor,
"#urls" : (
"https://www.artstation.com/mikf/collections/2647023",
"https://www.artstation.com/mikf/collections/2647719",
),
"active_projects_count": int,
"id" : range(2647023, 2647719),
"is_private" : False,
"micro_square_image_url": str,
"name" : r"re:テスト|empty",
"projects_count": int,
"small_square_image_url": str,
"user_id" : 697975,
},
{
"#url" : "https://www.artstation.com/sungchoi/likes",
"#comment" : "no likes",