Goon — self-hosted aggregator for adult-content scene metadata. Indexes scenes from TPDB, StashDB, and 30+ public adult tube sites. Cross-source deduplication via perceptual hash + Levenshtein distance. FastAPI backend + APScheduler worker + React Native (Expo) mobile client. FOSS, ad-free, donation-funded. See README for details.
19 lines
545 B
Python
19 lines
545 B
Python
"""porn4days.pw — direct HTML scrape.
|
|
|
|
Search: `https://porn4days.pw/page/<n>/?s=<q>`.
|
|
Scene URL: `https://porn4days.pw/<slug>/`.
|
|
"""
|
|
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="(?P<url>https://porn4days\.pw/(?P<slug>[a-z0-9][a-z0-9\-]+))/"',
|
|
re.IGNORECASE,
|
|
)
|