Documentation ¶
Index ¶
- func DoGetRequest(urll string, anonurll string, colCtx *colly.Context, ...) error
- func DoPostRequest(urll string, requestData io.Reader, colCtx *colly.Context, ...) error
- func FieldsFromDOM(dom *goquery.Selection, dompaths engines.DOMPaths, seName engines.Name) (string, string, string)
- func InitializeCollectors(ctx context.Context, engineName engines.Name, options engines.Options, ...) (*colly.Collector, *colly.Collector)
- func PageFromContext(ctx *colly.Context, seName engines.Name) int
- func Prepare(ctx context.Context, info engines.Info, support engines.SupportedSettings, ...) (context.Context, error)
- func RawFieldsFromDOM(dom *goquery.Selection, dompaths engines.DOMPaths, seName engines.Name) (string, string, string)
- func SanitizeDescription(descText string) string
- func SanitizeFields(linkText string, titleText string, descText string) (string, string, string)
- func SanitizeTitle(titleText string) string
- func SanitizeURL(urlText string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoGetRequest ¶
func DoPostRequest ¶
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 PageFromContext ¶
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 SanitizeFields ¶ added in v0.12.1
func SanitizeTitle ¶ added in v0.12.1
func SanitizeURL ¶ added in v0.12.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.