Use del.icio.us to automatically suggest topics for bookmarks



Following a discussion on IRC this morning about using del.icio.us to suggest topics for new bookmarks I decided to do some more investigation.

del.icio.us creates RSS feeds for the majority of its pages. Its pretty clever too... you can do things like:
	User:  	 http://del.icio.us/rss/joe
Tag: http://del.icio.us/rss/tag/bananas
Combo: http://del.icio.us/rss/julian/science
Fancy: http://del.icio.us/rss/alan/graphics+3d
Popular: http://del.icio.us/rss/popular
Main: http://del.icio.us/rss/
Url: http://del.icio.us/rss/url?url="">
the bottom one is of most use to us as it produces an RSS feed showing who has bookmarked the url and what tags they used.

Since I had the day off uni today I decided to play with Python and write a little script that takes a url as a parameter, gets the rss feed from
del.icio.us, parses it, then returns a list of the most popular tags.

I've put it up on the web for people to play with: http://www.peteogrady.com/code/popular.py

example usage:
pete scully:~$ python popular.py http://www.gnome.org/projects/epiphany
gtk%2b
browsers
linux
bookmarks
mozilla
gnome
epiphany
browser

I'm sure that with a bit of work this could be turned into a useful extension?

Let me know what you guys think.

--
Pete O'Grady
pete ogrady gmail com
http://www.peteogrady.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]