1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00
gallery-dl/test/results/skeb.py

94 lines
2.8 KiB
Python
Raw Normal View History

2023-09-10 14:45:01 +02:00
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import skeb
__tests__ = (
{
"#url" : "https://skeb.jp/@kanade_cocotte/works/38",
"#category": ("", "skeb", "post"),
"#class" : skeb.SkebPostExtractor,
"#count" : 2,
"anonymous" : False,
"body" : r"re:はじめまして。私はYouTubeにてVTuberとして活動をしている湊ラ",
"count" : 2,
"num" : range(1, 2),
2023-09-10 14:45:01 +02:00
"client" : {
"avatar_url" : r"re:https://pbs.twimg.com/profile_images/\d+/\w+\.jpg",
"header_url" : r"re:https://pbs.twimg.com/profile_banners/1375007870291300358/\d+/1500x500",
"id" : 1196514,
"name" : str,
"screen_name": "minato_ragi",
},
"content_category": "preview",
"creator" : {
"avatar_url" : "https://pbs.twimg.com/profile_images/1225470417063645184/P8_SiB0V.jpg",
"header_url" : "https://pbs.twimg.com/profile_banners/71243217/1647958329/1500x500",
"id" : 159273,
"name" : "イチノセ奏",
"screen_name": "kanade_cocotte",
},
"file_id" : int,
"file_url" : str,
"genre" : "art",
"nsfw" : False,
"original" : {
"byte_size" : int,
"duration" : None,
"extension" : r"re:psd|png",
"frame_rate": None,
"height" : 3727,
"is_movie" : False,
"width" : 2810,
},
"post_num" : "38",
"post_url" : "https://skeb.jp/@kanade_cocotte/works/38",
"source_body" : None,
"source_thanks" : None,
"tags" : list,
"thanks" : None,
"translated_body" : False,
"translated_thanks": None,
},
{
"#url" : "https://skeb.jp/@kanade_cocotte",
"#category": ("", "skeb", "user"),
"#class" : skeb.SkebUserExtractor,
"#pattern" : r"https://si\.imgix\.net/\w+/uploads/origins/[\w-]+",
2023-09-10 14:45:01 +02:00
"#range" : "1-5",
"count": int,
"num" : int,
2023-09-10 14:45:01 +02:00
},
{
"#url" : "https://skeb.jp/search?q=bunny%20tree&t=works",
"#category": ("", "skeb", "search"),
"#class" : skeb.SkebSearchExtractor,
"#count" : ">= 18",
"search_tags": "bunny tree",
},
{
"#url" : "https://skeb.jp/@user/following_creators",
"#category": ("", "skeb", "following"),
"#class" : skeb.SkebFollowingExtractor,
},
{
"#url" : "https://skeb.jp/following_users",
"#category": ("", "skeb", "following-users"),
"#class" : skeb.SkebFollowingUsersExtractor,
"#pattern" : skeb.SkebUserExtractor.pattern,
"#auth" : True,
},
2023-09-10 14:45:01 +02:00
)