The Holy Grail of Digg
Digg has yet to release an official API for working with their data. They have hinted at one for a long time and some folks have worked out a few details. Even better are the web services that Digg seems to be exposing. A few rudimentary and completely unsupported and unofficial documentary efforts have occurred.
There is one piece missing from all of these efforts thus far. It is frustrating me to no end. As far as I can tell, it is difficult, at best, to determine whether a given link has been submitted to Digg already. So, if you are programming some system and want to provide links to submit items or Digg items, you are incapable of determining which tool to provide the user.
Digg’s official policy at this point is to push all the users to the same place and let the submit form on their site sort things out. That’s what their Tools site has to say about it. For most developers, I imagine this is less than desirable. It is much better to be able to show the Digg button for those items already in the Digg system and let your users update that Digg without leaving your site.
The Holy Grail of the Digg API at this early stage then is letting developers dynamically determine the state of any given URL in the Digg system and present their users with a way to easily add a Digg to that URL or to submit that URL to the Digg system with a minimum of fuss.
One WordPress plugin developer seems to have done just that. I do not run a WordPress install and cannot test his work. I have spent the better part of the day trying to adapt it to work outside of WordPress with little luck. His curl and scrape method seems fragile and is certainly prone to slowness.
Does anyone have any thoughts or ideas about how this can be implemented in PHP? I have some code, but it’s based on the plugin above and I am not comfortable with the HTML scrape.
powered by performancing firefox