MCPcopy
hub / github.com/SpiderClub/haipproxy / construct_proxy_url

Method construct_proxy_url

crawler/spiders/base.py:163–165  ·  view source on GitHub ↗

construct proxy urls so spiders can directly use them

(self, scheme, ip, port)

Source from the content-addressed store, hash-verified

161 return True
162
163 def construct_proxy_url(self, scheme, ip, port):
164 """construct proxy urls so spiders can directly use them"""
165 return '{}://{}:{}'.format(scheme, ip, port)
166
167 def exists(self, url, *flags):
168 """check whether the flag in url or not"""

Callers 10

parse_commonMethod · 0.95
parse_jsonMethod · 0.95
parse_raw_textMethod · 0.95
parse_gather_proxyMethod · 0.80
parse_xroxyMethod · 0.80
parse_cnproxyMethod · 0.80
parse_free_proxyMethod · 0.80
parse_proxylistMethod · 0.80
parse_goubanjiaMethod · 0.80
parse_my_proxyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected