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'),