From 389657b9869db0816601ace67cfe2175e57b3478 Mon Sep 17 00:00:00 2001 From: Dante Date: Thu, 2 Apr 2020 19:12:11 -0700 Subject: [PATCH] ixigua_code_basic --- youtube_dl/extractor/ixigua.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 youtube_dl/extractor/ixigua.py diff --git a/youtube_dl/extractor/ixigua.py b/youtube_dl/extractor/ixigua.py new file mode 100644 index 000000000..ec8fec847 --- /dev/null +++ b/youtube_dl/extractor/ixigua.py @@ -0,0 +1,31 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + + + +class SonumaIE(InfoExtractor): + + _VALID_URL = r'https://www\.sonuma\.be/archive/\S+' + + def _real_extract(self, url): + video_id = self._match_id(url) + + webpage = self._download_webpage( + url, video_id + ) + + title = self._html_search_regex(r'(.+?)', webpage, 'title') + + download_url = self._html_search_regex( + + r'(https://cdn\.acidcow\.com/pics/[0-9]+/video/\S+\.mp4)', + + webpage, "download_url" + ) + return { + 'id': video_id, + 'url': download_url, + 'title': title + } \ No newline at end of file