]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/extremetube.py
1 from __future__
import unicode_literals
3 from ..utils
import str_to_int
4 from .keezmovies
import KeezMoviesIE
7 class ExtremeTubeIE(KeezMoviesIE
):
8 _VALID_URL
= r
'https?://(?:www\.)?extremetube\.com/(?:[^/]+/)?video/(?P<id>[^/#?&]+)'
10 'url': 'http://www.extremetube.com/video/music-video-14-british-euro-brit-european-cumshots-swallow-652431',
11 'md5': '1fb9228f5e3332ec8c057d6ac36f33e0',
13 'id': 'music-video-14-british-euro-brit-european-cumshots-swallow-652431',
15 'title': 'Music Video 14 british euro brit european cumshots swallow',
16 'uploader': 'unknown',
21 'url': 'http://www.extremetube.com/gay/video/abcde-1234',
22 'only_matching': True,
24 'url': 'http://www.extremetube.com/video/latina-slut-fucked-by-fat-black-dick',
25 'only_matching': True,
27 'url': 'http://www.extremetube.com/video/652431',
28 'only_matching': True,
31 def _real_extract(self
, url
):
32 webpage
, info
= self
._extract
_info
(url
)
35 info
['title'] = self
._search
_regex
(
36 r
'<h1[^>]+title="([^"]+)"[^>]*>', webpage
, 'title')
38 uploader
= self
._html
_search
_regex
(
39 r
'Uploaded by:\s*</strong>\s*(.+?)\s*</div>',
40 webpage
, 'uploader', fatal
=False)
41 view_count
= str_to_int(self
._search
_regex
(
42 r
'Views:\s*</strong>\s*<span>([\d,\.]+)</span>',
43 webpage
, 'view count', fatal
=False))
47 'view_count': view_count
,