]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/keek.py
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
8 class KeekIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://(?:www\.)?keek\.com/keek/(?P<id>\w+)'
12 'url': 'https://www.keek.com/keek/NODfbab',
13 'md5': '9b0636f8c0f7614afa4ea5e4c6e57e83',
17 'title': 'test chars: "\'/\\ä<>This is a test video for youtube-dl.For more information, contact phihag@phihag.de . - Video - Videos on Keek',
18 'description': 'test chars: "\'/\\ä<>This is a test video for youtube-dl.For more information, contact phihag@phihag.de .',
20 'uploader_id': 'eGT5bab',
24 def _real_extract(self
, url
):
25 video_id
= self
._match
_id
(url
)
27 webpage
= self
._download
_webpage
(url
, video_id
)
28 uploader
= uploader_id
= None
29 matches
= re
.search(r
'data-username="(?P<uploader>[^"]+)"[^>]*data-user-id="(?P<uploader_id>[^"]+)"', webpage
)
31 uploader
, uploader_id
= matches
.groups()
35 'url': self
._og
_search
_video
_url
(webpage
),
37 'title': self
._og
_search
_title
(webpage
),
38 'description': self
._og
_search
_description
(webpage
),
39 'thumbnail': self
._og
_search
_thumbnail
(webpage
),
41 'uploader_id': uploader_id
,