You can check the availability of the proxy.
Project description
Proxy_Checker
How to use ?
1-) proxyController class must be called.
prxCont = ProxyController()
2-) The proxyControl method bound to the proxyController class must be called.
prxCont.proxyControl(proxys , url , timeout , details)
Parameter Details ;
proxy -> You have to give the list structure. (List)
url -> Give url to check proxy. (https-http) Default = https://www.google.com
timeout -> Set a waiting time to connect. Default timeout = (3.05,27) >> (connect,read)
details -> Information message about whether the proxy is working or not. (True or False) Default = True
3- Output
prxCont = ProxyController()
proxyList = ["0.0.0.0:18","1.1.1.1:80","11.11.11.11:8080"]
prxConn.proxyControl(proxyList)
#output _>
The connection is unstable - 0.0.0.0:18
The connection is unstable - 1.1.1.1:80
The connection is unstable - 11.11.11.11:8080
Proxy attempt finished.
None of the proxies you provided are working.
prxConn.proxyControl(proxyList,detail=True)
#output2 _>
Proxy attempt finished.
None of the proxies you provided are working.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proxyCheck_mp-0.0.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for proxyCheck_mp-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ce36528e2ad2d94157153e86cc03b727f87cf99e312c6d87b8d825dcde36b7 |
|
MD5 | 242ff7aff1290cae6204797278336342 |
|
BLAKE2b-256 | 830712a4984b222b0923cc498fc199a02d83f7d7a4ba5ba0e3a187cbd3d22333 |