wayback

package
v0.0.0-...-e1c0da8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAssets

func FetchAssets(domain, htmlContent, outputDir string) (string, error)

FetchAssets downloading and saving assets to specified output directory

func GetAnnualURL

func GetAnnualURL(domain string, year int) (string, error)

GetAnnualURL calls Wayback API and tries to fetch latest website URL based on given Year

func GetHTML

func GetHTML(url string) (string, error)

GetHTML handles url and after fetching HTML content tries to clean up

Types

type WaybackMachineResult

type WaybackMachineResult struct {
	Timestamp         string          `json:"timestamp"`
	URL               string          `json:"url"`
	ArchivedSnapshots archiveSnapshot `json:"archived_snapshots"`
}

WaybackMachineResult is the main type for and API response

Jump to

Keyboard shortcuts

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