> mostly stupid bash tricks_ 

c u t u p @ c u t u p . o r g


[googlereader del.icio.us] last modified: 03/25/2007 02:06 pm

I switched from bloglines to google reader awhile back, and the biggest annoyance I have with them is feeds from del.icio.us. For some complicated reason (people have complained and got back some complicated answer on both ends), my feeds from del.icio.us update very rarely. Like maybe once every three weeks?

I'm not sure if this is a problem on all del.icio.us feeds, or just the ones I subscribe to, namely my 'network' and my 'for' feeds. But those are the only ones I care about.

Well, yahoo pipes came out, and on a lark I tried piping my delicious feeds through them. And in my limited testing, so far it seems to work. Yahoo has no problem grabbing the del.icio.us feeds, and google reader has no problem with the pipes feed.

I just made a new pipe, used the fetch object to grab the feed from delicious, connected it straight to the output, saved it, and subscribed to the result. Refrain from publishing the pipe, and it stays private. And there it is. A reasonable if geeky and overbuzzword solution to a longstanding that no one seems in a hurry to fix.

[del.icio.us bookmarklet php] last modified: 03/25/2007 02:06 pm

Well, John Ressig's excellent del.icio.us super-fast bookmarklet stopped working a while ago when delicious changed their posting method. It used to allow one click transparent posting to del.icio.us - now it leaves you on the posting page with an error message 'A required security token was not received with your form data.', albeit with all the fields nicely filled in, and you have to manually hit post. The horror!

But I'm proud to say I've managed to cobble something together that works the way it used to. It's a bit more complicated though, and requires your own web space (localhost works if you're running a web server on your own machine).

It's a php script that generates a bookmarklet that works just like the old one did. However, instead of sending the information straight to delicious, it sends its information to the script, and the script uses the del.icio.us API to post the item.

The script lives here. Put it in a web accessible directory, fill in the username, password, and (optional) default_tags, then visit the script in your browser for instructions. It's a very good idea to use .htaccess to protect the script from anyone else, otherwise whoever has the bookmarklet can post to your account.

There are some things I don't like about the script.

I'll keep working on some improvements, but for now it at least works.


This is now rendered useless (and thats a good thing) by the following bookmarklet code. It submits direct to the api, will prompt for user:pass the first time you submit in a session, and automatically closes the post acknowledgment tab, which the whole point of the php script was to avoid. Here you go:

javascript:e=%22%22+(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);void(delicious = open('https://api.del.icio.us/v1/posts/add?description='+encodeURIComponent(document.title)+'&extended='+escape(e).replace(/ /g, %22+%22)+'&tags=%s'+'&url='+window.location.href,'delicious','toolbar=no,width=500,height=150'), setTimeout('delicious.close()',5000))

create a bookmark with that as the location, assign a keyword, and then typing keyword tag1 tag2 ... in the url bar will submit that page to delicious, with any highlighted text on the page submitted as extended.

[All Posts] [top]