reach

module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT

README

Reach gathers urls from a website.

Installation:

You can use go get -u github.com/elisarver/reach/cmd/reach if you're only interested in the executable.

We build with go.mod support under go v1.11.

The application displays full usage with the -h flag.

  • Depends on goquery for querying html
  • Uses gen to generate custom sets and slices

Example of default use (gets a\[href] by default):

> reach http://google.com/
http://google.com/intl/en/policies/privacy/
http://google.com/intl/en/policies/terms/
/intl/en/ads/
/services/

Reparenting urls:

> reach -p http://google.com/
http://google.com/intl/en/policies/privacy/
http://google.com/intl/en/policies/terms/
http://google.com/intl/en/ads/
http://google.com/services/

Specify tag type:

> reach -tag meta:name http://google.com/
description
robots

Use a raw query:

> reach -query "div.all_external_links" http://elisarver.com/another-week-of-accomplishment

// Document body

Contact: eli.sarver@gmail.com

Directories

Path Synopsis
cmd
reach command
Package testhelp are re-usable test helpers for all modules in reach.
Package testhelp are re-usable test helpers for all modules in reach.

Jump to

Keyboard shortcuts

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