/gurlshortner

Python implementation of Google URL Shortner

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

=============
GURL Shortner
=============

* A tiny implementation of Google URL Shortner. It can shorten a URL and expand a shortened URL.

|example:
|
| >>> import gurlshortner
| >>> gurlshortner.shorten('http://google.com')
| {u'kind': u'urlshortener#url', u'id': u'http://goo.gl/mR2d', u'longUrl': u'http://google.com/'}
| >>> gurlshortner.longify('http://goo.gl/mR2d')
| {u'status': u'OK', u'kind': u'urlshortener#url', u'id': u'http://goo.gl/mR2d', u'longUrl': u'http://google.com/'}


===============
How to install?
===============

$ sudo pip install gurlshortner

==================
Where is the code?
==================

Check out https://github.com/adimania/gurlshortner