61 lines
1.3 KiB
Groff
61 lines
1.3 KiB
Groff
.Dd December 22, 2021
|
|
.Dt SFEED_CONTENT 1
|
|
.Os
|
|
.Sh NAME
|
|
.Nm sfeed_content
|
|
.Nd view RSS/Atom content
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Ar
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
formats feed data (TSV) from
|
|
.Xr sfeed 1
|
|
from stdin or for each
|
|
.Ar file
|
|
to stdout as plain-text content.
|
|
For HTML content it uses
|
|
.Xr lynx 1
|
|
to convert it to plain-text.
|
|
At the end it uses the pager to view the output.
|
|
The
|
|
.Nm
|
|
script can be used by
|
|
.Xr sfeed_curses 1
|
|
to view content.
|
|
.Sh ENVIRONMENT VARIABLES
|
|
.Bl -tag -width Ds
|
|
.It Ev PAGER
|
|
The pager used to view the content.
|
|
If it is not set it will use "less -R" by default.
|
|
.It Ev SFEED_HTMLCONV
|
|
The program used to convert HTML content to plain-text.
|
|
If it is not set it will use lynx by default.
|
|
.El
|
|
.Sh EXIT STATUS
|
|
.Ex -std
|
|
.Sh EXAMPLES
|
|
.Bd -literal
|
|
curl -s 'https://codemadness.org/atom_content.xml' | sfeed | sfeed_content
|
|
.Ed
|
|
.Pp
|
|
The output format looks like this:
|
|
.Bd -literal
|
|
Title: The title.
|
|
Author: The line with the author if it is set.
|
|
Category: The line with the categories if it is set.
|
|
Link: The line with the link if it is set.
|
|
Enclosure: The line with the enclosure if it is set.
|
|
|
|
The content converted to plain-text.
|
|
|
|
<form feed character> if there are multiple items.
|
|
.Ed
|
|
.Sh SEE ALSO
|
|
.Xr awk 1 ,
|
|
.Xr less 1 ,
|
|
.Xr lynx 1 ,
|
|
.Xr sfeed_curses 1
|
|
.Sh AUTHORS
|
|
.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org
|