-
-class CrooksAndLiarsArticleIE(InfoExtractor):
- _VALID_URL = r'(?:https?:)?//crooksandliars.com/\d+/\d+/(?P<id>[a-z\-]+)(?:/|$)'
-
- _TESTS = [{
- 'url': 'http://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists',
- 'only_matching': True,
- }]
-
- def _real_extract(self, url):
- video_id = self._match_id(url)
- webpage = self._download_webpage(url, video_id)
- player_url = self._proto_relative_url(self._html_search_regex(r'<iframe src="(//embed.crooksandliars.com/.*)"', webpage, 'embedded player'))
-
- return {
- '_type': 'url',
- 'url': player_url
- }