24 from builtins
import object
27 import urllib2
as urllib
29 import urllib.request
as urllib
32 import urlparse
as parse
34 from urllib
import parse
40 return urllib.urlopen(self,
None, self.
timeout)
41 return urllib.urlopen(self)
44 def __init__(self, baseurl, user_agent, timeout, proxy):
54 url = parse.urljoin(self.
base_url, url)
58 req.set_proxy(self.
proxy,
'http')
65 def ConnSetup(baseurl, user_agent=None, timeout=120, proxy=None):
73 raise Exception(
"Request Factory not yet spawned")