2 from __future__ import unicode_literals
4 from .anvato import AnvatoIE
7 class FOX9IE(AnvatoIE):
8 _VALID_URL = r'https?://(?:www\.)?fox9\.com/(?:[^/]+/)+(?P<id>\d+)-story'
10 'url': 'http://www.fox9.com/news/215123287-story',
11 'md5': 'd6e1b2572c3bab8a849c9103615dd243',
15 'title': 'Bear climbs tree in downtown Duluth',
16 'description': 'md5:6a36bfb5073a411758a752455408ac90',
18 'timestamp': 1478123580,
19 'upload_date': '20161102',
21 'categories': ['News', 'Sports'],
22 'tags': ['news', 'video'],
25 'url': 'http://www.fox9.com/news/investigators/214070684-story',
26 'only_matching': True,
29 def _real_extract(self, url):
30 video_id = self._match_id(url)
32 webpage = self._download_webpage(url, video_id)
34 video_id = self._parse_json(
36 r"this\.videosJson\s*=\s*'(\[.+?\])';",
37 webpage, 'anvato playlist'),
40 return self._get_anvato_videos(
41 'anvato_epfox_app_web_prod_b3373168e12f423f41504f207000188daf88251b',