link-extractor

command module
v0.0.0-...-bec8ad3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

For easy retrieval of links inside href fields. Filter href fields using regex.

Usage

As a command line tool
go install https://github.com/BehzadE/link-extractor@latest
link-extractor 'https://golang.org' '/doc/'
https://golang.org/doc/
https://golang.org/doc/copyright.html
https://golang.org/doc/tos.html
As a library
urls, err := linkext.Extract(
    "https://dumps.wikimedia.org/enwiki/latest/",
    "pages-articles-multistream(-index|)[0-9]+[.]",
)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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