ws

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrOr added in v0.3.0

func AttrOr(n *html.Node, attr, or string) string

func MakeClient added in v0.1.0

func MakeClient(skipCert bool) *http.Client

func MakeGroAlbaUrl

func MakeGroAlbaUrl(pageNum uint64) string

func MakeGroAmberUrl

func MakeGroAmberUrl(pageNum uint64) string

func MakeGroHasVistoAAlertsUrl added in v0.2.0

func MakeGroHasVistoAAlertsUrl(pageNum uint64) string

func MakeMorAmberUrl

func MakeMorAmberUrl(pageNum uint64) string

func MakeMorCustomUrl

func MakeMorCustomUrl(pageNum uint64) string

func ParseGroDate

func ParseGroDate(value string) (time.Time, error)

func ParseGroFound

func ParseGroFound(value string) bool

func ParseGroSex

func ParseGroSex(value string) mpp.Sex

func ParseMorDate

func ParseMorDate(value string) (time.Time, error)

func ParseNameSexFound added in v0.3.0

func ParseNameSexFound(value string) (string, mpp.Sex, bool)

func Query added in v0.3.0

func Query(n *html.Node, query string) *html.Node

func QueryAll added in v0.3.0

func QueryAll(n *html.Node, query string) []*html.Node

func RetrieveDocument

func RetrieveDocument(url string) (*html.Node, error)

func Scrape

func Scrape(pageUrl string, scraper func(*html.Node) []mpp.MissingPersonPoster, ch chan []mpp.MissingPersonPoster)

func ScrapeGroAlbaAlerts

func ScrapeGroAlbaAlerts(doc *html.Node) []mpp.MissingPersonPoster

func ScrapeGroAmberAlerts

func ScrapeGroAmberAlerts(doc *html.Node) []mpp.MissingPersonPoster

func ScrapeGroHasVistoAAlerts added in v0.2.0

func ScrapeGroHasVistoAAlerts(doc *html.Node) []mpp.MissingPersonPoster

func ScrapeMorAmberAlerts

func ScrapeMorAmberAlerts(doc *html.Node) []mpp.MissingPersonPoster

func ScrapeMorAmberPoPosterUrl added in v0.3.0

func ScrapeMorAmberPoPosterUrl(pageUrl string) (string, error)

func ScrapeMorCustomAlerts

func ScrapeMorCustomAlerts(doc *html.Node) []mpp.MissingPersonPoster

Types

This section is empty.

Jump to

Keyboard shortcuts

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