Skip to content

su1uv/gator

Repository files navigation

gator

A small command-line RSS aggregator. You register a user, add some feeds, and let it collect posts for you while you do something else. Built in Go with PostgreSQL.

Requirements

  • Go
  • PostgreSQL

Setup

Create a config file in your home directory at ~/.gatorconfig.json:

{
  "db_url": "postgres://user:password@localhost:5432/gator?sslmode=disable",
  "current_user_name": ""
}

Run the migrations in sql/schema to set up the database, then install:

go install github.com/su1uv/gator@latest

Usage

gator register <name>      create a user
gator login <name>         switch the current user
gator addfeed <name> <url> add a feed (and follow it)
gator agg <interval>       start collecting posts, e.g. gator agg 1m
gator browse [limit]       show the latest posts

Also: users, feeds, follow <url>, unfollow <url>, following, and reset (wipes the users table, careful).

About

A small command-line RSS aggregator.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages