Query and format atom feed archives (RFC 5005)
usage: feedreader [OPTIONS] URL
-b,--backward read the last feed entry from URL and move to
the beginning
-D <property=value> sets a system property value
-f,--format <formatter> print using specified formatter, available are:
XML, ENTRY, XPATH:expr
-h,--help usage information
-k,--unsecure try insecure SSL connection
-m,--match print only the first matching entry
-o,--output <file> write to specified file instead of stdout
-x,--xpath <expression> print only entries with content that match
specified xpath 2.0 expression
Print feed content from specified URL starting from first entry. Follows any next-archive
links.
feedreader http://192.168.1.3:8080/feed/1
Print feed content from specified URL starting from last entry. Follows any prev-archive
links.
feedreader --backward http://192.168.1.3:8080/feed/recent
Assume feed content is XML and pretty print.
feedreader --format XML http://192.168.1.3:8080/feed/1
Filter feed entry content.
feedreader --xpath "//*:link/*:rel='order'" http://192.168.1.3:8080/feed/1
Search for the first feed entry that matches the expression.
feedreader --match --xpath "//*:id='4555e3c7-8642-4b10-95b5-3433eb817411'" \
http://192.168.1.3:8080/feed/1
Print value from XPath expression.
feedreader --format 'XPATH://*:id' http://192.168.1.3:8080/feed/1
Print several values separated with a ':' character.
feedreader --format 'XPATH:string-join((//*:id,//*:href),\":\")' http://192.168.1.3:8080/feed/1