summaryrefslogtreecommitdiff
path: root/doc/man/sfeed.1
blob: da2ea3ca73f64e9d997e5296bb927097cc6bcffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.TH "SFEED" "1" "December 25, 2014" "" "OpenBSD Reference Manual"
.nh
.if n .ad l
.SH "NAME"
\fBsfeed\fR
\- simple RSS and Atom parser
.SH "SYNOPSIS"
.HP 6n
\fBsfeed\fR
[\fIsuffix\ string\fR\ |\ \fB\-\fR\fIv\fR]
.SH "DESCRIPTION"
\fBsfeed\fR
reads RSS or Atom feed data (XML) from stdin. It writes the feed data in a
tab-separated format to stdout.
.SH "OPTIONS"
.TP 19n
\fB\-v\fR
show program version
.SH "TAB-SEPARATED FORMAT FIELDS"
The items are saved in a TSV-like format except newlines, tabs and
backslash are escaped with \\ (\\n, \\t and \\\\). Carriage returns (\\r) are
removed.
.PP
The order and format of the fields are:
.TP 19n
\fIitem timestamp\fR
string, UNIX timestamp in GMT+0
.TP 19n
\fIitem timestamp\fR
string, date and time in the format: YYYY-mm-dd HH:MM:SS tzname[[+-][HHMM]]
.TP 19n
\fIitem title\fR
string
.TP 19n
\fIitem link\fR
string
.TP 19n
\fIitem content\fR
string
.TP 19n
\fIitem content\-type\fR
.br
string, "html" or "plain"
.TP 19n
\fIitem id\fR
string
.TP 19n
\fIitem author\fR
string
.TP 19n
\fIfeed type\fR
string, "rss" or "atom"
.SH "SEE ALSO"
sh(1),
sfeed_update(1)
.SH "AUTHORS"
Hiltjo Posthuma <\fIhiltjo@codemadness.org\fR>