]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/keek.py
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
7 class KeekIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?keek\.com/keek/(?P<id>\w+)'
11 'url': 'https://www.keek.com/keek/NODfbab',
12 'md5': '9b0636f8c0f7614afa4ea5e4c6e57e83',
16 'title': 'md5:35d42050a3ece241d5ddd7fdcc6fd896',
18 'uploader_id': 'eGT5bab',
22 def _real_extract(self
, url
):
23 video_id
= self
._match
_id
(url
)
25 webpage
= self
._download
_webpage
(url
, video_id
)
29 'url': self
._og
_search
_video
_url
(webpage
),
31 'title': self
._og
_search
_description
(webpage
).strip(),
32 'thumbnail': self
._og
_search
_thumbnail
(webpage
),
33 'uploader': self
._search
_regex
(
34 r
'data-username=(["\'])(?P
<uploader
>.+?
)\
1', webpage,
35 'uploader
', fatal=False, group='uploader
'),
36 'uploader_id
': self._search_regex(
37 r'data
-user
-id=(["\'])(?P<uploader_id>.+?)\1', webpage,
38 'uploader id', fatal=False, group='uploader_id'),