2 from __future__ import unicode_literals
4 from .common import InfoExtractor
7 class LearnrIE(InfoExtractor):
8 _VALID_URL = r'https?://(?:www\.)?learnr\.pro/view/video/(?P<id>[0-9]+)'
10 'url': 'http://www.learnr.pro/view/video/51624-web-development-tutorial-for-beginners-1-how-to-build-webpages-with-html-css-javascript',
11 'md5': '3719fdf0a68397f49899e82c308a89de',
15 'title': 'Web Development Tutorial for Beginners (#1) - How to build webpages with HTML, CSS, Javascript',
16 'description': 'md5:b36dbfa92350176cdf12b4d388485503',
17 'uploader': 'LearnCode.academy',
18 'uploader_id': 'learncodeacademy',
19 'upload_date': '20131021',
21 'add_ie': ['Youtube'],
24 def _real_extract(self, url):
25 video_id = self._match_id(url)
26 webpage = self._download_webpage(url, video_id)
29 '_type': 'url_transparent',
30 'url': self._search_regex(
31 r"videoId\s*:\s*'([^']+)'", webpage, 'youtube id'),