]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/keek.py
3 from .common
import InfoExtractor
6 class KeekIE(InfoExtractor
):
7 _VALID_URL
= r
'http://(?:www\.)?keek\.com/(?:!|\w+/keeks/)(?P<videoID>\w+)'
10 def _real_extract(self
, url
):
11 m
= re
.match(self
._VALID
_URL
, url
)
12 video_id
= m
.group('videoID')
14 video_url
= u
'http://cdn.keek.com/keek/video/%s' % video_id
15 thumbnail
= u
'http://cdn.keek.com/keek/thumbnail/%s/w100/h75' % video_id
16 webpage
= self
._download
_webpage
(url
, video_id
)
18 video_title
= self
._html
_search
_regex
(r
'<meta property="og:title" content="(?P<title>.*?)"',
21 uploader
= self
._html
_search
_regex
(r
'<div class="user-name-and-bio">[\S\s]+?<h2>(?P<uploader>.+?)</h2>',
22 webpage
, u
'uploader', fatal
=False)
29 'thumbnail': thumbnail
,