# -*- 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, "source" : "", "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, "source" : "", "tags" : [ "Mangaka:YeFan 葉凡", "Game:Kantai Collection", "Character:Perth (Kantai Collection)", "Theme:Firefighter Outfit", "Theme:Pins", ], "uploader": "YukinoTokisaki", "width" : 1920, }, { "#url" : "https://www.zerochan.net/4233756", "#category": ("booru", "zerochan", "image"), "#class" : zerochan.ZerochanImageExtractor, "#urls" : "https://static.zerochan.net/DRAGON.BALL.full.4233756.jpg", "#options" : {"tags": True}, "author" : "Raydash", "date" : "dt:2024-07-23 00:10:51", "extension": "jpg", "file_url" : "https://static.zerochan.net/DRAGON.BALL.full.4233756.jpg", "filename" : "DRAGON.BALL.full.4233756", "height" : 1125, "id" : 4233756, "path" : [ "Toriyama Akira", "DRAGON BALL", ], "size" : 136192, "source": "https://x.com/Raydash30/status/1766012730769862774", "tags" : [ "Mangaka:Raydash", "Series:DRAGON BALL", "Series:DRAGON BALL Z", "Character:Piccolo", "Character:Son Gohan", "Theme:Duo", "Theme:Green Skin", "Theme:Male", "Theme:Male Focus", "Theme:Two Males", "Source:Fanart", "Source:Fanart from X (Twitter)", "Source:X (Twitter)", ], "tags_character": [ "Piccolo", "Son Gohan", ], "tags_mangaka" : [ "Raydash", ], "tags_series" : [ "DRAGON BALL", "DRAGON BALL Z", ], "tags_source" : [ "Fanart", "Fanart from X (Twitter)", "X (Twitter)", ], "tags_theme" : [ "Duo", "Green Skin", "Male", "Male Focus", "Two Males", ], "uploader" : "menotbug", "width" : 750, }, { "#url" : "https://www.zerochan.net/1395035", "#comment" : "Invalid control character '\r' in 'source' field (#5892)", "#category": ("booru", "zerochan", "image"), "#class" : zerochan.ZerochanImageExtractor, "#auth" : True, "#options" : {"metadata": True}, "source": "http://www.youtube.com/watch?v=0vodqkGPxt8", }, )