HomeArchives → by date → November 2004 → November 08 →

Integrating del.icio.us Quicklinks without cron

<< Previous Entry | Next Entry>>

There are already various tutorials on the net describing ways to include del.icio.us links into a website or a weblog. Most of them rely on cron though, so here are my two cents for those who don't have cron (like me).

If you have cron, things are straightforward: have MagpieRSS fetch your del.icio.us RSS feed regulary, parse, write to file, include(); into website or post to blog via XML-RPC, done. Or, more elegantly, get links via the API, transform XML result via XSLT, write to file, include(); into website or post to blog via XML-RPC, done. Now without cron. My first idea was to check the age of the result file and re-do the parsing dance if it is older than x minutes when requested for inclusion. Too complicated, unelegant and unpleasant to watch for the user whose page request initiates the renewed parsing. New idea: Move the whole del.icio.us posting process to my own server:

Run a visually similar copy of del.icio.us HTML form from one's own server, post the new link to the del.icio.us server via its API, invoke local MagpieRSS parser upon HTTP 200/OK reply from the del.icio.us server, use MAGPIE_CACHE_AGE to throttle rebuilds to let's say once per 15 minutes even when submitting multiple links within that span of time, parse updated del.icio.us RSS file and write local file if MagpieRSS cache has expired, done.

This solution does not only seem to be somewhat elegant, but also leaves room to do just about anything before or after posting a new link to del.icio.us, namely to improve the somewhat basic default HTML posting form (keywords: have autocomplete, choose tags from clickable lists, show related and similar tags). Dietrich Ayala has written a PHP library for the del.icio.us API which looks like a good starting point. Testing the library will be step one, copying the default posting form step two (including validation, which is now your own task and no longer del.icio.us'), patching both together step three, bringing in "actions to do on successful link posting via the API" (for now, read: invoke MagpieRSS) step four. Stay tuned.

RELATED
del.icio.us links related to this blog entry

-->

Tools

Recent Comments

Guido Albers on Common Questions (I) at 2006-09-18 19:40
Guido Albers on Common Questions (I) at 2006-09-18 19:39
Sean Roach on World Champion at 2006-09-18 18:52
Frank Kanzler on RSS Feed Reader / News Aggregators Directory at 2006-09-18 15:11
Walter Rafelsberger on Mapping and Visualization Resources at 2006-09-18 03:54
Pieter on Hunters, after all, aren't cooks at 2006-09-14 19:26
Haiko Hebig on Pentax K10D announced (Updated) at 2006-09-13 22:25
Pieter on Pentax K10D announced (Updated) at 2006-09-13 20:04
Donald L Pevsner on Concorde Retirement Update at 2006-09-06 21:01
John Best on RSS Feed Reader / News Aggregators Directory at 2006-08-19 17:49
Titov Denis on RSS Feed Reader / News Aggregators Directory at 2006-08-17 11:20
Haiko Hebig on WASP - Wild Child at 2006-08-07 10:14
Guido Albers on WASP - Wild Child at 2006-08-06 09:43
Frank Wenger on RSS Feed Reader / News Aggregators Directory at 2006-08-04 14:22
Hemaworstje on Spare Part at 2006-08-01 03:55
T.Reader on RSS Feed Reader / News Aggregators Directory at 2006-07-29 09:27
ניו יורק on General Blumenthal Coal at 2006-07-28 22:50
Moritz on "Zwar haben einige Genossen die Dinge zu einseitig gesehen, aber ..." at 2006-07-14 12:12
Pieterjan Lansbergen on Nothing better than a Hill Climb in the Morning at 2006-07-13 20:33
at on Es muss schließlich alles seine Ordnung haben at 2006-07-12 11:33