pervcityutil

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package pervcityutil is the shared scraper for the PervCity network — three anal-focused sites (pervcity.com, analoverdose.com, upherasshole.com) running the same NATS/ElevatedX "videoBlock" tour template. Every scene's metadata (title, performers, date, runtime, description, thumbnail) is published on the listing card, so there is no per-scene detail fetch: the card is parsed in full into a models.Scene.

The sites are structurally identical except for two things, both captured in SiteConfig: the bare domain/host, and the page-1 listing path stem ("updates" on pervcity.com, "movies" on the other two). The listing URL is "{Host}/categories/{PathStem}_{N}_d.html" with a 1-based page number; the markup of an individual card varies slightly between sites (heading tag, presence of a date/description block, runtime suffix), so the card parser is written to tolerate those differences rather than assume a fixed shape.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scraper

type Scraper struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func New

func New(cfg SiteConfig) *Scraper

func (*Scraper) ID

func (s *Scraper) ID() string

func (*Scraper) ListScenes

func (s *Scraper) ListScenes(ctx context.Context, studioURL string, opts scraper.ListOpts) (<-chan scraper.SceneResult, error)

func (*Scraper) MatchesURL

func (s *Scraper) MatchesURL(u string) bool

func (*Scraper) Patterns

func (s *Scraper) Patterns() []string

type SiteConfig

type SiteConfig struct {
	SiteID     string
	Domain     string // bare domain, e.g. "pervcity.com"
	Host       string // full base, e.g. "https://pervcity.com"
	StudioName string
	PathStem   string // listing path stem, e.g. "updates" or "movies"
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL