1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00
gallery-dl/test/results/hentaifoundry.py
2023-09-10 14:45:01 +02:00

153 lines
4.8 KiB
Python

# -*- 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 hentaifoundry
import datetime
__tests__ = (
{
"#url" : "https://www.hentai-foundry.com/user/Tenpura/profile",
"#category": ("", "hentaifoundry", "user"),
"#class" : hentaifoundry.HentaifoundryUserExtractor,
},
{
"#url" : "https://www.hentai-foundry.com/pictures/user/Tenpura",
"#category": ("", "hentaifoundry", "pictures"),
"#class" : hentaifoundry.HentaifoundryPicturesExtractor,
"#sha1_url": "ebbc981a85073745e3ca64a0f2ab31fab967fc28",
},
{
"#url" : "https://www.hentai-foundry.com/pictures/user/Tenpura/page/3",
"#category": ("", "hentaifoundry", "pictures"),
"#class" : hentaifoundry.HentaifoundryPicturesExtractor,
},
{
"#url" : "https://www.hentai-foundry.com/pictures/user/Evulchibi/scraps",
"#category": ("", "hentaifoundry", "scraps"),
"#class" : hentaifoundry.HentaifoundryScrapsExtractor,
"#sha1_url": "7cd9c6ec6258c4ab8c44991f7731be82337492a7",
},
{
"#url" : "https://www.hentai-foundry.com/pictures/user/Evulchibi/scraps/page/3",
"#category": ("", "hentaifoundry", "scraps"),
"#class" : hentaifoundry.HentaifoundryScrapsExtractor,
},
{
"#url" : "https://www.hentai-foundry.com/user/Tenpura/faves/pictures",
"#category": ("", "hentaifoundry", "favorite"),
"#class" : hentaifoundry.HentaifoundryFavoriteExtractor,
"#sha1_url": "56f9ae2e89fe855e9fe1da9b81e5ec6212b0320b",
},
{
"#url" : "https://www.hentai-foundry.com/user/Tenpura/faves/pictures/page/3",
"#category": ("", "hentaifoundry", "favorite"),
"#class" : hentaifoundry.HentaifoundryFavoriteExtractor,
},
{
"#url" : "https://www.hentai-foundry.com/pictures/recent/2018-09-20",
"#category": ("", "hentaifoundry", "recent"),
"#class" : hentaifoundry.HentaifoundryRecentExtractor,
"#pattern" : r"https://pictures.hentai-foundry.com/[^/]/[^/?#]+/\d+/",
"#range" : "20-30",
},
{
"#url" : "https://www.hentai-foundry.com/pictures/popular",
"#category": ("", "hentaifoundry", "popular"),
"#class" : hentaifoundry.HentaifoundryPopularExtractor,
"#pattern" : r"https://pictures.hentai-foundry.com/[^/]/[^/?#]+/\d+/",
"#range" : "20-30",
},
{
"#url" : "https://www.hentai-foundry.com/pictures/user/Tenpura/407501/shimakaze",
"#category": ("", "hentaifoundry", "image"),
"#class" : hentaifoundry.HentaifoundryImageExtractor,
"#sha1_url" : "fbf2fd74906738094e2575d2728e8dc3de18a8a3",
"#sha1_content": "91bf01497c39254b6dfb234a18e8f01629c77fd1",
"artist" : "Tenpura",
"date" : "dt:2016-02-22 14:41:19",
"description": "Thank you!",
"height" : 700,
"index" : 407501,
"media" : "Other digital art",
"ratings" : [
"Sexual content",
"Contains female nudity",
],
"score" : int,
"tags" : [
"collection",
"kancolle",
"kantai",
"shimakaze",
],
"title" : "shimakaze",
"user" : "Tenpura",
"views" : int,
"width" : 495,
},
{
"#url" : "http://www.hentai-foundry.com/pictures/user/Tenpura/407501/",
"#category": ("", "hentaifoundry", "image"),
"#class" : hentaifoundry.HentaifoundryImageExtractor,
"#pattern" : "http://pictures.hentai-foundry.com/t/Tenpura/407501/",
},
{
"#url" : "https://www.hentai-foundry.com/pictures/user/Tenpura/407501/",
"#category": ("", "hentaifoundry", "image"),
"#class" : hentaifoundry.HentaifoundryImageExtractor,
},
{
"#url" : "https://pictures.hentai-foundry.com/t/Tenpura/407501/Tenpura-407501-shimakaze.png",
"#category": ("", "hentaifoundry", "image"),
"#class" : hentaifoundry.HentaifoundryImageExtractor,
},
{
"#url" : "https://www.hentai-foundry.com/stories/user/SnowWolf35",
"#category": ("", "hentaifoundry", "stories"),
"#class" : hentaifoundry.HentaifoundryStoriesExtractor,
"#count" : ">= 35",
"author" : "SnowWolf35",
"chapters" : int,
"comments" : int,
"date" : datetime.datetime,
"description": str,
"index" : int,
"rating" : int,
"ratings" : list,
"status" : r"re:(Inc|C)omplete",
"title" : str,
"user" : "SnowWolf35",
"views" : int,
"words" : int,
},
{
"#url" : "https://www.hentai-foundry.com/stories/user/SnowWolf35/26416/Overwatch-High-Chapter-Voting-Location",
"#category": ("", "hentaifoundry", "story"),
"#class" : hentaifoundry.HentaifoundryStoryExtractor,
"#sha1_url": "5a67cfa8c3bf7634c8af8485dd07c1ea74ee0ae8",
"title": "Overwatch High Chapter Voting Location",
},
)