From 230c018fcfb005581b34e941eb2c9905606f99bd Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Thu, 13 Jun 2024 20:22:12 +0900 Subject: [PATCH] fix: extractor for speakerdeck.com --- gallery_dl/extractor/speakerdeck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/speakerdeck.py b/gallery_dl/extractor/speakerdeck.py index e44fdae7109..16292fac66c 100644 --- a/gallery_dl/extractor/speakerdeck.py +++ b/gallery_dl/extractor/speakerdeck.py @@ -8,6 +8,8 @@ """Extractors for https://speakerdeck.com/""" +import re + from .common import Extractor, Message from .. import text @@ -60,4 +62,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.replace("\n", " ")) return list(text.extract_iter(page, 'js-sd-slide" data-url="', '"'))