/usr/share/pyshared/gwibber/microblog/urlshorter/isgd.py is in gwibber-service 3.4.0-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """
TinyURL.com interface for Gwibber
macno (Michele Azzolari) - 02/13/2008
"""
import urllib2
PROTOCOL_INFO = {
"name": "is.gd",
"version": 0.1,
"fqdn" : "http://is.gd",
}
class URLShorter:
def short(self, text):
short = urllib2.urlopen("http://is.gd/api.php?longurl=%s" % urllib2.quote(text)).read()
return short
|