extractor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractOptions

type ExtractOptions struct {
	Format          string
	IncludeMetadata bool
	UseJS           *bool // nil = auto, true = force, false = disable
	Timeout         time.Duration
}

type ExtractResult

type ExtractResult struct {
	URL            string
	Title          string
	Content        string
	UsedJavaScript bool
	ProcessingTime time.Duration
	ContentLength  int
	Metadata       map[string]string
}

type Extractor

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

func New

func New(cfg *config.Config) *Extractor

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, url string, opts ExtractOptions) (*ExtractResult, error)

Jump to

Keyboard shortcuts

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