> pls impeach gov't tia_ 

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.

[googlereader lynx api] last modified: 03/25/2007 02:03 pm

Here's a way to get a count of unread items in google reader in shell. They haven't really released an API yet, and afaik one of the reasons is they only have cookie based auth set up, so it's not as easy as it should be, but this works. It uses lynx and awk.

1) Find lynx.cfg. On my mac with fink it's /sw/etc/lynx.cfg, otherwise probably in /etc somewhere. Find the PERSISTENT_COOKIES line and make sure it's uncommented and set to TRUE.

2) Navigate to google.com/reader, login and accept the cookies, then quit. Now you have the cookie you need wherever your lynx.cfg saves them.

3) Now this shell command:

lynx -dump http://www.google.com/reader/api/0/unread-count?all=true| awk -F\> '/feed/{x=1}/count/{if(x==1)y+=0+$2;x=0}END{print y}'

will print the count of unread items to STDOUT for use in your nefarious projects. I throw it into Geektool.

Anyone know any better way to get this? Seems like there's a 20 digit userID that everyone has - but I haven't found a way to to use that to get this information.

[All Posts] [top]