Clone wiki

Googlus / Home


Source Style | Ticket Guidelines | Contributing

Googlus is a Ruby wrapper around Google URL Shortener REST API.

I often use URL shortener services and I was like "It would be cool if I could use it in Textmate, in my Ruby code or on the command-line!" so I wrote this thin lib to be able to do that.

Googlus features are:

  • shorten URLs
  • Expand URLs
  • Analyze URLs usage
  • and more (Googlus will evolve) ...
  • is developed from scratch (not based on any other code)
  • multi-platform (GNU/Linux, *BSD, Windows & other)
  • 100% MIT & free



$ sudo gem install googlus


require 'rubygems'
require 'googlus'

On the command-line:

$ googlus -s # Shorten URL
$ googlus -e   # Expand short URL
$ googlus -a   # Get analytics for short URL
$ googlus -h # Up to date list of options

Get the source

$ hg clone


If you want to contribute you should take a look at:

Problems, comments, and suggestions are welcome on the ticket system