GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SFEED(1) FreeBSD General Commands Manual SFEED(1)

sfeed
RSS and Atom parser

sfeed [baseurl]

sfeed reads RSS or Atom feed data (XML) from stdin. It writes the feed data in a TAB-separated format to stdout. If the baseurl argument is a valid absolute URL then the relative links or enclosures will be made an absolute URL.

The items are output per line in a TAB-separated format.

For the fields title, id and author each whitespace character is replaced by a SPACE character. Control characters are removed.

The content field can contain newlines and these are escaped. TABs, newlines and '\' are escaped with '\', so it becomes: '\t', '\n' and '\\'. Other whitespace characters except spaces are removed. Control characters are removed.

The order and content of the fields are:

1. timestamp
UNIX timestamp in UTC+0, empty if missing or on parse failure.
2. title
Title text, HTML code in titles is ignored and is treated as plain-text.
3. link
Link
4. content
Content, can have plain-text or HTML code depending on the content-type field.
5. content-type
"html" or "plain" if it has content.
6. id
RSS item GUID or Atom id.
7. author
Item author.
8. enclosure
Item, first enclosure.
9. category
Item, categories, multiple values are separated by |.

The sfeed utility exits 0 on success, and >0 if an error occurs.

curl -s 'https://codemadness.org/atom.xml' | sfeed

sfeed_plain(1), sfeed_update(1), sfeed(5), sfeedrc(5)

Hiltjo Posthuma <hiltjo@codemadness.org>

If a timezone for the timestamp field is not in the RFC822 or RFC3339 format it is not supported and the timezone is interpreted as UTC+0.
July 29, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.