This repository contains a simple screen scrape CLI written in Go. You can read the full blog post here.
The CLI uses the following environment variables:
DEBUG=true
DATABASE_URL=user=youruser dbname=yourdbname sslmode=disable
EMAIL_FROM=fromuser@gmail.com
EMAIL_HOST=smtp.gmail.com
EMAIL_HOST_PASSWORD=emailpassword
EMAIL_HOST_USER=hostuser@gmail.com
EMAIL_PORT=587
EMAIL_TO=touser@gmail.com
This skeleton is configured to use Postgres. Change lib/db.go
if you prefer something else.
To run migrations with goose run goose -env development up
.
This project uses godep for dependency management.
- Clone the repository and
cd
into it. - Run
godep go install
to build and install binary. - Run
./run_screenscrape