Clic.gs, URL shortener

Security and Transparency

secure URL shortener

Python Library to create short link

Official library

Create safe short links from your Python web site or application. The current version is 1.1.

libsafemn.py-1.1.zip for shortening, expanding and tracking URLs in Python 2.4 and above.

Code

import libsafemn

short_url = libsafemn.shorten('http://www.google.com/')
print "Short: " + short_url
expand_url = libsafemn.expand(short_url)
print "Long: " + expand_url
info = libsafemn.info(short_url)
print "Clicks: " + info.get('clicks', None)

Output

Short: http://safe.mn/d
Long: http://www.reviews-web-hosting.com/
Clicks: 185