Skip to content

Commit 676e876

Browse files
committed
test(proxy-checker): update proxy address and enhance check_proxy call with additional parameters
1 parent 5d8fb0b commit 676e876

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎tests/test.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
checker = ProxyChecker(verbose=False)
44
print(f"my IP {checker.ip}")
5-
proxy = "3.98.231.179:3128"
5+
proxy = "157.175.43.137:797"
66
ip = proxy.split(":")[0]
77
print(f"proxy IP {ip}")
8-
result = checker.check_proxy(proxy, True)
8+
result = checker.check_proxy(
9+
proxy=proxy, check_all_protocols=True, check_address=True, check_country=True
10+
)
911
print(result)
12+
print(f"latency: {result.latency} ms")
13+
print(f"anonymity: {result.anonymity}")
1014
print(f"is proxy ip same {checker.ip == ip}")

0 commit comments

Comments
 (0)