_sedefaults

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoGetRequest

func DoGetRequest(urll string, anonurll string, colCtx *colly.Context, collector *colly.Collector, packageName engines.Name) error

func DoPostRequest

func DoPostRequest(urll string, requestData io.Reader, colCtx *colly.Context, collector *colly.Collector, packageName engines.Name) error

func FieldsFromDOM added in v0.12.1

func FieldsFromDOM(dom *goquery.Selection, dompaths engines.DOMPaths, seName engines.Name) (string, string, string)

Fetches from DOM via dompaths and sanitizes. Returns (url, title, description).

func InitializeCollectors

func InitializeCollectors(ctx context.Context, engineName engines.Name, options engines.Options, settings config.Settings, timings config.CategoryTimings, relay *bucket.Relay) (*colly.Collector, *colly.Collector)

func PageFromContext

func PageFromContext(ctx *colly.Context, seName engines.Name) int

func Prepare

func Prepare(ctx context.Context, info engines.Info, support engines.SupportedSettings, options engines.Options, settings config.Settings) (context.Context, error)

func RawFieldsFromDOM added in v0.12.1

func RawFieldsFromDOM(dom *goquery.Selection, dompaths engines.DOMPaths, seName engines.Name) (string, string, string)

Fetches from DOM via dompaths. Returns (url, title, description).

func SanitizeDescription added in v0.12.1

func SanitizeDescription(descText string) string

func SanitizeFields added in v0.12.1

func SanitizeFields(linkText string, titleText string, descText string) (string, string, string)

func SanitizeTitle added in v0.12.1

func SanitizeTitle(titleText string) string

func SanitizeURL added in v0.12.1

func SanitizeURL(urlText string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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