get-http-title
Please check if the Go path is running.
which gorequirements:
go get github.com/atotto/clipboard
go get github.com/akamensky/argparseAnd then compile.
go build -o ght main.goor you can use the Makefile to build it.
makeYou can install it to /usr/local/bin with the following command.
sudo make installsudo make uninstallURL in $1.
$ ght --help
usage: ght [-h|--help] [-u|--url "<value>"] [-m|--markdown] [-c|--copy]
Get HTML Title
Arguments:
-h --help Print help information
-u --url URL to fetch
-m --markdown Output in Markdown format
-c --copy Copy to clipboardexec
$ ght "https://google.com/"
GoogleCopy to clipboard
$ ght -mc "https://google.com/"
[Google](https://google.com/)Done!
If you have a file called urls with URLs listed.
https://www.google.com/
https://soulminingrig.com/
https://soulminingrig.com/ab/
Single proccessing
cat urls | while read -r url ; do ght $url ; doneParallel processing with xargs
cat urls | xargs -P 4 -I {} ght {}make build: Build the binary.make install: Install the binary to/usr/local/bin.make uninstall: Uninstall the binary.make clean: Remove the binary.make fmt: Format the code.make vet: Run go vet.make test: Run tests.