Googleの短縮URLのAPIが提供されたので、Pythonでとりあえず短縮だけしてみた。 http://code.google.com/intl/ja/apis/urlshortener/v1/getting_started.html #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib2 import simplejson API_URL = 'https://www.googleapis.com/urlshortener/v1/url' API_KEY = None def shorten(longUrl): if isinstance(longUrl, unicode): longUrl = longUrl.encode('utf-8') if API_KEY is None: data = '{longUrl:"