You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gallery-dl/test/results/zerochan.py

117 lines
3.7 KiB

# -*- 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 zerochan
__tests__ = (
{
"#url" : "https://www.zerochan.net/Perth+%28Kantai+Collection%29",
"#category": ("booru", "zerochan", "tag"),
"#class" : zerochan.ZerochanTagExtractor,
"#pattern" : r"https://static\.zerochan\.net/\.full\.\d+\.jpg",
"#count" : "> 50",
"extension" : r"jpg",
"file_url" : r"re:https://static\.zerochan\.net/\.full\.\d+\.jpg",
"filename" : r"re:\.full\.\d+",
"height" : int,
"id" : int,
"search_tags": "Perth (Kantai Collection)",
"tag" : r"re:(Perth \(Kantai Collection\)|Kantai Collection)",
"tags" : list,
"width" : int,
},
{
"#url" : "https://www.zerochan.net/Perth+%28Kantai+Collection%29",
"#category": ("booru", "zerochan", "tag"),
"#class" : zerochan.ZerochanTagExtractor,
"#options" : {"pagination": "html"},
"#pattern" : r"https://static\.zerochan\.net/.+\.full\.\d+\.(jpg|png)",
"#count" : "> 45",
"extension" : r"re:jpg|png",
"file_url" : r"re:https://static\.zerochan\.net/.+\.full\.\d+\.(jpg|png)",
"filename" : r"re:(Perth\.\(Kantai\.Collection\)|Kantai\.Collection)\.full\.\d+",
"height" : r"re:^\d+$",
"id" : r"re:^\d+$",
"name" : r"re:(Perth \(Kantai Collection\)|Kantai Collection)",
"search_tags": "Perth (Kantai Collection)",
"size" : r"re:^\d+k$",
"width" : r"re:^\d+$",
},
{
"#url" : "https://www.zerochan.net/2920445",
"#category": ("booru", "zerochan", "image"),
"#class" : zerochan.ZerochanImageExtractor,
"#pattern" : r"https://static\.zerochan\.net/Perth\.%28Kantai\.Collection%29\.full.2920445\.jpg",
"#auth" : True,
"author" : "YeFan 葉凡",
"date" : "dt:2020-04-24 21:33:44",
"file_url": "https://static.zerochan.net/Perth.%28Kantai.Collection%29.full.2920445.jpg",
"filename": "Perth.(Kantai.Collection).full.2920445",
"height" : 1366,
"id" : 2920445,
"path" : [
"Kantai Collection",
"Perth (Kantai Collection)",
],
"size" : 1975296,
"tags" : [
"Mangaka:YeFan 葉凡",
"Game:Kantai Collection",
"Character:Perth (Kantai Collection)",
"Theme:Blonde Hair",
"Theme:Braids",
"Theme:Coat",
"Theme:Female",
"Theme:Firefighter Outfit",
"Theme:Group",
"Theme:Long Sleeves",
"Theme:Personification",
"Theme:Pins",
"Theme:Ribbon",
"Theme:Short Hair",
"Theme:Top",
],
"uploader": "YukinoTokisaki",
"width" : 1920,
},
{
"#url" : "https://www.zerochan.net/2920445",
"#category": ("booru", "zerochan", "image"),
"#class" : zerochan.ZerochanImageExtractor,
"#pattern" : r"https://static\.zerochan\.net/Perth\.%28Kantai\.Collection%29\.full.2920445\.jpg",
"#auth" : False,
"author" : "YeFan 葉凡",
"date" : "dt:2020-04-24 21:33:44",
"file_url": "https://static.zerochan.net/Perth.%28Kantai.Collection%29.full.2920445.jpg",
"filename": "Perth.(Kantai.Collection).full.2920445",
"height" : 1366,
"id" : 2920445,
"path" : [
"Kantai Collection",
"Perth (Kantai Collection)",
],
"size" : 1975296,
"tags" : [
"Mangaka:YeFan 葉凡",
"Game:Kantai Collection",
"Character:Perth (Kantai Collection)",
"Theme:Firefighter Outfit",
"Theme:Pins",
],
"uploader": "YukinoTokisaki",
"width" : 1920,
},
)