In case that’s of any use to you, here’s how you can query Delicious if you want to retrieve informations about a specific url (ruby code, translate to whatever works for you):
require 'rubygems'
require 'json'
require 'open-uri'
require 'digest'
def get_tags(url)
hash = Digest::MD5.hexdigest(url)
open("http://badges.del.icio.us/feeds/json/url/data?hash=#{hash}") do |input|
return JSON.parse(input.read)
end
end
Now let’s put this code at work:
require 'pp'
pp get_tags("http://blog.logeek.fr/2008/1/19/a-beginner-s-guide-to-datawarehouse")
Here’s the output:
[{"title"=>"A Beginner's Guide to Datawarehouse",
"hash"=>"1bd588b55d27f3c3faa60b048632a200",
"url"=>"http://blog.logeek.fr/2008/1/19/a-beginner-s-guide-to-datawarehouse",
"total_posts"=>82,
"top_tags"=>
{"rails"=>6,
"datawarehousing"=>22,
"activewarehouse"=>11,
"datawarehouse"=>55,
"db"=>8,
"ruby"=>13,
"datamining"=>19,
"database"=>32,
"data"=>13,
"guide"=>15}}]
So here my datawarehouse article has been bookmarked 82 times, most of the time with the keywords ‘datawarehouse’ and ‘database’.
To receive each article,
subscribe by RSS
or
by email.
The comments system is brand new - don't be afraid to comment!
All the posts are listed below and on the homepage.
- Monitoring File Changes and Getting Notified via Growl (February 14th, 2010)
- How to use Google Calendar and Rufus-Google for Basic Time Tracking (November 27th, 2009)
- Using JRuby to prototype VST plugins (November 17th, 2009)
- Introducing Learnivore.com (September 15th, 2009)
- How to create small, unique tokens in Ruby (July 2nd, 2009)
- Detecting Which Ruby Interpreter is Running (JRuby, IronRuby) (March 4th, 2009)
- How to create an empty Rails Edge application (January 28th, 2009)
- How to Freeze Gems with Rails >= 2.1 (December 23rd, 2008)
- Thoughts on IronRuby and .Net Testing (December 1st, 2008)
- Fixing Symbol not found _rl_filename_completion_function (November 6th, 2008)
- How to Generate a Gradient for your CSS using RMagick (October 21st, 2008)
- Analyzing Your GMail History (September 18th, 2008)
- Data Visualization with Ruby and RMagick - Where Are Those Bikes ? (March 31st, 2008)
- All-Time Classics: a Selection of Recommended Books for Software Developers (February 23rd, 2008)

