https://github.com/droxey/strainscan
https://github.com/droxey/strainscan
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/droxey/strainscan
- Owner: droxey
- License: apache-2.0
- Created: 2019-12-06T17:31:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T02:30:31.000Z (over 3 years ago)
- Last Synced: 2024-06-20T17:45:36.104Z (almost 2 years ago)
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strainscan
### Table of Contents
1. [Install](#install)
2. [Commands](#commands)
A command line interface to that scrapes cannabis strain information from [CannaConnection](annaconnection.com).
## Install
### Homebrew
Use [Homebrew](https://brew.sh) to install:
```bash
$ brew tap droxey/strainscrape
$ brew install strainscape
```
### Golang
```bash
$ 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:
```bash
$ GO111MODULE=off; go get github.com/droxey/strainscrape
```
## Commands
### List Strains
Returns a list of all strains.
```bash
$ strains list
```
Save the list in a JSON file named `strains.json`.
```bash
$ strains save --filename="strains.json"
```
### Find a Strain
Find a strain by name.
```bash
$ strains find "Strain Name"
```