MCPcopy Create free account
hub / github.com/awolfly9/IPProxyTool / set_value

Method set_value

proxy.py:58–66  ·  view source on GitHub ↗
(self, ip, port, country, anonymity, source='unkonw', https='no', speed=-1, vali_count=0)

Source from the content-addressed store, hash-verified

56 return data
57
58 def set_value(self, ip, port, country, anonymity, source='unkonw', https='no', speed=-1, vali_count=0):
59 self.ip = ip
60 self.port = port
61 self.country = country
62 self.anonymity = self.get_anonymity_type(anonymity)
63 self.https = https
64 self.speed = speed
65 self.source = source
66 self.vali_count = vali_count
67
68 def get_anonymity_type(self, anonymity):
69 '''There are 3 levels of proxies according to their anonymity.

Callers 14

get_proxy_with_idMethod · 0.95
get_proxy_with_idMethod · 0.95
insertFunction · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95
parse_pageMethod · 0.95

Calls 1

get_anonymity_typeMethod · 0.95

Tested by

no test coverage detected