webscraper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProto

func AddProto(href string, proto string) string

AddProto will add the corresponding start of the url

func HasHTTP

func HasHTTP(href string) bool

HasHTTP Make sure the url begins in http**

Types

type DownloadLink struct {
	// contains filtered or unexported fields
}

DownloadLink is the type to aggregate the download data

func GetHighlightClassTokensN

func GetHighlightClassTokensN(resp *http.Response, n int) ([]DownloadLink, error)

GetHighlightClassTokensN will return up to the first N of all the highligth class tokens in the http.Response along with the SHA value that is on the table

func (DownloadLink) FileName

func (dl DownloadLink) FileName() string

FileName returns the filename value of the download link

func (DownloadLink) Href

func (dl DownloadLink) Href() string

Href returns the href value of the download link

func (DownloadLink) Sha256

func (dl DownloadLink) Sha256() string

Sha256 returns the Sha256 value of the download link

Jump to

Keyboard shortcuts

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