Simple cron script to post RSS/ATOM items to Twister
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Étienne Deparis 4519800066 Add various options to support streaming app.net feed or other microblogging feeds 10 years ago
dependencies Added patched bitcoin-rpc submodule 11 years ago
.gitignore Ignore local .conf files 10 years ago
.gitmodules Added patched bitcoin-rpc submodule 11 years ago
LICENSE
README.md Big refactoring in order to use argparse and ConfigParser module instead of using python import. Add possibilities to use custom config files 10 years ago
bitcoinrpc Added patched bitcoin-rpc submodule 11 years ago
feed2twister.conf.example Add various options to support streaming app.net feed or other microblogging feeds 10 years ago
feed2twister.py Add various options to support streaming app.net feed or other microblogging feeds 10 years ago

README.md

Feed2twister is a simple script to post items from RSS/ATOM feeds to Twister.

Prerequisites

Installing

  • run git submodule update --init (to install a patched version of bitcoin-rpc (a twister-related unicode fix). If you don't have git(?) you can download the zip, and copy the bitcoinrpc directory into this directory (overwrite whatever you have ther now. probably an empty folder).

  • Copy feed2twister.conf.example to feed2twister.conf and edit it to taste.

Running

Normally, you would run this as a cron task: cd /path/to/this ; python feed2twister.py [-n N] [-c CONFIGFILE]

if [optional] N is supplied, it's used as the maximum items to post (per feed). Default is 0.

If there are more than N new items in a feed, "over quota" items get marked as if they were posted (this can be handy when you add a new feed with a long history).

Specifically, python feed2twister.py 0 would make all feeds "catch up" without posting anything.

if [optional] CONFIGFILE is supplied, it is used as a custom config file, instead of the first file found in the following list: ./feed2twister.conf, ~/.config/feed2twister.conf, ~/.feed2twister.conf