a faster pickle ([info]troworld) wrote,
@ 2005-06-04 23:45:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: busy
Current music:Mike Doughty - Looking at the World from the Bottom of a Well
Entry tags:del.icio.us, perl, tech

Del.icio.us links
Thought it would be cool to have link digests posted in my journal once in a while automatically. It would leave a record of places I've been and things I've been interested in, but haven't had the time/itch to write extensively about.

Source: Perl file

It's probably useless for most people, since it relies on: 1) being called from cron once in a while, 2) mail setup, 3) paid account for email posting, 4) a bunch of Perl modules that your host may not have (mine didn't have XML::Simple). I'm lazy, though, and just wanted to use the tools at my disposal.

Note: If you're going to use this, you may need to append "&count=n" to the API url (where n is an int between 1 and 100) to get the appropriate number of recent posts. I don't use del.icio.us extensively, so the default 15 is good for me.

I hope I got the LWP stuff right. The script will back-off if yelled at, but it's quite persistent otherwise (which may not be a good thing). Maybe I'll tune down the number of repeated requests before giving up.

So, now, if I post any new links with a ljpost tag, it should automatically update every Friday and lj-cut the entry if there are too many links.




(Post a new comment)


[info]__seelenschmerz
2005-06-07 07:07 am UTC (link)
::Blinkd:: o.o You're cute.

(Reply to this) (Thread)


[info]troworld
2005-06-07 07:19 pm UTC (link)
*poke*

(Reply to this) (Parent)(Thread)


[info]__seelenschmerz
2005-06-07 07:21 pm UTC (link)
TEEHEE!

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…