webpluck

package
v0.0.0-...-7dd0deb Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36"
)

Variables

This section is empty.

Functions

func ExtractTextFromUrl

func ExtractTextFromUrl(
	url string,
	xpath string,
	regex string) string

Params:

url   - URL of the page to be scraped
xpath - the xpath of the target text in the html document
regex - the regex to be applied to the extracted text found at xpath to extract final value
returns:
a string value that is the final plucked value

Types

This section is empty.

Jump to

Keyboard shortcuts

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