A command line interface to that scrapes cannabis strain information from CannaConnection.
Use Homebrew to install:
$ brew tap droxey/strainscrape
$ brew install strainscape
$ go get github.com/droxey/strainscrape
Note: If you use modules (or if GO111MODULE=on
in your environment), go get
will not install packages "globally". It will add them to your project's go.mod
file instead. As of Go 1.11.1, setting GO111MODULE=off
works to circumvent this behavior:
$ GO111MODULE=off; go get github.com/droxey/strainscrape
Returns a list of all strains.
$ strains list
Save the list in a JSON file named strains.json
.
$ strains save --filename="strains.json"
Find a strain by name.
$ strains find "Strain Name"