urlChecker

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

urlChecker

Go implementation of the url checking

Versioning

This is the 0.2 version of this tool.

Usage

git clone https://github.com/isabellaliu77/urlChecker.git

cd urlchecker
go run urlChecker.go test/urls.txt
go run urlChecker.go test/urls.txt test/urls2.txt

Features

  • It can check the file passed through arguments to get and check the urls inside it.

  • Multiple files an be passed through arguments to get checked.

  • The result will show different colors and notifications based on different accessibility of each url.

  • The version of the tool can be checked through command line arguments, supporting both Windows and Unix style. (-v, --version, /v)

  • Support for parallelization for the tool to run efficiently

  • Only headers are requested when the urls are being checked.

  • Allows passing glob pattern as an argument

    go run urlChecker.go -g [glob-pattern]
    

    For example,

    go run urlChecker.go -g *.txt
    
  • Allows passing -j, --json flag, which causes the program to output JSON. The JSON output should look like [ { "url": 'https://www.google.com', "status": 200 }, { "url": 'https://bad-link.com', "status": 404 } ], and allows output be piped into a file, eg.: output.txt

    go run urlChecker.go test/urls2.txt -j
    
    go run urlChecker.go test/urls2.txt --json > output.txt
    
  • Allows passing -i, --ignore flags to provide options to ignore links inside the file after the flags, for examaple:

    go run urlCheck.go --ignore test/ignoreUrl.txt test/urls2.txt
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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