MCPcopy Index your code
hub / github.com/Python3WebSpider/ProxyPool / run_getter

Method run_getter

proxypool/scheduler.py:38–51  ·  view source on GitHub ↗

run getter

(self, cycle=CYCLE_GETTER)

Source from the content-addressed store, hash-verified

36 time.sleep(cycle)
37
38 def run_getter(self, cycle=CYCLE_GETTER):
39 """
40 run getter
41 """
42 if not ENABLE_GETTER:
43 logger.info('getter not enabled, exit')
44 return
45 getter = Getter()
46 loop = 0
47 while True:
48 logger.debug(f'getter loop {loop} start...')
49 getter.run()
50 loop += 1
51 time.sleep(cycle)
52
53 def run_server(self):
54 """

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
GetterClass · 0.90

Tested by

no test coverage detected