# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import remove_end class PeekVidsIE(InfoExtractor): _VALID_URL = r'''(?x) https?://(?:www\.)?peekvids\.com/ (?:(?:[^/?#]+/){2}|embed/?\?(?:[^#]*&)?v=) (?P[^/?&#]*) ''' _TESTS = [{ 'url': 'https://peekvids.com/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp/BSyLMbN0YCd', 'md5': '2ff6a357a9717dc9dc9894b51307e9a2', 'info_dict': { 'id': 'BSyLMbN0YCd', 'ext': 'mp4', 'title': 'Dane Jones - Cute redhead with perfect tits with Mini Vamp', 'age_limit': 18, }, }] _DOMAIN = 'www.peekvids.com' def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) short_video_id = self._html_search_regex(r'