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
575 B
Python
19 lines
575 B
Python
"""XHamster.com — direct HTML scrape search results.
|
|
|
|
Search: `https://xhamster.com/search/<q>?page=<n>`
|
|
Scene URL: `https://xhamster.com/videos/<slug>-<id>`
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import re
|
|
|
|
from app.connectors.direct_scrapers._search_base import BaseSearchScraper
|
|
|
|
|
|
class XHamsterScraper(BaseSearchScraper):
|
|
sitetag = "xhamstercom"
|
|
_search_url_template = "https://xhamster.com/search/{query}?page={page}"
|
|
_scene_url_re = re.compile(
|
|
r'href="(?P<url>https://xhamster\.com/videos/(?P<slug>[a-z0-9_\-]+))"',
|
|
re.IGNORECASE,
|
|
)
|