1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[tests] update extractor results

This commit is contained in:
Mike Fährmann 2024-03-22 17:57:04 +01:00
parent 9f73fac5ef
commit 7a7dc442a0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
22 changed files with 37 additions and 60 deletions

View File

@ -73,7 +73,7 @@ __tests__ = (
"#category": ("", "8chan", "board"), "#category": ("", "8chan", "board"),
"#class" : _8chan._8chanBoardExtractor, "#class" : _8chan._8chanBoardExtractor,
"#pattern" : _8chan._8chanThreadExtractor.pattern, "#pattern" : _8chan._8chanThreadExtractor.pattern,
"#count" : 27, "#count" : range(24, 28),
}, },
{ {

View File

@ -12,7 +12,7 @@ __tests__ = (
"#url" : "https://julianbphotography.blogspot.com/2010/12/moon-rise.html", "#url" : "https://julianbphotography.blogspot.com/2010/12/moon-rise.html",
"#category": ("blogger", "blogspot", "post"), "#category": ("blogger", "blogspot", "post"),
"#class" : blogger.BloggerPostExtractor, "#class" : blogger.BloggerPostExtractor,
"#urls" : "https://3.bp.blogspot.com/-zlJddJtJOUo/Tt4WooTPNtI/AAAAAAAABG8/dGT2cGp2E7Y/s0/Icy-Moonrise---For-Web.jpg", "#urls" : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH9WkPvLJq2moxKtyt3ieJZWSDFQwOi3PHRdlHVHEQHRwy-d86Jg6HWSMhxaa6EgvlXq-zDMmKM4kIPn27eJ9Hepk2X9e9HQhqwMfrT8RYTnFe65uexw7KSk5FdWHxRVp5crz3p_qph3Bj/s0/Icy-Moonrise---For-Web.jpg",
"blog": { "blog": {
"date" : "dt:2010-11-21 18:19:42", "date" : "dt:2010-11-21 18:19:42",
@ -43,7 +43,7 @@ __tests__ = (
"extension": "jpg", "extension": "jpg",
"filename" : "Icy-Moonrise---For-Web", "filename" : "Icy-Moonrise---For-Web",
"num" : 1, "num" : 1,
"url" : "https://3.bp.blogspot.com/-zlJddJtJOUo/Tt4WooTPNtI/AAAAAAAABG8/dGT2cGp2E7Y/s0/Icy-Moonrise---For-Web.jpg", "url" : "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH9WkPvLJq2moxKtyt3ieJZWSDFQwOi3PHRdlHVHEQHRwy-d86Jg6HWSMhxaa6EgvlXq-zDMmKM4kIPn27eJ9Hepk2X9e9HQhqwMfrT8RYTnFe65uexw7KSk5FdWHxRVp5crz3p_qph3Bj/s0/Icy-Moonrise---For-Web.jpg",
}, },
{ {
@ -59,7 +59,7 @@ __tests__ = (
"#comment" : "new image domain (#2204)", "#comment" : "new image domain (#2204)",
"#category": ("blogger", "blogspot", "post"), "#category": ("blogger", "blogspot", "post"),
"#class" : blogger.BloggerPostExtractor, "#class" : blogger.BloggerPostExtractor,
"#pattern" : "https://blogger.googleusercontent.com/img/a/.+=s0$", "#pattern" : r"https://blogger\.googleusercontent\.com/img/.+=s0$",
"#count" : 8, "#count" : 8,
}, },
@ -67,7 +67,7 @@ __tests__ = (
"#url" : "https://julianbphotography.blogspot.com/", "#url" : "https://julianbphotography.blogspot.com/",
"#category": ("blogger", "blogspot", "blog"), "#category": ("blogger", "blogspot", "blog"),
"#class" : blogger.BloggerBlogExtractor, "#class" : blogger.BloggerBlogExtractor,
"#pattern" : r"https://\d\.bp\.blogspot\.com/.*/s0/[^.]+\.jpg", "#pattern" : r"https://blogger\.googleusercontent\.com/img/.+/s0/",
"#range" : "1-25", "#range" : "1-25",
"#count" : 25, "#count" : 25,
}, },

View File

@ -308,7 +308,7 @@ __tests__ = (
"target" : dict, "target" : dict,
"thumbs" : list, "thumbs" : list,
"title" : "Banner", "title" : "Banner",
"url" : "https://sta.sh/0198jippkeys", "url" : "https://www.deviantart.com/stash/0198jippkeys",
"username" : "gdldev", "username" : "gdldev",
}, },
@ -589,7 +589,7 @@ __tests__ = (
"index" : int, "index" : int,
"index_base36": r"re:^[0-9a-z]+$", "index_base36": r"re:^[0-9a-z]+$",
"url" : r"re:^https://sta.sh", "url" : r"re:^https://www.deviantart.com/stash/\w+",
}, },
{ {

View File

@ -29,10 +29,11 @@ __tests__ = (
}, },
{ {
"#url" : "https://www.hentai-foundry.com/pictures/user/Evulchibi/scraps", "#url" : "https://www.hentai-foundry.com/pictures/user/Ethevian/scraps",
"#category": ("", "hentaifoundry", "scraps"), "#category": ("", "hentaifoundry", "scraps"),
"#class" : hentaifoundry.HentaifoundryScrapsExtractor, "#class" : hentaifoundry.HentaifoundryScrapsExtractor,
"#sha1_url": "7cd9c6ec6258c4ab8c44991f7731be82337492a7", "#pattern" : r"https://pictures\.hentai-foundry\.com/e/Ethevian/.+",
"#count" : ">= 10",
}, },
{ {

View File

@ -5,6 +5,7 @@
# published by the Free Software Foundation. # published by the Free Software Foundation.
from gallery_dl.extractor import hitomi from gallery_dl.extractor import hitomi
from gallery_dl import exception
__tests__ = ( __tests__ = (
@ -47,9 +48,7 @@ __tests__ = (
"#comment" : "gallery with 'broken' redirect", "#comment" : "gallery with 'broken' redirect",
"#category": ("", "hitomi", "gallery"), "#category": ("", "hitomi", "gallery"),
"#class" : hitomi.HitomiGalleryExtractor, "#class" : hitomi.HitomiGalleryExtractor,
"#options" : {"format": "original"}, "#exception": exception.NotFoundError,
"#pattern" : r"https://[a-c]b\.hitomi\.la/images/\d+/\d+/[0-9a-f]{64}\.jpg",
"#count" : 10,
}, },
{ {

View File

@ -89,11 +89,10 @@ __tests__ = (
}, },
{ {
"#url" : "https://kemono.party/gumroad/user/trylsc/post/IURjT", "#url" : "https://kemono.su/gumroad/user/3101696181060/post/tOWyf",
"#comment" : "kemono.party -> data.kemono.party",
"#category": ("", "kemonoparty", "gumroad"), "#category": ("", "kemonoparty", "gumroad"),
"#class" : kemonoparty.KemonopartyPostExtractor, "#class" : kemonoparty.KemonopartyPostExtractor,
"#pattern" : r"https://kemono\.party/data/(a4/7b/a47bfe938d8c1682eef06e885927484cd8df1b.+\.jpg|c6/04/c6048f5067fd9dbfa7a8be565ac194efdfb6e4.+\.zip)", "#urls" : "https://kemono.su/data/6f/13/6f1394b19516396ea520254350662c254bbea30c1e111fd4b0f042c61c426d07.zip",
}, },
{ {

View File

@ -82,9 +82,9 @@ __tests__ = (
"#class" : mastodon.MastodonFollowingExtractor, "#class" : mastodon.MastodonFollowingExtractor,
"#extractor": False, "#extractor": False,
"#urls" : ( "#urls" : (
"https://mastodon.ie/@RustyBertrand",
"https://ravenation.club/@soundwarrior20", "https://ravenation.club/@soundwarrior20",
"https://mastodon.social/@0x4f", "https://mastodon.social/@0x4f",
"https://mastodon.social/@RustyBertrand",
"https://mastodon.social/@christianselig", "https://mastodon.social/@christianselig",
"https://saturation.social/@clive", "https://saturation.social/@clive",
"https://mastodon.social/@sjvn", "https://mastodon.social/@sjvn",

View File

@ -21,7 +21,7 @@ __tests__ = (
"#url" : "https://misskey.design/@blooddj@pawoo.net", "#url" : "https://misskey.design/@blooddj@pawoo.net",
"#category": ("misskey", "misskey.design", "user"), "#category": ("misskey", "misskey.design", "user"),
"#class" : misskey.MisskeyUserExtractor, "#class" : misskey.MisskeyUserExtractor,
"#count" : 7, "#count" : "> 30",
}, },
{ {

View File

@ -12,7 +12,7 @@ __tests__ = (
"#url" : "https://myhentaigallery.com/g/16247", "#url" : "https://myhentaigallery.com/g/16247",
"#category": ("", "myhentaigallery", "gallery"), "#category": ("", "myhentaigallery", "gallery"),
"#class" : myhentaigallery.MyhentaigalleryGalleryExtractor, "#class" : myhentaigallery.MyhentaigalleryGalleryExtractor,
"#pattern" : r"https://images\.myhentaicomics\.com/m\w\w/images/[^/]+/original/\d+\.jpg", "#pattern" : r"https://(cdn|images)\.myhentaicomics\.com/m\w\w/images/[^/]+/original/\d+\.jpg",
"artist" : list, "artist" : list,
"count" : 11, "count" : 11,

View File

@ -109,7 +109,7 @@ __tests__ = (
"#category": ("", "naverwebtoon", "comic"), "#category": ("", "naverwebtoon", "comic"),
"#class" : naverwebtoon.NaverwebtoonComicExtractor, "#class" : naverwebtoon.NaverwebtoonComicExtractor,
"#pattern" : naverwebtoon.NaverwebtoonEpisodeExtractor.pattern, "#pattern" : naverwebtoon.NaverwebtoonEpisodeExtractor.pattern,
"#count" : 25, "#count" : 24,
}, },
{ {

View File

@ -15,11 +15,11 @@ __tests__ = (
}, },
{ {
"#url" : "https://www.omgmiamiswimwear.com/products/la-medusa-maxi-dress", "#url" : "https://www.omgmiamiswimwear.com/products/snatch-me-waist-belt",
"#category": ("shopify", "omgmiamiswimwear", "product"), "#category": ("shopify", "omgmiamiswimwear", "product"),
"#class" : shopify.ShopifyProductExtractor, "#class" : shopify.ShopifyProductExtractor,
"#pattern" : r"https://cdn\.shopify\.com/s/files/1/1819/6171/", "#pattern" : r"https://cdn\.shopify\.com/s/files/1/1819/6171/",
"#count" : 5, "#count" : 3,
}, },
) )

View File

@ -17,6 +17,7 @@ __tests__ = (
"categories": [ "categories": [
"Outdoor", "Outdoor",
"MILF", "MILF",
"Boots",
"Amateur", "Amateur",
"Sexy", "Sexy",
], ],

View File

@ -68,9 +68,8 @@ __tests__ = (
"#comment" : "Image post", "#comment" : "Image post",
"#category": ("postmill", "raddle", "post"), "#category": ("postmill", "raddle", "post"),
"#class" : postmill.PostmillPostExtractor, "#class" : postmill.PostmillPostExtractor,
"#sha1_url" : "48663f767ea258fcd545ab5aa0e734f98f434388",
"#sha1_content": "431e938082c2b59c44888a83cfc711cd1f0e910a", "#sha1_content": "431e938082c2b59c44888a83cfc711cd1f0e910a",
"#count" : 1, "#urls" : "https://uploads-cdn.raddle.me/submission_images/30f4cf7d235d40c1daebf6dc2e58bef2a80bec2b5b2dab10f2021ea8e3f29e11.png",
}, },
{ {
@ -79,7 +78,7 @@ __tests__ = (
"#category": ("postmill", "raddle", "post"), "#category": ("postmill", "raddle", "post"),
"#class" : postmill.PostmillPostExtractor, "#class" : postmill.PostmillPostExtractor,
"#options" : {"save-link-post-body": True}, "#options" : {"save-link-post-body": True},
"#pattern" : r"^(text:[\s\S]+|https://raddle\.me/submission_images/[0-9a-f]+\.png)$", "#pattern" : r"^(text:[\s\S]+|https://(uploads-cdn\.)?raddle\.me/submission_images/[0-9a-f]+\.png)$",
"#count" : 2, "#count" : 2,
}, },

View File

@ -46,6 +46,7 @@ __tests__ = (
"#class" : reddit.RedditHomeExtractor, "#class" : reddit.RedditHomeExtractor,
"#range" : "1-20", "#range" : "1-20",
"#count" : ">= 20", "#count" : ">= 20",
"#archive" : False,
}, },
{ {

View File

@ -5,22 +5,16 @@
# published by the Free Software Foundation. # published by the Free Software Foundation.
from gallery_dl.extractor import steamgriddb from gallery_dl.extractor import steamgriddb
from gallery_dl import exception
__tests__ = ( __tests__ = (
{ {
"#url" : "https://www.steamgriddb.com/grid/368023", "#url" : "https://www.steamgriddb.com/grid/368023",
"#comment" : "deleted",
"#category": ("", "steamgriddb", "asset"), "#category": ("", "steamgriddb", "asset"),
"#class" : steamgriddb.SteamgriddbAssetExtractor, "#class" : steamgriddb.SteamgriddbAssetExtractor,
"#urls" : ("https://cdn2.steamgriddb.com/grid/" "#exception": exception.NotFoundError,
"82fee171d62c044898d99ba0fddeb203.png"),
"#count" : 1,
"#sha1_content": "0bffaccae6f35f9fab529684a5b158d1cec4186b",
"game": {
"id" : 5259324,
"name": "Helltaker",
},
}, },
{ {

View File

@ -103,7 +103,7 @@ __tests__ = (
"date-max" : "2015-04-25T00:00:00", "date-max" : "2015-04-25T00:00:00",
"date-min" : "2015-04-01T00:00:00", "date-min" : "2015-04-01T00:00:00",
}, },
"#count" : 193, "#count" : 192,
}, },
{ {

View File

@ -44,7 +44,7 @@ __tests__ = (
"tag_ids" : list, "tag_ids" : list,
"tags" : list, "tags" : list,
"thumbnails_generated": True, "thumbnails_generated": True,
"updated_at" : "2023-12-25T06:58:33.986Z", "updated_at" : str,
"upvotes" : int, "upvotes" : int,
"view_url" : "https://cdn.twibooru.org/img/2020/7/8/1/full.png", "view_url" : "https://cdn.twibooru.org/img/2020/7/8/1/full.png",
"width" : 576, "width" : 576,

View File

@ -575,7 +575,7 @@ Youll be able to receive four Galarian form Pokémon with Hidden Abilities, p
"#category": ("", "twitter", "tweet"), "#category": ("", "twitter", "tweet"),
"#class" : twitter.TwitterTweetExtractor, "#class" : twitter.TwitterTweetExtractor,
"#options" : {"cards": True}, "#options" : {"cards": True},
"#pattern" : r"https://pbs.twimg.com/card_img/174\d+/[\w-]+\?format=(jpg|png)&name=orig$", "#pattern" : r"https://pbs.twimg.com/card_img/17\d+/[\w-]+\?format=(jpg|png)&name=orig$",
"#range" : "1,3", "#range" : "1,3",
}, },

View File

@ -57,22 +57,7 @@ __tests__ = (
"slug" : "red-wooden-cross-on-gray-concrete-pathway-between-green-trees-during-daytime-kaoHI0iHJPM", "slug" : "red-wooden-cross-on-gray-concrete-pathway-between-green-trees-during-daytime-kaoHI0iHJPM",
"sponsorship": None, "sponsorship": None,
"subcategory": "image", "subcategory": "image",
"tags" : [ "tags" : list,
"japan",
"hakone",
"神奈川県 日本",
"torii",
"shrine",
"traditional",
"sunrise",
"hakone shrine",
"wallpaper",
"grey",
"arbour",
"outdoors",
"garden",
"gate",
],
"tags_preview": list, "tags_preview": list,
"topic_submissions": {}, "topic_submissions": {},
"topics" : [], "topics" : [],
@ -114,7 +99,7 @@ __tests__ = (
"total_photos" : 86, "total_photos" : 86,
"total_promoted_photos": 24, "total_promoted_photos": 24,
"twitter_username" : None, "twitter_username" : None,
"updated_at" : "2023-11-27T07:10:52Z", "updated_at" : str,
"username" : "_______life_" "username" : "_______life_"
}, },
"views": range(2000000, 10000000), "views": range(2000000, 10000000),

View File

@ -47,13 +47,11 @@ __tests__ = (
}, },
{ {
"#url" : "https://vsco.co/vscotest39/spaces", "#url" : "https://vsco.co/missuri/spaces",
"#category": ("", "vsco", "spaces"), "#category": ("", "vsco", "spaces"),
"#class" : vsco.VscoSpacesExtractor, "#class" : vsco.VscoSpacesExtractor,
"#urls" : ( "#urls" : (
"https://vsco.co/spaces/62991a535a9ee215340fa2b0", "https://vsco.co/spaces/62e4934e6920440801d19f05",
"https://vsco.co/spaces/62b35bfb54f97cbfbd5c1e62",
"https://vsco.co/spaces/629674a6875ebddb8f1320c1",
), ),
}, },

View File

@ -12,7 +12,7 @@ __tests__ = (
"#url" : "https://xbooru.com/index.php?page=post&s=list&tags=konoyan", "#url" : "https://xbooru.com/index.php?page=post&s=list&tags=konoyan",
"#category": ("gelbooru_v02", "xbooru", "tag"), "#category": ("gelbooru_v02", "xbooru", "tag"),
"#class" : gelbooru_v02.GelbooruV02TagExtractor, "#class" : gelbooru_v02.GelbooruV02TagExtractor,
"#count" : 24, "#count" : 25,
}, },
{ {

View File

@ -12,7 +12,7 @@ __tests__ = (
"#url" : "https://xhamster.com/photos/gallery/take-me-to-the-carwash-at-digitaldesire-15860946", "#url" : "https://xhamster.com/photos/gallery/take-me-to-the-carwash-at-digitaldesire-15860946",
"#category": ("", "xhamster", "gallery"), "#category": ("", "xhamster", "gallery"),
"#class" : xhamster.XhamsterGalleryExtractor, "#class" : xhamster.XhamsterGalleryExtractor,
"#pattern" : r"https://ic-ph-ah\.xhcdn\.com/a/\w+/webp/000/\d+/\d+/\d+_1000\.jpg$", "#pattern" : r"https://ic-ph-\w+\.xhcdn\.com/a/\w+/webp/000/\d+/\d+/\d+_1000\.jpg$",
"#count" : 19, "#count" : 19,
"comments": int, "comments": int,
@ -58,7 +58,7 @@ __tests__ = (
"#url" : "https://jp.xhamster2.com/photos/gallery/take-me-to-the-carwash-at-digitaldesire-15860946", "#url" : "https://jp.xhamster2.com/photos/gallery/take-me-to-the-carwash-at-digitaldesire-15860946",
"#category": ("", "xhamster", "gallery"), "#category": ("", "xhamster", "gallery"),
"#class" : xhamster.XhamsterGalleryExtractor, "#class" : xhamster.XhamsterGalleryExtractor,
"#pattern" : r"https://ic-ph-ah\.xhcdn\.com/a/\w+/webp/000/\d+/\d+/\d+_1000\.jpg$", "#pattern" : r"https://ic-ph-\w+\.xhcdn\.com/a/\w+/webp/000/\d+/\d+/\d+_1000\.jpg$",
"#count" : 19, "#count" : 19,
}, },