No description
| hndigest | ||
| .gitignore | ||
| build.sh | ||
| deploy.sh | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
hndigest
Generates and sends a digest of the top 10 (up to 30) stories from Hacker News and sends them via email.
Compiling
go build -o hndigestbin git.akpain.net/codemicro/hn-digest/hndigest
Running
Run the binary with a config.json file in the current working directory or set the HNDIGEST_SETTINGS_FILE environment variable to point to one.
Example config
{
"recipients": ["abi@example.com"],
"from": "hndigest@example.com",
"top_n": 10,
"smtp_server": "localhost",
"smtp_port": 1025,
"smtp_use_tls": false
}
Full config options to be found in hndigest/config.go as the Config struct.