diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 8beeb107..e2852fd9 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -487,6 +487,12 @@ Consider all listed sites to potentially be NSFW. individual Images + + ImgTaxi.com + https://imgtaxi.com/ + individual Images + + imgth https://imgth.com/ diff --git a/gallery_dl/extractor/imagehosts.py b/gallery_dl/extractor/imagehosts.py index 2fad3f2f..52bb7081 100644 --- a/gallery_dl/extractor/imagehosts.py +++ b/gallery_dl/extractor/imagehosts.py @@ -417,3 +417,12 @@ class ImgdriveImageExtractor(ImagehostImageExtractor): url , pos = text.extract( page, 'property="og:image" content="', '"', pos) return url.replace("/small/", "/big/"), title.rsplit(" | ", 2)[0] + + +class ImgtaxiImageExtractor(ImagehostImageExtractor): + """Extractor for single images from imgtaxi.com""" + category = "imgtaxi" + pattern = r"(?:https?://)?((?:www\.)?imgtaxi\.com/img-(\w+)\.html)" + example = "https://imgtaxi.com/img-0123456789abc.html" + + get_info = ImgdriveImageExtractor.get_info diff --git a/scripts/supportedsites.py b/scripts/supportedsites.py index c904a55b..6a934693 100755 --- a/scripts/supportedsites.py +++ b/scripts/supportedsites.py @@ -86,6 +86,7 @@ CATEGORY_MAP = { "imagechest" : "ImageChest", "imgdrive" : "ImgDrive.net", "imgkiwi" : "IMG.Kiwi", + "imgtaxi" : "ImgTaxi.com", "imgth" : "imgth", "imgur" : "imgur", "imhentai" : "IMHentai", diff --git a/test/results/imgtaxi.py b/test/results/imgtaxi.py new file mode 100644 index 00000000..8f979b5c --- /dev/null +++ b/test/results/imgtaxi.py @@ -0,0 +1,22 @@ +# -*- 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 imagehosts + + +__tests__ = ( +{ + "#url" : "https://imgtaxi.com/img-61c71cea940d6.html", + "#category": ("imagehost", "imgtaxi", "image"), + "#class" : imagehosts.ImgtaxiImageExtractor, + "#results" : "https://imgtaxi.com/images/big/2021/12/25/61c71cea940d5.jpg", + + "filename" : "SLn_0001", + "extension": "jpg", + "token" : "61c71cea940d6", +}, + +)