MCPcopy
hub / github.com/mvdctop/Movie_Data_Capture / proxy

Method proxy

config.py:303–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 return self.conf.get("translate", "service_site")
302
303 def proxy(self):
304 try:
305 sec = "proxy"
306 switch = self.conf.get(sec, "switch")
307 proxy = self.conf.get(sec, "proxy")
308 timeout = self.conf.getint(sec, "timeout")
309 retry = self.conf.getint(sec, "retry")
310 proxytype = self.conf.get(sec, "type")
311 iniProxy = IniProxy(switch, proxy, timeout, retry, proxytype)
312 return iniProxy
313 except ValueError:
314 self._exit("common")
315
316 def cacert_file(self) -> str:
317 return self.conf.get('proxy', 'cacert_file')

Callers 13

config.pyFile · 0.80
get_data_from_jsonFunction · 0.80
trailer_downloadFunction · 0.80
image_downloadFunction · 0.80
get_htmlFunction · 0.80
post_htmlFunction · 0.80
get_html_sessionFunction · 0.80
get_html_by_browserFunction · 0.80
get_html_by_formFunction · 0.80
get_html_by_scraperFunction · 0.80

Calls 2

_exitMethod · 0.95
IniProxyClass · 0.85

Tested by

no test coverage detected