1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

merge #5730: [speakerdeck] fix extraction

This commit is contained in:
Mike Fährmann 2024-06-13 15:55:57 +02:00
commit a92c0bef96
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -10,6 +10,7 @@
from .common import Extractor, Message
from .. import text
import re
class SpeakerdeckPresentationExtractor(Extractor):
@ -60,4 +61,5 @@ class SpeakerdeckPresentationExtractor(Extractor):
"""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="', '"'))