feed-cli: A simple command line interface for creating and updating feeds like RSS

[ bsd3, program, text, web ] [ Propose Tags ] [ Report a vulnerability ]

This program generates RSS 2.0 (http:/www.rssboard.orgrss-2-0-1-rv-6) feeds based on command line arguments. Use it to easily create and update feeds from shell scripts, build scripts, cron jobs, CGIs, or other programs instead of using an RSS or Atom library.

eg: .feed-cli new-item -t"entry of the day" -d"This is a description..." -utmpfeed.xml -lhttp:/www.syntaxpolice.org


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 2008.5.3, 2009.7.5
Dependencies base (<4), directory, feed, old-locale, old-time, time, xml [details]
License BSD-3-Clause
Copyright (c) Isaac Potoczny-Jones, 2008-2009
Author Isaac Potoczny-Jones <ijones@syntaxpolice.org>
Maintainer Isaac Potoczny-Jones <ijones@syntaxpolice.org>
Category Web, Text
Home page http://www.syntaxpolice.org/darcs_repos/feed-cli
Uploaded by IsaacJones at 2009-07-05T23:25:20Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables feed-cli
Downloads 1960 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-31 [all 6 reports]

Readme for feed-cli-2009.7.5

[back to package description]
See my announcement:
http://www.syntaxpolice.org/index.php/?q=node/425

Synopsis:

This program generates [RSS 2.0 http:\/\/www.rssboard.org\/rss-2-0-1-rv-6] 
feeds based on command line arguments.  Use it to create and update feeds
from shell scripts, build scripts, cron jobs, CGIs, or other programs instead
of using an RSS or Atom library.

Commands and args:

new-item: -iFILE (required, or -u): The feed to add this item to
          -oFILE (optional): otherwise, stdout
          -tTitle (required)
          -dDescription (required, or -D, or --pipe-mode)
          --pipe-mode: read description from STDIN
          -lhttp://example.com (optional): Item link
          -DFILE: read description from a file
          -uFILE (optional): Update this file, not valid with -i or -o. Same as -iFILE == -oFILE
          --limit (optional): Keep the number of items fixed. Drop the last item when adding a new item. Doesn't compare dates yet. Taken from the front since that's how we add them.
          --limit=NUM (optional): keep only the last NUM items.

new-feed: -oFILE (optional): otherwise, stdout
          -tTitle (required): feed title
          -dDescription (required): feed description
          -lhttp://example.com (required): Feed link

EXAMPLES:

See also the patterns directory.

# create an empty feed:
./feed-cli new-feed -tTitleOfFeed -d"Feed Description" -o/tmp/feed.xml  -lhttp://www.syntaxpolice.org

# add an item to that feed 
./feed-cli new-item -t"entry of the day" -d"This is a description of <b>this feed item</b>." -u/tmp/feed.xml  -lhttp://www.syntaxpolice.org

# pipe a command into a feed item
ls -l | ./feed-cli new-item --pipe-mode --pre -t"another entry of the day" -u/tmp/feed.xml  -lhttp://www.syntaxpolice.org