lux

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

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

Extractor implements the extractor.Extractor interface using lux library

func GetAllExtractors

func GetAllExtractors() []*Extractor

GetAllExtractors returns all available lux-based extractors

func GetExtractorBySite

func GetExtractorBySite(siteName string) *Extractor

GetExtractorBySite returns an extractor for a specific site

func NewExtractor

func NewExtractor(siteName string, hosts []string) *Extractor

NewExtractor creates a new lux-based extractor for a specific site

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, url string) (*models.Media, error)

Extract extracts media from the URL using lux

func (*Extractor) Hosts

func (e *Extractor) Hosts() []string

Hosts returns the supported hosts

func (*Extractor) Name

func (e *Extractor) Name() string

Name returns the extractor name

Jump to

Keyboard shortcuts

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