2 from __future__ import unicode_literals
4 from .common import InfoExtractor
7 class LocalNews8IE(InfoExtractor):
8 _VALID_URL = r'https?://(?:www\.)?localnews8\.com/.+?/(?P<id>[0-9]+)'
10 'url': 'http://www.localnews8.com/news/rexburg-business-turns-carbon-fiber-scraps-into-wedding-rings/35183304',
11 'md5': '477bdb188f177788c65db27ecb56649b',
15 'title': 'Rexburg business turns carbon fiber scraps into wedding ring',
16 'description': 'The process was first invented by Lamborghini and less than a dozen companies around the world use it.',
18 'timestamp': '1441844822',
22 def _real_extract(self, url):
23 video_id = self._match_id(url)
24 webpage = self._download_webpage(url, video_id)
26 partner_id = self._search_regex(r'partnerId\s*:\s*"(\d+)"', webpage, video_id)
27 kaltura_id = self._search_regex(r'var\s+videoIdString\s*=\s*"kaltura:(.+)";', webpage, video_id)
29 return self.url_result('kaltura:%s:%s' % (partner_id, kaltura_id), 'Kaltura')