Jesse's Development Blog

django-syncr: Synchronize Django with the web

I finally had a little bit of time to package up and document a small project I've been working on. I've just posted my django-syncr application to Google Code. See the link for installation and usage instructions.

This is a Django app inspired by the scripts I use to sync my blog with various web services. It has two parts: 1) the Django backend models and 2) utilities to synchronize these models via web APIs at several major services. These include: flickr, youtube, del.icio.us, and twitter. I'm hoping to add ma.gnolia soon.

Django-syncr admin screen

Django-syncr could be useful for blogs, tumblelogs, or other applications. What I do is write cron jobs to periodically sync-up with my service accounts. For example:

from syncr.app.tweet import TwitterSyncr
t = TwitterSyncr('jesselegg', 'password')

t.syncTwitterUserTweets('jesselegg')
t.syncFriends('jesselegg')

Then in a Django template I could do things like this:

{% for friend in twitter_friends %}
{{ friend.screen_name }} from {{ friend.location }}
{% endfor %}

Ditto for flickr, del.icio.us and Youtube.

Check it out and let me know what you think. Documentation of all the methods available in the syncr.app utilities is available here.

All content licensed under a Creative Commons Attribution-Share Alike 3.0 License unless otherwise noted.