Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def shorten(url):
    nurl = API_URL % (LOGIN, API_KEY, urllib.quote(url))
    data = urllib2.urlopen(nurl).read()
    return "{B}Shortened:{B} <{LINK}%s{}>" % data.strip()
        


src/s/u/SuperBot-HEAD/Plugins/WebService.py   SuperBot(Download)
import BaseHTTPServer
import threading
import json
from urllib import unquote_plus
from Bitly import shorten
 
            bot.say(channel,msg)
            bot.say(channel, shorten(url))
            bot.transport.doWrite() #this is in a different thread i guess?
    except: