parse

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldsFromDOM

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

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

func ParseTextWithHTML

func ParseTextWithHTML(rawHTML string) string

func ParseURL

func ParseURL(rawURL string) string

func RawFieldsFromDOM

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

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

func SanitizeDescription

func SanitizeDescription(descText string) string

func SanitizeFields

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

func SanitizeTitle

func SanitizeTitle(titleText string) string

func SanitizeURL

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