You can check the availability of the proxy.
Project description
Proxy Checker Mp
How to use ?
1-) Module Install and Import
- Install Module
pip install proxyCheck-mp
pip3 install proxyCheck-mp
- Import Module
from proxyChecker.proxyCheck import ProxyController
2-) proxyController class must be called.
prxCont = ProxyController() >> userAgent Parameter
Default Parameter ;
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
3-) 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
4-) Output
prxCont = ProxyController()
proxyList = ["0.0.0.0:18","1.1.1.1:80","11.11.11.11:8080"]
prxCont.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.
prxCont.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.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for proxyCheck_mp-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5044b801095ea9119f6c5cc65fec23700aab158e27a0ded39bb4b748394fb425 |
|
MD5 | d3a84b65c2c5a14c1f78141c29f382b4 |
|
BLAKE2b-256 | 4718f730fdb78cc2e225098076c62c2e38a021f25e70974eceb8139127a392f8 |