diff --git a/gallery_dl/extractor/speakerdeck.py b/gallery_dl/extractor/speakerdeck.py index e44fdae710..c4ef723f0a 100644 --- a/gallery_dl/extractor/speakerdeck.py +++ b/gallery_dl/extractor/speakerdeck.py @@ -10,6 +10,7 @@ from .common import Extractor, Message from .. import text +import re class SpeakerdeckPresentationExtractor(Extractor): @@ -60,4 +61,5 @@ def get_image_urls(self): """Extract and return a list of all image-urls""" page = self.request("https://speakerdeck.com/player/" + self.presentation_id).text + page = re.sub(r"\s+", " ", page) return list(text.extract_iter(page, 'js-sd-slide" data-url="', '"'))