map

command module
v0.0.0-...-40147a1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 8 Imported by: 0

README

Generates map site

Simple site map generator, supports couple reporters, depth levels and etc

Install

go get github.com/kocmo/map

Usage

# Create map and output it to the terminal1
$ map http://example.com

# Create map and output map in yaml form
$ map http://example.com --reporter=yaml

# Pipe it
$ map http://example.com -r yaml > example.com.yaml

# Or use "out" flag to pipe (so you can see the spinner comparing with previous command :)
$ map http://example.com -r yaml --out=./example.com.yaml

# Define several domains
$ map http://example.com -r yaml --domains=example.net,examples.biz --out=./example.com.yaml

Documentation

Overview

Package main is the CLI wrapper for the crawler

Directories

Path Synopsis
Package collect provides methods for collecting the data from the DOM document
Package collect provides methods for collecting the data from the DOM document
Package io provides some various helpful IO related methods
Package io provides some various helpful IO related methods
Package list create hash instance and checks value presence
Package list create hash instance and checks value presence
Package print provides methods to pretty printing data into the console
Package print provides methods to pretty printing data into the console
spinner
Package spinner creates a spinner
Package spinner creates a spinner
Package reporters provides various reporter executioners
Package reporters provides various reporter executioners
json
Package json provides the json reporter
Package json provides the json reporter
yaml
Package yaml provides the yaml reporter
Package yaml provides the yaml reporter
Package spider goes through the site tree and outputs the meta tree data consumable for reporters
Package spider goes through the site tree and outputs the meta tree data consumable for reporters
Package validation provides simple methods for URL validation
Package validation provides simple methods for URL validation

Jump to

Keyboard shortcuts

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