From f272b5d2ac6c7e6ab783727bed7e26d8e789c0dd 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 | 2 ++ 1 file changed, 2 insertions(+) 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="', '"'))