ytdl-org/youtube-dl · error · ExtractorError
91 Porn says: Daily limit 10 videos exceeded
Error message
91 Porn says: Daily limit 10 videos exceeded
What it means
Porn91IE raises ExtractorError('91 Porn says: Daily limit 10 videos exceeded', expected=True) when the downloaded view_video.php page contains the Chinese notice '作为游客,你每天只可观看10个视频' ('as a guest you may only watch 10 videos per day'). The site rate-limits anonymous (cookie-less guest) viewers to 10 videos per day, and the extractor detects the notice text in the HTML. Expected=True means youtube-dl reports it as a site-side restriction, not a code bug.
Source
Thrown at youtube_dl/extractor/porn91.py:36
'md5': '7fcdb5349354f40d41689bd0fa8db05a',
'info_dict': {
'id': '7e42283b4f5ab36da134',
'title': '18岁大一漂亮学妹,水嫩性感,再爽一次!',
'ext': 'mp4',
'duration': 431,
'age_limit': 18,
}
}
def _real_extract(self, url):
video_id = self._match_id(url)
self._set_cookie('91porn.com', 'language', 'cn_CN')
webpage = self._download_webpage(
'http://91porn.com/view_video.php?viewkey=%s' % video_id, video_id)
if '作为游客,你每天只可观看10个视频' in webpage:
raise ExtractorError('91 Porn says: Daily limit 10 videos exceeded', expected=True)
title = self._search_regex(
r'<div id="viewvideo-title">([^<]+)</div>', webpage, 'title')
title = title.replace('\n', '')
video_link_url = self._search_regex(
r'<textarea[^>]+id=["\']fm-video_link[^>]+>([^<]+)</textarea>',
webpage, 'video link')
videopage = self._download_webpage(video_link_url, video_id)
info_dict = self._parse_html5_media_entries(url, videopage, video_id)[0]
duration = parse_duration(self._search_regex(
r'时长:\s*</span>\s*(\d+:\d+)', webpage, 'duration', fatal=False))
comment_count = int_or_none(self._search_regex(
r'留言:\s*</span>\s*(\d+)', webpage, 'comment count', fatal=False))
View on GitHub (pinned to 956b8c5855)
Solutions
- Wait until the daily quota resets (24h rolling window) before downloading more videos.
- Authenticate so requests count against an account with a higher limit instead of the guest pool.
- Throttle batch jobs to <=10 videos per day per IP, or split across days.
- Use a different egress IP if the limit is IP-based and the quota was consumed elsewhere.
Defensive patterns
Strategy: fallback
Try / catch
try:
info = ydl.extract_info(url)
except ExtractorError as e:
if 'Daily limit' in str(e):
queue.append(url) # retry after quota reset
... Prevention
- Cap batch jobs at 10 guest videos per day per IP.
- Catch this expected error and reschedule the URL for the next day instead of failing the run.
- Prefer authenticated sessions if supported to escape the guest pool.
When it happens
Trigger: Downloading an 11th 91porn.com view_video.php page within a day from the same visitor identity (IP / default cookie jar) without an authenticated session; the extractor sets language=cn_CN cookie first, so the Chinese notice is what gets matched.
Common situations: Batch-downloading playlists or many single videos from 91porn in one run; sharing an IP (NAT/proxy) so the guest quota is consumed by others; no login credentials configured so every request counts against the guest limit.
Related errors
AI-assisted analysis of ytdl-org/youtube-dl@956b8c5855 (2026-08-14).
Data as JSON: /api/errors/1393e260f67a0f56.
Report an issue: GitHub.