Edit

IABSD.fr/ports/www/sfeed/files

Branch :

  • Show log

    Commit

  • Author : fcambus
    Date : 2021-09-08 08:05:37
    Hash : 28589daa
    Message : Import www/sfeed. sfeed is a RSS and Atom parser (and some format programs). It converts RSS or Atom feeds from XML to a TAB-separated file. There are formatting programs included to convert this TAB-separated format to various other formats. There are also some programs and scripts included to import and export OPML and to fetch, filter, merge and order feed items. OK bcallah@

  • sfeedrc.example
  • #sfeedpath="$HOME/.sfeed/feeds"
    
    # override default client (curl) with ftp from OpenBSD base.
    # fetch(name, uri, feedfile)
    fetch() {
    	ftp -M -V -w 15 -o - "$2"
    }
    
    # list of feeds to fetch:
    feeds() {
    	# feed <name> <feedurl> [basesiteurl] [encoding]
    	feed "undeadly" "https://undeadly.org/cgi?action=rss"
    	feed "xkcd" "https://xkcd.com/atom.xml" "https://xkcd.com"
    	feed "FreeBSD news" "https://www.freebsd.org/news/rss.xml" "" "iso-8859-1"
    	feed "DragonflyBSD digest" "https://www.dragonflydigest.com/feed"
    	feed "NetBSD changes" "https://www.netbsd.org/changes/rss-netbsd.xml"
    	# get youtube Atom feed: curl -s -L 'https://www.youtube.com/user/gocoding/videos' | sfeed_web | cut -f 1
    	feed "youtube golang" "https://www.youtube.com/feeds/videos.xml?channel_id=UCO3LEtymiLrgvpb59cNsb8A"
    }