Package: proxyCheck-mp
Proxy Checker MpHow to use ?1-) Module Install and ImportInstall ModulepipinstallproxyCheck-mppip3installproxyCheck-mpImport ModulefromproxyCheckerimportProxyController2-) proxyController class must be called.prxCont=ProxyController()3-) User-agent default value and reassign.Default Value ;getDefaultUseragent()-->"windows""Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"Assigning a new value ;prxCont=ProxyController()#First methodprxCont.userAgent='Mozilla/5.0 (Linux; U; Android 2.2) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'#Second methodprxCont.userAgent=getDefaultUseragent("linux")-->linuxuser-agent#Operating systems defined in the getDefaultUseragent() method. --> Windows,Linux,Macos,Android,Iphone,Ipad,Ipod#Third methodprxCont.userAgent=randomUserAgent()-->arandomuser-agent# When this method calls, it fetches a random user agent from the Eight Thousand-element list.3-) The proxyControl method bound to the proxyController class must be called.prxCont.proxyControl(proxys , url , timeout , max_redirects, details)Parameter Details ;
proxies  -> Proxies parameter must be list or str. (List or String)
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)
max_redirects -> Determines whether redirects are used. Default max_redirects = (False,300) >> (use,value)
details -> Information message about whether the proxy is working or not. (True or False) Default = True4-) Output - SuccessfullprxCont=ProxyController()prxCont.userAgent=prxCont.randomUserAgent()# Singularproxy="117.251.103.186:8080"responce=prxCont.proxyControl(proxy)print(responce)#output _>ProxyIp:117.251.103.186--ProxyType:IPv4--Country:India--Region:Chandigarh--AvagereTimeOut:1.26snYourUser-Agent=Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/92.0.4515.131Safari/537.36Protocol:http-ConnectionSuccessfull-117.251.103.186RESPONCE:{'Proxy':'117.251.103.186','ProxyType':'IPv4','Protocol':'http','Country':'India','Region':'Chandigarh','AvagereTimeOut':1.2850966453552246,'Color':'\x1b[38;5;112m','user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'}responce=prxCont.proxyControl(proxy,detail=False)print(responce)#output2 _>RESPONCE:{'Proxy':'117.251.103.186','ProxyType':'IPv4','Protocol':'http','Country':'India','Region':'Chandigarh','AvagereTimeOut':1.2850966453552246,'Color':'\x1b[38;5;112m','user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'}# Multipleproxies=["117.251.103.186:8080","178.48.68.61:4145","181.215.178.39:1337"]responce=prxCont.proxyControl(proxies)print(responce)#output _>ProxyIp:178.48.68.61:4145--ProxyType:IPv4--Country:Hungary--Region:WesternTransdanubia--AvagereTimeOut:0.89snYourUser-Agent=Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/92.0.4515.131Safari/537.36Protocol:socks4-ConnectionSuccessfull-178.48.68.61:4145ProxyIp:181.215.178.39:1337--ProxyType:IPv4--Country:UnitedArabEmirates--Region:AbuDhabiEmirate--AvagereTimeOut:0.67snYourUser-Agent=Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/92.0.4515.131Safari/537.36Protocol:http-ConnectionSuccessfull-181.215.178.39:1337RESPONCE:[{'Proxy':'178.48.68.61:4145','ProxyType':'IPv4','Protocol':'socks4','Country':'Hungary','Region':'Western Transdanubia','AvagereTimeOut':0.8949407736460367,'Color':'\x1b[38;5;112m','user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'},{'Proxy':'181.215.178.39:1337','ProxyType':'IPv4','Protocol':'http','Country':'United Arab Emirates','Region':'Abu Dhabi Emirate','AvagereTimeOut':0.6718703111012777,'Color':'\x1b[38;5;112m','user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'}]proxies=["117.251.103.186:8080","178.48.68.61:4145","181.215.178.39:1337"]responce=prxCont.proxyControl(proxies,details=False)print(responce)#output2 _>RESPONCE:[{'Proxy':'178.48.68.61:4145','ProxyType':'IPv4','Protocol':'socks4','Country':'Hungary','Region':'Western Transdanubia','AvagereTimeOut':0.8949407736460367,'Color':'\x1b[38;5;112m','user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'},{'Proxy':'181.215.178.39:1337','ProxyType':'IPv4','Protocol':'http','Country':'United Arab Emirates','Region':'Abu Dhabi Emirate','AvagereTimeOut':0.6718703111012777,'Color':'\x1b[38;5;112m','user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36'}]4-) Output - UnSuccessfulprxCont=ProxyController()proxies=["0.0.0.0:18","1.1.1.1:80","11.11.11.11:8080"]responce=prxCont.proxyControl(proxies)print(responce)#output _>Theconnectionisunstable-0.0.0.0:18Theconnectionisunstable-1.1.1.1:80Theconnectionisunstable-11.11.11.11:8080Noneproxies=["0.0.0.0:18","1.1.1.1:80","11.11.11.11:8080"]responce=prxCont.proxyControl(proxies,details=False)print(responce)#output2 _>None