1 Using Python to shorten a URL with Google's shortening service (goo.gl):
2 #!/usr/bin/python # Corey Goldberg - 2010 import json import urllib import urllib2 def shorten(url): gurl = 'http://goo.gl/api/url?url=%s' % urllib...
3 You give it a URL to shorten: shorten('http://www.goldb.org/long_url')