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 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.
This will be very useful, especially when magnolia support is added in! Thanks!
Hi jesse, this is a very cool app. I tried it and its very good. The code is subtle and clear to understand. I will try to add more data fields like camera model, exposure, exif settings. I need to sync twitter (have to try that). I think it would be great if you show a demo cron script to sync flickr and twitter automatically.
I just came across django-syncr and it's exactly what I'm looking for! I'm going to install and try it out just as soon as I have the time to do so. Your work is much appreciated. Cheers!
Weird issue with sqlite3: I'm told that there's no table called 'delicious_bookmark' but take a look at this: http://dpaste.com/42880/. It has indeed been created.
The contents of the file "syncup.py" (in trace paste) is trivial: http://dpaste.com/42881/. Any ideas? Maybe I'm just tired and am missing something totally obvious?
Hey Greg, I wonder if this is an environment var/path issue? Ie. what is the value of $DJANGO_SETTINGS_MODULE and what does your settings file look like? Are you using a recent Django trunk ? I realize now that I haven't tested this with Django 0.96 at all...
Thanks for the feedback! I hope to add more to django-syncr soon, but I have a lot going on at the moment.