GeezerVison is showing github.com — GitHub - igrishaev/googl-python: Goo.gl library for Python
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
|
Repository files navigation
import googl
client = googl.Googl("API_key")
result = client.shorten("http://code.google.com/p/python-googl-client/")
print result
>>> {
u'kind': u'urlshortener#url',
u'id': u'http://goo.gl/bUnil',
u'longUrl': u'http://code.google.com/p/python-googl-client/'
}
print client.expand(result["id"])
>>> {
u'status': u'OK',
u'kind': u'urlshortener#url',
u'id': u'http://goo.gl/WubiJ',
u'longUrl': u'http://code.google.com/p/python-googl-client/'
}
client_login = googl.get_client_login("login", "pass")
client = googl.Googl("API_key", client_login=client_login)
About
Goo.gl library for Python
Resources
Stars
10 stars
Watchers
3 watching
Forks