Skip to content
sanacl edited this page Sep 24, 2010 · 7 revisions

RSS to twitter wiki!

rsstotwitter is a very simple tool to update twitter accounts from RSS feeds. It is written in python and licensed under GPL

  • Author: Luis Cañas Díaz
  • License: GPL v2 or later

Example of use

  • rsstotwitter.py default.cfg
  • example of configuration file.
    (the parameter include_title is optional)
  [Configuration]
  consumer_key=your_consumer_key
  consumer_secret=your_consumer_secret
  access_token_key=your_access_token_key
  access_token_secret=your_access_token_secret
  feed_url=http://libresoft.es/ourplanet/daily-planet/RSS
  include_title=Some text before the entry content here
  • need help?: rsstotwitter.py —help

Dependencies

python-twitter and its dependencies

Problems with the authentication?

Do you see the error “Error, the message could not be posted!”? During September 2010 the twitter platform cut off the basic authentication method and now it is mandatory to use oAuth. If that’s your case you’ll need to install the latest version of python-twitter, see instructions below

Installing the last version of python-twitter and setting up the twitter access data

  1. To install it have a look at the instructions here , I’ve tested the a936121dfd commit (Aug 24 2010)
  2. Go to the url http://twitter.com/oauth_clients and register a new application. You’ll have to create it with a name application, use your imagination.
  3. In the previous step you get a consumer key and a consumer secret. Use them in the python script get_access_token.py which is included in the python-twitter code
  4. After executing the script get_access_token.py you’ll need to follow the instructions shown by the script to get a pincode from twitter
  5. You should have now the consumer key, consumer secret, access token key and the access token secret parameters. Include them in the configuration file