]>
jfr.im git - yt-dlp.git/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': 'md5:727900f130df3dc9a25e2721497c7910',
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'),