Yet Another DailyDelicious hack for WordPress

I wanted a nice simple way to mirror my daily bookmarks that I’ve added to [del.icio.us](http://del.icio.us) into [WordPress](http://www.wordpress.org)

Stephen Eyre’s [dailydelicious](http://www.dot-totally.co.uk/dailydelicious.txt) was close, but
not exactly they way I wanted it. He used the RSS feed, but that doesn’t give a good daily cutoff.

So, I present Yet Another Daily Delicious php script: [yadd.php](http://www.nozell.com/marc/blog/data/yadd-1.0.TXT).

It asks for just today’s bookmarks using the published api, parses the XML, generates nicely formatted HTML and creates a WordPress entry.

Here is the writeup from the code:
- – -

This is yadd.php V1.0 by Marc Nozell (marc@nozell.com) based on
Stephen Eyre's dailydelicious
(http://www.dot-totally.co.uk/dailydelicious.txt)

See http://www.nozell.com/blog/ for the latest version of
'yet another daily delicious' (yadd.php)

USAGE:

1) Edit the section below. At the very least use your del.icio.us
username and password ($del_user/$del_password)

2) Put there file somewhere on the server where you run WordPress.

3) Arrange for this page to be hit once a day, say 11:30ish your
local time. del.icio.us seems to track UTC so depending on which
timezone you live in, some bookmarks from your yesterday may show
up. Consider using a simple cronjob that looks like this:

30 23 * * * $HOME/bin/yadd.sh

where yadd.sh looks like this:

#!/bin/bash
curl http://www.yoursite.com/yadd.php

4) In the morning edit the entry if you wish. I've tried to generate
pretty HTML so it will be simple to edit the entry.

THINGS TO KEEP IN MIND

Anyone that hits the URL for this script will cause your current
bookmarks to be dumped into WordPress. Clearly this is not
desirable.

You have some options. The easiest is to keep this URL 'secret'.
Name it something unusual and put it in a non-obvious place.
Remember that if you display your web hit stats, the url will be
exposed. A better solution to use .htaccess to limit access. If
you do that remember to update the url wget uses to include the
username/password, something like this:
curl http://someuser:somepassword@www.yoursite.com/yadd.php

Enjoy,

-marc

Tags: , , , ,

71 Responses to “Yet Another DailyDelicious hack for WordPress”

  1. Marc Nozell says:

    Try searching for ‘cron’ (not ‘chron’) or ‘crontab’. Wikipedia’s Crontab page does a good
    job of describing it. Also check your man pages (eg: man -k cron)

  2. Klintron says:

    OK thanks… just to make sure, I am supposed to create a text file called yadd.sh on my server, correct? All told, I should have yadd.php, yadd.sh, and a crontab file?

  3. [...] Yet Another DailyDelicious hack for WordPressこれをやってみようと思っているのですが・・思うだけで時間がない。 [...]

  4. [...] Yet Another DailyDelicious hack for WordPress A complex hack for Delicious to create a daily post for WordPress (tags: blogging hack) [...]

  5. [...] Cannot Access Web Address – Tagged as: restricted unfiled Nozell, rhymes with Oh Hell » Yet Another DailyDelicious hack for WordPress – Tagged as: del.icio.us plugin wordpress The Several Habits of Wildly Successful del.icio.us Users » Slacker Manager – Tagged as: del.icio.us howto tips Spinning the Election – Tagged as: spintactics EasyBib: Free Automatic Bibliography Composer – MLA and APA formatting – Tagged as: tools writing Google Calendar – Tagged as: google del.icio.us tag cloud v1.0 » nickbouton.com – Tagged as: del.icio.us plugin wordpress WordPress › Error – Tagged as: dugg Wired News: The Man Behind Scrambled Hackz – Tagged as: music [...]

  6. [...] این طوری فقط لازم است من زنده باشم و هر روز در اینترنت چرخ بخورم و علامت بزنم! بعد ساعت بیست و سه و پنجاه و نه دقیقه یکی می‌آید اینجا و تولید محتوی می‌کند! قابل توجه کسانی که به کفگیرشان به ته دیگ خورده.  [...]

  7. [...] 这里还有几篇del.icio.us 进阶应用的文章,欢迎阅读: Yet Another Daily Delicious The Several Habits of Wildly Successful del.icio.us Users Firefox del.icio.us bookmarklet [...]

  8. nigel says:

    Great post and I’ve introduced into my teamblog.

  9. [...] You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your ownsite. [...]

  10. [...] Yet Another DailyDelicious hack for WordPress (tags: wordpress Tools plugin del.icio.us blogging) [...]

  11. [...] Nozell, rhymes with Oh Hell » Yet Another DailyDelicious hack for WordPress (tags: delicious wordpress blogging) [...]

  12. [...] Nozell, rhymes with Oh Hell » Yet Another DailyDelicious hack for WordPress (tags: delicious wordpress blogging) [...]

  13. [...] Nozell, rhymes with Oh Hell » Yet Another DailyDelicious hack for WordPress Not tried yet (tags: blog Del.icio.us hacks php tech wordpress) [...]

  14. [...] DailyDelicious hack Yet Another DailyDelicious hack for WordPress [...]

  15. [...] Nozell, rhymes with Oh Hell » Blog Archive » Yet Another DailyDelicious hack for WordPress (tags: wordpress plugin del.icio.us blogging) Posted in del.icio.us | [...]

  16. [...] Nozell, rhymes with Oh Hell » Blog Archive » Yet Another DailyDelicious hack for WordPress (tags: wordpress del.icio.us plugin) [...]

  17. [...] Nozell, rhymes with Oh Hell » Blog Archive » Yet Another DailyDelicious hack for WordPress (tags: WordPress Delicious) [...]

  18. [...] Yet Another DailyDelicious hack for WordPress « Nozell, rhymes with Oh Hell (tags: wordpress blogging delicious plugin del.icio.us) [...]

  19. benwaynet says:

    Could I use this method to create a weekly report of my bookmarks from Delicious?
    Thanks,jb

  20. [...] Yet Another DailyDelicious hack for WordPress « Nozell, rhymes with Oh Hell 979 none [...]

Leave a Reply