[imgtrex] remove extractor - domain no longer exists

This commit is contained in:
Mike Fährmann
2017-02-05 16:54:04 +01:00
parent 21e0dfbe20
commit 7880cc1ad7
2 changed files with 2 additions and 19 deletions

View File

@@ -26,8 +26,8 @@ class HentaifoundryUserExtractor(Extractor):
]
test = [
("http://www.hentai-foundry.com/pictures/user/Tenpura", {
"url": "95d44a26498ae4a73963e6fd03ea5e0e624f14a0",
"keyword": "6937c20b3afe5a0af741cc1c419994dd041c8395",
"url": "20100bca8e31c172f9034157a9833d5af2a9c097",
"keyword": "cd15dcfc0f5ddc259ce0752105f30f66c1895c28",
}),
("http://www.hentai-foundry.com/user/asdq/profile", {
"exception": exception.NotFoundError,

View File

@@ -279,23 +279,6 @@ class ImgspiceImageExtractor(ImagehostImageExtractor):
return "http://img" + url, text.unescape(filename)
class ImgtrexImageExtractor(ImagehostImageExtractor):
"""Extractor for single images from imgtrex.com"""
category = "imgtrex"
pattern = [r"(?:https?://)?((?:www\.)?imgtrex\.com/([^/]+))"]
test = [("http://imgtrex.com/im0ypxq0rke4/test-テスト-&<a>.png", {
"url": "c000618bddda42bd599a590b7972c7396d19d8fe",
"keyword": "58905795a9cd3f17d5ff024fc4d63645795ba23c",
"content": "0c8768055e4e20e7c7259608b67799171b691140",
})]
params = None
def get_info(self, page):
filename, pos = text.extract(page, '<title>ImgTrex: ', '</title>')
url , pos = text.extract(page, '<br>\n<img src="', '"', pos)
return url, filename
class PixhostImageExtractor(ImagehostImageExtractor):
"""Extractor for single images from pixhost.org"""
category = "pixhost"