View Single Post
Old 04-09-2009, 10:23 AM   #32
Tommy
Enthusiast
Tommy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Oct 2006
Location: Germany
Device: Iliad, Sony 505
New features

Hi there,

for those who are interested, I added two new features to getfeed and I thought some one might find it useful.
  1. 1. It's now possible to also create an RSS feed out of the ones read by getfeed.pl.
    Dunno if this is worth anything at all... maybe you know....
  2. If you're not interested in reading "yesterday's news", but only want to get what hasn't been gotten before, maybe the -D (or --delta) switch is something for you. With that switch the items of the current run are saved in a history file and subsequent runs will check its items against the content of the file, and only those items not previously saved will be shown in the output.
Code:

getfeed V0.10 (c) by T.Berndt
This program comes with ABSOLUTELY NO WARRENTY.

usage: getfeed [...] [-o <outfile>] [-f] <feed> [<feed_1> ...]
  -f <feed>[;<start>;<stop>;<filter>;<server>;<srcURL>;<toURLa>;<toURLb>]
               : <feed> is a URL or a filenmae.
  -d <directory: store the feeds (and images) in <directory>
  -o <outfile> : saves output into <outfile>
  -t <title>   : Title of this news' edition
  -r           : Retrieve and append linked atricles. Default: no
  -R <file>    : Reads <file> instead of .getfeedrc
  -e <charset> : Use <charset> for encoding. Default: UTF-8
  -F <format>  : Output format: html(obvious), tex(LaTeX) or rss Default: html
  -S <style>   : Reads <style> and adds its content as style-information.
  -P <package> : Adds a \usepackage{<package>} into the LaTeX-file
  -C <cmd>     : Execute <cmd>
  -m           : format text in two columns
  -a           : Auto-name the output as news_YYYYMMDD.<format> Default: no
  -v           : Print debugging info to STDERR/<log>.
  -s           : Suppress all output. Default: no (i.e. not silent)
  -D           : Delta mode includes only new items since the last runt
  -l <log>     : Writes debugging information to <log>
So far for now.

Tommy
Attached Files
File Type: pl getfeed.pl (35.8 KB, 322 views)

Last edited by Tommy; 04-09-2009 at 10:26 AM.
Tommy is offline   Reply With Quote