jf2sfeed.1 - jfconvert - JSON Feed (subset) to sfeed or Atom converter
 (HTM) git clone git://git.codemadness.org/jfconvert
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       jf2sfeed.1 (981B)
       ---
            1 .Dd September 9, 2024
            2 .Dt JF2SFEED 1
            3 .Os
            4 .Sh NAME
            5 .Nm jf2sfeed
            6 .Nd convert JSON Feed to sfeed
            7 .Sh SYNOPSIS
            8 .Nm
            9 .Sh DESCRIPTION
           10 .Nm
           11 reads JSON data from stdin.
           12 It writes sfeed TSV data to stdout.
           13 .Sh EXIT STATUS
           14 .Ex -std
           15 .Sh EXAMPLES
           16 .Bd -literal
           17 jf2sfeed < input.json
           18 .Ed
           19 .Pp
           20 An example to support JSON Feed in sfeed:
           21 .Bd -literal
           22 curl -s 'https://codemadness.org/jsonfeed_content.json' | jf2sfeed | sfeed_curses
           23 .Ed
           24 .Pp
           25 Another example shows how to use
           26 .Nm
           27 with sfeed_update by overriding the
           28 .Fn parse
           29 function in the sfeedrc file.
           30 .Bd -literal
           31 # parse(name, feedurl, basesiteurl)
           32 parse() {
           33         case "$2" in
           34         *.json) jf2sfeed;;
           35         *) sfeed "$3";;
           36         esac
           37 }
           38 
           39 feeds() {
           40         feed "codemadness_jsonfeed" "https://www.codemadness.org/jsonfeed_content.json"
           41 }
           42 .Ed
           43 .Sh SEE ALSO
           44 .Xr awk 1 ,
           45 .Xr curl 1 ,
           46 .Xr sfeed 1 ,
           47 .Xr sfeedrc 5
           48 .Sh STANDARDS
           49 .Rs
           50 .%T JSON Feed Version 1.1
           51 .%U https://www.jsonfeed.org/version/1.1/
           52 .%D Nov, 2022
           53 .Re
           54 .Sh AUTHORS
           55 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org