mirror

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 16 Imported by: 0

README

mirror

mirror is command line tool for mirroring a web page.

Caution

Do not abuse.

Feature

  • Using Headless Chrome.
  • Fetch HTML although rendered by JavaScript.
  • Download all assets that emit when page is loaded.
  • Decode Gzip and Brotli encoding content.

DEMO

DEMO

Installation

go install github.com/yusukebe/mirror/cmd/mirror@latest

Usage

mirror is a command line tool for mirroring web page

Usage:
  mirror [url] [flags]

Flags:
  -A, --agent string        User-Agent name (default "mirror/v0.0.1")
  -h, --help                help for mirror
  -o, --output-dir string   Output Directory (default "output")

Author

Yusuke Wada https://github.com/yusukebe

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type Client

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

func NewClient

func NewClient(param param) *Client

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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