# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ExtractorError, clean_html, int_or_none, try_get, unified_strdate from ..compat import compat_str class DamtomoBaseIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) webpage, handle = self._download_webpage_handle(self._WEBPAGE_URL_TMPL % video_id, video_id, encoding='sjis') if handle.url == 'https://www.clubdam.com/sorry/': raise ExtractorError('You are rate-limited. Try again later.', expected=True) if '