[imgspot] add extractor

pull/13/head
Mike Fährmann 8 years ago
parent c85adbdc9d
commit 5f2824dfe6
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -165,6 +165,17 @@ class ImguploadImageExtractor(HosturimageImageExtractor):
https = True
class ImgspotImageExtractor(ImagehostImageExtractor):
"""Extractor for single images from imgspot.org"""
category = "imgspot"
pattern = [r"(?:https?://)?((?:www\.)?imgspot\.org/img-([a-z0-9]+)\.html)"]
https = False
def get_info(self, page):
url = text.extract(page, "<img class='centred_resized' src='", "'")[0]
return url, url
class ImagetwistImageExtractor(ImagehostImageExtractor):
"""Extractor for single images from imagetwist.com"""
category = "imagetwist"

Loading…
Cancel
Save