A Python 3.5 application to post notifications to pnut.io and Twitter when an RSS feed is updated.
Application is currently tested in Pythonista iOS and my web host. Whilst it can run standalone it's more likely to be useful when run every hour (or 2, 3…) either as a pythonanywhere 'task' or a cron job at a web host.
- a pnut.io account,
- pnut.io application token - read from a separate file to give some portability to the code:
- The PNUTpy libraries:
pip install pnutpy.
- The feedparser RSS, er… feed parser:
pip install feedparser.
- A means of achieving Twitter auth to post, e.g. my TwigPen module. (Temporarily removed.)
Note: the code can be run with minor modifications to alert independently of a pnut.io account. Put simply, add stuff to make it happen. Er…
So I did, TwigPen, a post-only wrapper to post to Twitter using Twython.