2
from urllib import urlopen, urlencode
4
from pida.utils.gthreads import AsyncTask
6
def fetch_url(url, content_callback, data={}):
7
"""Asynchronously fetch a URL"""
9
urlargs = (url, urlencode(data))
23
task = AsyncTask(_fetcher, content_callback)
26
if __name__ == '__main__':
32
fetch_url('http://google.com/sdfsdfsdf', cc)