caribbeancom

package
v0.3.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaribbeancomConfig

type CaribbeancomConfig struct {
	config.BaseScraperConfig `yaml:",inline"`
	Language                 string `yaml:"language" json:"language"`
	BaseURL                  string `yaml:"base_url" json:"base_url"`
}

func (*CaribbeancomConfig) ValidateConfig

func (c *CaribbeancomConfig) ValidateConfig(sc *config.ScraperSettings) error

type Scraper

type Scraper struct {
	// contains filtered or unexported fields
}

Scraper implements the Caribbeancom scraper.

func New

func New(settings config.ScraperSettings, globalProxy *config.ProxyConfig, globalFlareSolverr config.FlareSolverrConfig) *Scraper

New creates a new Caribbeancom scraper.

func (*Scraper) CanHandleURL

func (s *Scraper) CanHandleURL(rawURL string) bool

ResolveSearchQuery normalizes Caribbeancom-style IDs from free-form input.

func (*Scraper) Close

func (s *Scraper) Close() error

Close cleans up resources held by the scraper

func (*Scraper) Config

func (s *Scraper) Config() *config.ScraperSettings

Config returns the scraper's configuration

func (*Scraper) ExtractIDFromURL

func (s *Scraper) ExtractIDFromURL(urlStr string) (string, error)

func (*Scraper) GetURL

func (s *Scraper) GetURL(id string) (string, error)

func (*Scraper) IsEnabled

func (s *Scraper) IsEnabled() bool

IsEnabled returns whether scraper is enabled.

func (*Scraper) Name

func (s *Scraper) Name() string

Name returns scraper identifier.

func (*Scraper) ResolveDownloadProxyForHost

func (s *Scraper) ResolveDownloadProxyForHost(host string) (*config.ProxyConfig, *config.ProxyConfig, bool)

ResolveDownloadProxyForHost declares Caribbeancom-owned media hosts for downloader proxy routing.

func (*Scraper) ResolveSearchQuery

func (s *Scraper) ResolveSearchQuery(input string) (string, bool)

func (*Scraper) ScrapeURL

func (s *Scraper) ScrapeURL(ctx context.Context, rawURL string) (*models.ScraperResult, error)

func (*Scraper) Search

func (s *Scraper) Search(ctx context.Context, id string) (*models.ScraperResult, error)

Search scrapes metadata from Caribbeancom.

Jump to

Keyboard shortcuts

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