feed2twitter: Send posts from a feed to Twitter

feed2twitter reads feeds and tweets each post to a Twitter account. This is both a library and a simple executable build on top of it.

The feed is read only once. To keep updating, call this program/library every few minutes. A local cache of earlier tweets is kept in a file to make sure no duplicates are sent.

To build your own program on top of this library use the atom2twitter or rss2twitter functions. If you need access to the complete feed instead of just individual individual items, use the feed2twitter function.

See the hackage2twitter program for an example of how to use this library.

Usage

The executable can be used as such:

$ feed2twitter http://example.com/feed.rss username password cache-file 50 [--debug-mode]

Installing feed2twitter

The current version of feed2twitter is 0.2.0 and is available on Hackage.

If you have cabal-install (which you really should have, by the way), the package can be installed like so:

cabal update
cabal install feed2twitter

If you don’t have cabal-install, you can manually download and install feed2twitter:

wget http://hackage.haskell.org/packages/archive/feed2twitter/0.2.0/feed2twitter-0.2.0.tar.gz
tar xzf feed2twitter-0.2.0.tgz
cd feed2twitter-0.2.0
./Setup.lhs configure --user
./Setup.lhs build
./Setup.lhs install