fundoradoutil

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 fundoradoutil scrapes Fundorado white-label VOD sites, a React shell over api.fundorado.com. A site row names the host and the label ids that make up its catalogue; the API serves them through /api/videos/browse/{kind}/{id}.

Index

Constants

View Source
const (
	DefaultAPIBase = "https://api.fundorado.com"

	// RecommendedDelay keeps a pooled walk under the API's 240 requests a
	// minute per IP, past which it answers 429 with a Retry-After of ~25s.
	RecommendedDelay = 300 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scraper

type Scraper struct {
	Client  *http.Client
	APIBase string
	// 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
	Host       string // bare domain, no www
	StudioName string
	Labels     []int // label ids walked for the site root
}

Jump to

Keyboard shortcuts

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