summaryrefslogtreecommitdiff
path: root/sfeed_web.1
blob: 2fe4409ad782103689bad3e61116233da062dc1f (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
.Dd January 1, 2021
.Dt SFEED_WEB 1
.Os
.Sh NAME
.Nm sfeed_web
.Nd finds urls to feeds from a HTML webpage
.Sh SYNOPSIS
.Nm
.Op Ar baseurl
.Sh DESCRIPTION
.Nm
reads the HTML website as XML or HTML data from stdin and writes the found
urls to stdout.
.Sh OPTIONS
.Bl -tag -width 8n
.It Ar baseurl
Optional base url to use for found feed urls that are relative.
.El
.Sh OUTPUT FORMAT
url<TAB>content\-type<newline>
.Bl -tag -width Ds
.It url
Found relative or absolute url.
.Pp
For relative urls if a <base href="..." /> tag is found it will be used,
otherwise if the
.Ar baseurl
option is specified then that is used, if neither are set then the relative url
is printed.
.It content\-type
Usually application/atom+xml or application/rss+xml.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
Get urls from xkcd website:
.Bd -literal
curl -s -L 'http://www.xkcd.com/' | sfeed_web 'http://www.xkcd.com/'
.Ed
.Sh SEE ALSO
.Xr sfeed_update 1 ,
.Xr sh 1
.Sh AUTHORS
.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org