goread

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

README

goread

Go Report Card

goread generates static HTML files showing previews of subscribed RSS feeds. Similar to rawdog and curn it can be used as a cronjob. Configuration happens through a simple YAML file containing categories and their subscriptions. It comes with a built in template that can be overwritten.

See the Screenshot.

Basic Usage

Create a YAML file with the following format:

golang:
  - https://blog.golang.org/feed.atom
  - https://campoy.cat/index.xml
  - https://medium.com/feed/@matryer

podcasts:
  - https://feeds.feedburner.com/SchrottcastTitusJonas
  - https://freakshow.fm/feed/m4a

By default, goread will look for a feeds.yml in the current directory and renders its HTML files there too. This can be changed by using the -in and -out flags. Note that -in expects a filename and -out a directory path.

$ goread -in ~/.goread.yml -out /var/www/html
$

Use a custom template

The -template flag can be used to replace the defaut template. The default template can be used as an starting point for a custom one.

$ goread -template template.html
$

Help

$ goread -help
Usage of goread:
  -in string
        Path to a list of feed URLs (default "feeds.yml")
  -max-items int
        Max number of items (default 100)
  -n int
        Number of concurrent downloads (default 5)
  -out string
        Path to generated HTML (default ".")
  -template string
        Path to the HTML template

Development

Use go generate to embed the default template. During development, you can use the -template flag instead.

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated by robots at 2019-07-01 14:22:17.792151 +0200 CEST m=+0.000789331

Directories

Path Synopsis
Package feed extends the package gofeed by adding a Date field to gofeed.Item which contains either the published or the updated date, since some feeds only offer a update time, as well as a sorting implementation based on the field.
Package feed extends the package gofeed by adding a Date field to gofeed.Item which contains either the published or the updated date, since some feeds only offer a update time, as well as a sorting implementation based on the field.
Package funcs contains a collection of generic templating functions.
Package funcs contains a collection of generic templating functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL