feed2json

feed2json
Login

RSS feed parser to json format.

Installation

Clone this repository using fossil:

$ fossil clone https://foutaise.org/fossil/feed2json

Compile and install feed2json:

$ cd feed2json
$ make
$ sudo make install

Usage

$ feed2json -h
RSS feed parser to json format
Usage:
    feed2json [-f] <feedlink>
Options:
    -h : display this help and exit
    -f : display feed info

List info for a feed:

$ feed2json -f https://www.cambus.net/atom.xml
{
  "title": "Atom Feed - Cambus.net",
  "description": "Personal site and technical blog of Frederic Cambus",
  "link": "https://www.cambus.net/atom.xml",
  "feedlink": "https://www.cambus.net/atom.xml"
}

List items for a feed:

$ feed2json https://www.cambus.net/atom.xml
[
  {
    "title": "NetBSD, CTWM, and Spleen",
    "description": "<p>Back in the fall of 2020, ...",
    "published": "Sat, 09 Oct 2021 19:52:00 +0000",
    "guid": "https://www.cambus.net/netbsd-ctwm-and-spleen/",
    "link": "https://www.cambus.net/netbsd-ctwm-and-spleen/"
  },
  {
    "title": "Toolchains adventures - Q3 2021",
    "description": "<p>I've been keeping myself...",
    "published": "Fri, 01 Oct 2021 23:16:00 +0000",
    "guid": "https://www.cambus.net/toolchains-adventures-q3-2021/",
    "link": "https://www.cambus.net/toolchains-adventures-q3-2021/"
  },
  ...
]