Another Word for Nerd

Using del.icio.us with PHP

You can get a straight HTML feed and directly include it into a PHP-generated page.

I’ve got stuff in weblog-links,weblog-reading, and weblog-blogroll tags on my del.icio.us page.

I’ve got a shell script (again using GNU wget) that passes the correct parameters to pull those down into straight HTML files:

#!/bin/bash
wget "http://del.icio.us/html/mrbill/weblog-reading/?tags=no&rssbutton=no&divclass=&aclass=&tagclass=&bullet=" \
-O ./weblog-reading.html
wget "http://del.icio.us/html/mrbill/weblog-blogroll/?tags=no&rssbutton=no&divclass=&aclass=&tagclass=&bullet=" \
-O ./weblog-blogroll.html
wget "http://del.icio.us/html/mrbill/weblog-links/?tags=no&rssbutton=no&divclass=&aclass=&tagclass=&bullet=" -O \
./weblog-links.html

I then use those HTML files in my main index page with PHP like so:

<? include("data/weblog-blogroll.html"); ?>
<? include("data/weblog-reading.html"); ?>
<? include("data/weblog-links.html"); ?>

etc. That’s all there is to it!

I’ve moved the old RSS feed instructions to a separate page.