diff options
author | Ashish Gupta <39122144+Ashish0804@users.noreply.github.com> | 2022-06-08 04:06:46 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 15:36:46 -0700 |
commit | c82a4a8fcef33bdeb68da8149c1f687de148778c (patch) | |
tree | 8e2b7892380e80b34e283f5f79ea26baaa8cf2aa | |
parent | 6e7c9201cdc510ba2fedf976438a748fd7da32b9 (diff) | |
download | hypervideo-pre-c82a4a8fcef33bdeb68da8149c1f687de148778c.tar.lz hypervideo-pre-c82a4a8fcef33bdeb68da8149c1f687de148778c.tar.xz hypervideo-pre-c82a4a8fcef33bdeb68da8149c1f687de148778c.zip |
[extractor/atscaleconfevent] Add extractor (#3971)
Closes #3961
Authored by: Ashish0804
-rw-r--r-- | yt_dlp/extractor/atscaleconf.py | 34 | ||||
-rw-r--r-- | yt_dlp/extractor/extractors.py | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/yt_dlp/extractor/atscaleconf.py b/yt_dlp/extractor/atscaleconf.py new file mode 100644 index 000000000..3f7b1e9f8 --- /dev/null +++ b/yt_dlp/extractor/atscaleconf.py @@ -0,0 +1,34 @@ +import re + +from .common import InfoExtractor + + +class AtScaleConfEventIE(InfoExtractor): + _VALID_URL = r'https?://(?:www\.)?atscaleconference\.com/events/(?P<id>[^/&$?]+)' + + _TESTS = [{ + 'url': 'https://atscaleconference.com/events/data-scale-spring-2022/', + 'playlist_mincount': 13, + 'info_dict': { + 'id': 'data-scale-spring-2022', + 'title': 'Data @Scale Spring 2022', + 'description': 'md5:7d7ca1c42ac9c6d8a785092a1aea4b55' + }, + }, { + 'url': 'https://atscaleconference.com/events/video-scale-2021/', + 'playlist_mincount': 14, + 'info_dict': { + 'id': 'video-scale-2021', + 'title': 'Video @Scale 2021', + 'description': 'md5:7d7ca1c42ac9c6d8a785092a1aea4b55' + }, + }] + + def _real_extract(self, url): + id = self._match_id(url) + webpage = self._download_webpage(url, id) + + return self.playlist_from_matches( + re.findall(r'data-url\s*=\s*"(https?://(?:www\.)?atscaleconference\.com/videos/[^"]+)"', webpage), + ie='Generic', playlist_id=id, + title=self._og_search_title(webpage), description=self._og_search_description(webpage)) diff --git a/yt_dlp/extractor/extractors.py b/yt_dlp/extractor/extractors.py index 403aee1c6..08b7f6c29 100644 --- a/yt_dlp/extractor/extractors.py +++ b/yt_dlp/extractor/extractors.py @@ -99,6 +99,7 @@ from .asiancrush import ( AsianCrushPlaylistIE, ) from .atresplayer import AtresPlayerIE +from .atscaleconf import AtScaleConfEventIE from .atttechchannel import ATTTechChannelIE from .atvat import ATVAtIE from .audimedia import AudiMediaIE |