Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/attiand/feed-reader
Query and format atom feed archives (RFC 5005)
https://github.com/attiand/feed-reader
atom feed
Last synced: 4 days ago
JSON representation
Query and format atom feed archives (RFC 5005)
- Host: GitHub
- URL: https://github.com/attiand/feed-reader
- Owner: attiand
- Created: 2017-04-15T10:38:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T19:58:54.000Z (almost 8 years ago)
- Last Synced: 2024-11-19T16:56:16.006Z (2 months ago)
- Topics: atom, feed
- Language: Groovy
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# feed-reader
Query and format atom feed archives (RFC 5005)
## Usage
```
usage: feedreader [OPTIONS] URL
-b,--backward read the last feed entry from URL and move to
the beginning
-D sets a system property value
-f,--format 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 write to specified file instead of stdout
-x,--xpath print only entries with content that match
specified xpath 2.0 expression
```## Examples
Print feed content from specified URL starting from first entry. Follows any `next-archive`links.
```bash
feedreader http://192.168.1.3:8080/feed/1
```
Print feed content from specified URL starting from last entry. Follows any `prev-archive`links.```bash
feedreader --backward http://192.168.1.3:8080/feed/recent
```Assume feed content is XML and pretty print.
```bash
feedreader --format XML http://192.168.1.3:8080/feed/1
```Filter feed entry content.
```bash
feedreader --xpath "//*:link/*:rel='order'" http://192.168.1.3:8080/feed/1
```Search for the first feed entry that matches the expression.
```bash
feedreader --match --xpath "//*:id='4555e3c7-8642-4b10-95b5-3433eb817411'" \
http://192.168.1.3:8080/feed/1
```
Print value from XPath expression.```bash
feedreader --format 'XPATH://*:id' http://192.168.1.3:8080/feed/1
```Print several values separated with a ':' character.
```bash
feedreader --format 'XPATH:string-join((//*:id,//*:href),\":\")' http://192.168.1.3:8080/feed/1
```