I'm working on a drupal module that will automatically create drupal nodes for each flickr photoset a user has. At the moment, it will create or update an existing node. Ideally it would be a two way synchronization but flickr doesn't expose the set creation date if it maintains it. That means the logic for determining which direction data needs to be copied would be a bit more complicated and I'm not sure it's worthwhile at this point, but I'm considering it.
It still needs some work. I need to hook it up to drupal's cron hook and clean up the theme, but the first cut seems to have worked. I had it create the drupal nodes in an unpublished state so I could fix the dates for all the sets that are actually referring to old stuff and also clean up the taxonomy of the new nodes.
Once I get it cleaned up, I hope to donate it back to drupal as a contributed module (or better yet merge it in to one of the already existing flickr oriented modules). If you're interested, let me know and I'll share the code. It's fairly brute force right now but does seem to work.
Comments
How do you syncrhonize a
How do you syncrhonize a Flickr photoset?
Since flickr, after all
Since flickr, after all these years, still doesn't provide an RSS feed for sets, I do it by periodically polling flickr for a list of sets and adding (or updating or removing) any new (or changed or removed) sets. It's pretty brute force and isn't elegant, but, it works.
Cool
Hey. I think that this is a great idea. I am currently just trying to utilize existing modules like the flickr module to display full photosets.
Does your code do this? Because if so, I would love to check it out.
Peace
Jeremy
Thanks, Jeremy
My code was based on one of he early flickr modules for drupal, but that was geared toward photos and I wanted something geared toward sets. If you look at http://www.ac4lt.org/photosets, you'll see what my module produces. It captures the set info from flickr and creates a flickr node with that info. It provides a link back to flickr for display so all that's kept locally is a copy of the set info.
Let me know if you'd like a copy of the code and I'd be happy to send it to you.
Looks good
I would love to see the code and give it a whirl. I like the way it looks.
Right now, I'm testing a patch to the Flickr module http://drupal.org/?q=node/152792 but it doesn't work, as far as I can tell, but I would be really interested in your code because it seems that it does do what I'd really like the Flickr module to do.
You can email it as a zip file to my gmail account.
I'll let you know how it goes.
Thanks!
Jeremy
gmail account
Jeremy,
I'd be happy to send this to your gmail account, but I don't know the address. Can you send it to me via the 'contact' link on my site and I'll get it out to you.
No problem
Jeremy,
Can you send me your address via the 'contact linda' link? I'd be happy to send it out to you. It's pretty rough code. More of a prototype than a finished product but it should get you started.