24 from builtins
import object
25 import urllib.request, urllib.error, urllib.parse
32 return urllib.request.urlopen(self,
None, self.
timeout)
33 return urllib.request.urlopen(self)
36 def __init__(self, baseurl, user_agent, timeout, proxy):
46 url = urllib.parse.urljoin(self.
base_url, url)
50 req.set_proxy(self.
proxy,
'http')
57 def ConnSetup(baseurl, user_agent=None, timeout=120, proxy=None):
65 raise Exception(
"Request Factory not yet spawned")
68 return _request.base_url