Tab Clutter del.icio.us Dump (Using Ruby)


Posted

in


In honor of cleaning out the tab clutter brought on by Crash Recovery, here is a del.icio.us dump of a bunch of tabs that I posted and cleared out this evening:

I used Rubylicious to download and display the links. I’m a Pythonic kinda guy, so Ruby synax still throws me, but I’m excited that I can throw together a list of links in just a few lines of (ugly) Ruby:


#!/usr/bin/ruby
# a hack that loads the gem path stuff correctly on my Ubuntu box
require 'rubygems'
require 'rubilicious'
r = Rubilicious.new('your_username', 'your_password')
puts '<ul>'
# Get 40 entries and write them as an unordered list
recent_links = r.recent(nil, 40).map { |post| puts '<li><a href="' +
post['href'] + '">' + post['description'] + '</a>: ' +
post['extended'] + '</li>'}
puts '</ul>'

I still have a lot of Ruby syntax to learn, but aside from syntax errors in my head, Ruby has been awesome. I’ve still only done some basic tinkering with Ruby and Rails, but I hope to have time to do more in the future.

Comments

11 responses to “Tab Clutter del.icio.us Dump (Using Ruby)”

  1. dwlt Avatar

    Even better, why not grab blogclient and post it automagically!

  2. My bonerz…

    My bonerz…

  3. Cheap italy…

    Site italy…

  4. Information topnado…

    About topnado…

  5. Blog top…

    Pipka top…

  6. Site yoper…

    Information yoper…

  7. Warren…

    this is why i always pick my nose….

  8. Jovany…

    kinda makes you wonder….

  9. vyvoz stroitelnogo musora spb…

    vyvoz musora…

  10. discount tory burch shoes…

    Welcome to http://www.toryburchshoesol.com. Good news for ballet fans – an update on the classic Tory Burch flip flop and tory burch wallet! They are fit for everyday wearing,comfortable and goodlooking are the advantages.discount tory burch is a brand which…

  11. cheap tory burch shoes …

    Tory Burch flip flop online sale.For the younger working expat women,look at these tory burch Shoes.these tory burch flip flop are definitely fun,yet the glossy design and round-toe stay these lovely.These tory burch shoes with multiple.New arrivel Tor…