]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/savefrom.py
2 from __future__
import unicode_literals
7 from .common
import InfoExtractor
10 class SaveFromIE(InfoExtractor
):
11 IE_NAME
= 'savefrom.net'
12 _VALID_URL
= r
'https?://[^.]+\.savefrom\.net/\#url=(?P<url>.*)$'
15 'url': 'http://en.savefrom.net/#url=http://youtube.com/watch?v=UlVRAPW2WJY&utm_source=youtube.com&utm_medium=short_domains&utm_campaign=ssyoutube.com',
19 'title': 'About Team Radical MMA | MMA Fighting',
20 'upload_date': '20120816',
21 'uploader': 'Howcast',
22 'uploader_id': 'Howcast',
23 'description': 're:(?s).* Hi, my name is Rene Dreifuss\. And I\'m here to show you some MMA.*',
30 def _real_extract(self
, url
):
31 mobj
= re
.match(self
._VALID
_URL
, url
)
32 video_id
= os
.path
.splitext(url
.split('/')[-1])[0]
36 'url': mobj
.group('url'),