links

package
v0.0.0-...-6c16969 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurentFetcher

func ConcurentFetcher(urls []string)

func Crawl

func Crawl(url string) []string

func FetchToConsole

func FetchToConsole(urls []string, mode Mode) ([]byte, error)

wget on go

func FetchToFile

func FetchToFile(url string) (filename string, fileLen int64, err error)
func FindLinks(htmlDoc []byte) ([]string, error)

func FindLinksBreadthFirst

func FindLinksBreadthFirst(f func(item string) []string, worklist []string)

call breadthFirst(crawl,"url")

func FindLinksFromUrl

func FindLinksFromUrl(url string) ([]string, error)

func ShowTags

func ShowTags(htmlDoc []byte)

show a stack of tags

func ShowTagsTree

func ShowTagsTree(htmlDoc []byte)

Types

type Mode

type Mode string
const (
	FetchMode Mode = "fetch"
	LinksMode Mode = "links"
)

Jump to

Keyboard shortcuts

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