[Yum, RSS!]

FeedMe: a Lightweight Feed/RSS reader

News: FeedMe 0.8 is out. Mostly reliability fixes -- no important functionality differences.

Ever want to download RSS from news sites or blogs to your PDA?

Download: FeedMe 0.8.

You will need Python, and python's feedparser module (on Ubuntu or Arch, that's the package python-feedparser).

There are lots of RSS readers -- but they all seem oriented toward converting RSS to mail to be read in an HTML-capable mail reader. I get enough mail, which I read in Mutt without much HTML support. I wanted a way to get it onto my PDA in an easily readable, simple format without images and tables and stylesheets and javascript and all that other HTML cruft.

So I wrote FeedMe. It's very minimal but so far it seems to do the job.

FeedMe is sort of an RSS version of Sitescooper. It produces either HTML or Plucker format.

FeedMe can optionally convert each page to plain ascii -- useful if you're producing output for a Palm PDA. For this option, set ascii="yes" in feedme.conf and install my ununicode module somewhere in your python path.

There's no documentation yet, but but the sample feedme.conf configuration file should be vaguely self-explanatory. Install it in ~/$XDG_CONFIG_HOME/feedme/feedme.conf or ~/.config/feedme/feedme.conf

Supported formats since 0.7 include plucker and epub; to get them, set formats = epub (or plucker, or plucker,epub to get both). For HTML only and no additional formats, set formats = none

Downloaded HTML will be put in ~/feeds/ (which must exist; you can specify a different location in feedme.conf).

Feedme can then convert the HTML into one of three formats: epub, plucker, or fb2. You'll need to have appropriate conversion tools installed on your system: plucker for plucker format, calibre's ebook-convert for the other two. You can specify more than one format, separated by commas, in feedme.conf; or format=none if you only need the downloaded HTML.

Maintenance:

Feedme uses three important directories:

Feedme's configuration file is ~/.config/feedme/feedme.conf.

Feedme's cache is ~/.cache/feedme/feedme.dat. This file should remain relatively small if you have a sane number of feeds, but it doesn't hurt to keep an eye on it.

~/feeds is where it stores the downloaded HTML. Stories are downloaded as sitename/number.html, e.g. ~/feeds/BBC_World_News/2.html. These stories are cleaned out every save_days (set in your feedme.conf).

If you save to formats beyond plain HTML, there may be other directories used for the converted files; for example, plucker files are created in ~/.plucker/feeds. This is never cleaned out by feedme, so you'll have to prune it yourself. When I used plucker as my feed reader, I had an alias that ran rm ~/.plucker/feedme/* to remove the previous day's plucks just before I ran feedme.

FeedMe's license is GPLv2 or (at your option) later. Thanks to Carla Schroder for the name suggestion!

ChangeLog:

December 23, 2011:
0.8: Several reliability fixes, guards against bad file types, etc.
January 30, 2011:
0.7: Clean up old feed directories (new config param "save_days").
Handle multi-line configs, e.g. for skip_patterns.
Match skip, start and end patterns that span multiple lines in the source page.
Add stylesheet to output files, for use with html readers or FeedViewer.
Fix case where truncated title includes a start tag but not the corresponding end tag.
New "formats" parameter to specify which format(s) to generate.
December 22, 2010:
0.7b1: handle epub format, or none (specified in config file); save each day's feed to its own dated directory.
November 17, 2010:
0.6: handle optional FB2 format; show author.
August 2, 2010:
0.5: Beef up the interrupt handling to fix places where it didn't work; reject non-text files (e.g. MP3s from podcasts).
March 3, 2010:
0.4:
December 9, 2009:
0.3: add commandline arguments, including -c to bypass caching. Handle failures to download articles.
October 20, 2009:
0.2: integrate ununicode.toascii; add extra content link at end of each index page entry.
October 15, 2009:
0.2pre1: smarter config parsing (~ and HOME), some support for ascii conversion, some extra links for added convenience.
October 6, 2009:
First release.

More Software
Shallowsky Home
mail me