Étienne Deparis
823d8d36fa
|
10 years ago | |
---|---|---|
dependencies | 11 years ago | |
.gitignore | 11 years ago | |
.gitmodules | 11 years ago | |
LICENSE | 11 years ago | |
README.md | 10 years ago | |
bitcoinrpc | 11 years ago | |
conf-example.py | 11 years ago | |
feed2twister.py | 11 years ago |
README.md
Feed2twister is a simple script to post items from RSS/ATOM feeds to Twister.
Prerequisites
- Twister (of course)
- python-bitcoinrpc
- feedparser
- gdshortener (optional)
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
conf-example.py
toconf.py
and edit it to taste.
Running
Normally, you would run this as a cron task: cd /path/to/this ; python feed2twister.py
[N
]
if [optional] N
is supplied, it's used as the maximum items to post (per feed). Default is conf.MAX_NEW_ITEMS_PER_FEED
.
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.