"""porn4days.pw — direct HTML scrape. Search: `https://porn4days.pw/page//?s=`. Scene URL: `https://porn4days.pw//`. """ from __future__ import annotations import re from app.connectors.direct_scrapers._search_base import BaseSearchScraper class Porn4DaysScraper(BaseSearchScraper): sitetag = "porn4dayspw" _search_url_template = "https://porn4days.pw/page/{page}/?s={query}" _scene_url_re = re.compile( r'href="(?Phttps://porn4days\.pw/(?P[a-z0-9][a-z0-9\-]+))/"', re.IGNORECASE, )