MCPcopy Create free account
hub / github.com/Python3WebSpider/ProxyPool / BaseTester

Class BaseTester

proxypool/testers/base.py:4–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class BaseTester(object):
5 test_url = ""
6 key = ""
7 test_dont_set_max_score = TEST_DONT_SET_MAX_SCORE
8 proxy_score_init = PROXY_SCORE_INIT
9 proxy_score_max = PROXY_SCORE_MAX
10 proxy_score_min = PROXY_SCORE_MIN
11
12 def headers(self):
13 return None
14
15 def cookies(self):
16 return None
17
18 async def parse(self, html, url, proxy, expr='{"code":0'):
19 return True if expr in html else False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected