Skip to content

Commit

Permalink
fix: extractor for speakerdeck.com
Browse files Browse the repository at this point in the history
  • Loading branch information
shirayu committed Jun 13, 2024
1 parent c6fc028 commit 230c018
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gallery_dl/extractor/speakerdeck.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

"""Extractors for https://speakerdeck.com/"""

import re

from .common import Extractor, Message
from .. import text

Expand Down Expand Up @@ -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="', '"'))

0 comments on commit 230c018

Please sign in to comment.