Coder Social home page Coder Social logo

hackernews_digest_go's Introduction

Go version of HackerNews Digest

Requirements

  • Sqlite 3+ OR MySQL 5.7+

Configuration

There is a default config-file name - config.json. Note that it can be overwritten in the comman line (-c|--config). The path can be relative or absolute.

To create a config file, copy config.example.json to config.json (or any other name that seems right for you) and adjust what you think should be adjusted. Database driver can be sqlite3 or mysql. For sqlite3, the Database string will be the name of the DB file. For mysql, Address can be tcp(host:port) or unix(/path/to/mysql/socket/file)

Output to console

Set "EmailTo" to an empty string if you don't want to send emails but simply want to print out the digest to the console. Setting "EmailTo" to a non-empty string but having "Smtp.Host" empty, you prevent any output.

Arguments

  • -r|--reverse - to reverse the filtering
  • -v|--vacuum - to remove old records, without running news updates (retention period is set set in the config file)
  • -c|--config - to set a config file

hackernews_digest_go's People

Contributors

utking avatar

Stargazers

Denys Miasnychenko avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.