[imgwallet] add 'image' extractor (#8021)
This commit is contained in:
@@ -505,6 +505,12 @@ Consider all listed sites to potentially be NSFW.
|
||||
<td>Albums, Favorites, Favorites Folders, Galleries, individual Images, Personal Posts, Search Results, Subreddits, Tag Searches, User Profiles</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ImgWallet.com</td>
|
||||
<td>https://imgwallet.com/</td>
|
||||
<td>individual Images</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Imxto</td>
|
||||
<td>https://imx.to/</td>
|
||||
|
||||
@@ -428,6 +428,15 @@ class ImgtaxiImageExtractor(ImagehostImageExtractor):
|
||||
get_info = ImgdriveImageExtractor.get_info
|
||||
|
||||
|
||||
class ImgwalletImageExtractor(ImagehostImageExtractor):
|
||||
"""Extractor for single images from imgwallet.com"""
|
||||
category = "imgwallet"
|
||||
pattern = r"(?:https?://)?((?:www\.)?imgwallet\.com/img-(\w+)\.html)"
|
||||
example = "https://imgwallet.com/img-0123456789abc.html"
|
||||
|
||||
get_info = ImgdriveImageExtractor.get_info
|
||||
|
||||
|
||||
class SilverpicImageExtractor(ImagehostImageExtractor):
|
||||
"""Extractor for single images from silverpic.com"""
|
||||
category = "silverpic"
|
||||
|
||||
@@ -89,6 +89,7 @@ CATEGORY_MAP = {
|
||||
"imgtaxi" : "ImgTaxi.com",
|
||||
"imgth" : "imgth",
|
||||
"imgur" : "imgur",
|
||||
"imgwallet" : "ImgWallet.com",
|
||||
"imhentai" : "IMHentai",
|
||||
"joyreactor" : "JoyReactor",
|
||||
"itchio" : "itch.io",
|
||||
|
||||
22
test/results/imgwallet.py
Normal file
22
test/results/imgwallet.py
Normal file
@@ -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://imgwallet.com/img-62fd3045ceec6.html",
|
||||
"#category": ("imagehost", "imgwallet", "image"),
|
||||
"#class" : imagehosts.ImgwalletImageExtractor,
|
||||
"#results" : "https://imgwallet.com/images/big/2022/08/17/62fd3045ceec5.JPG",
|
||||
|
||||
"filename" : "S0ph (1)",
|
||||
"extension": "jpg",
|
||||
"token" : "62fd3045ceec6",
|
||||
},
|
||||
|
||||
)
|
||||
Reference in New Issue
Block a user