Skip to main content

proxyCheck Python3 proxyCheck proxyCheck

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 import ProxyController

2-) 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 method
prxCont.userAgent = 'Mozilla/5.0 (Linux; U; Android 2.2) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'

#Second method
prxCont.userAgent = getDefaultUseragent("linux") --> linux user-agent
#Operating systems defined in the getDefaultUseragent() method. --> Windows,Linux,Macos,Android,Iphone,Ipad,Ipod

#Third method
prxCont.userAgent = randomUserAgent() --> a random user-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 = True

4-) Output - Successfull

prxCont = ProxyController()
prxCont.userAgent = prxCont.randomUserAgent()

# Singular
proxy = "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.26sn
	Your 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
	Protocol : http - Connection Successfull - 117.251.103.186
	
	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'}

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'}

# Multiple
proxies = ["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 : Western Transdanubia -- AvagereTimeOut : 0.89sn      
	Your 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
	Protocol : socks4 - Connection Successfull - 178.48.68.61:4145
	ProxyIp : 181.215.178.39:1337 -- ProxyType : IPv4 -- Country : United Arab Emirates -- Region : Abu Dhabi Emirate -- AvagereTimeOut : 0.67sn
	Your 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      
	Protocol : http - Connection Successfull - 181.215.178.39:1337
	
	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'}]
	
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 - UnSuccessful

prxCont = ProxyController()
proxies = ["0.0.0.0:18","1.1.1.1:80","11.11.11.11:8080"]
responce = prxCont.proxyControl(proxies)
print(responce)
#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
	None
	
proxies = ["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

Metadata

Release files for proxyCheck-mp 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proxyCheck-mp 0.3.0
File Size Uploaded
proxyCheck_mp-0.3.0.tar.gz 117.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxyCheck-mp 0.3.0
File Interpreter ABI Platform
proxyCheck_mp-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 242.9 kB

Release files / proxyCheck_mp-0.3.0.tar.gz

Download URL proxyCheck_mp-0.3.0.tar.gz
Size 117.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7129229ac2b983674b8defbdf083d33702ed1c9c790a1f19a2486c597c69757b
BLAKE2b-256 checksum
How to use checksums
b3b93dccc2117e4c390365f1b5397945ec816e282e48e099f18df67dd453ddf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

Release files / proxyCheck_mp-0.3.0-py3-none-any.whl

Download URL proxyCheck_mp-0.3.0-py3-none-any.whl
Size 125.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25788d8c6f6549b36c613eec952d2b0ba1845cd15ba96d63d7261c5e56df8ca3
BLAKE2b-256 checksum
How to use checksums
8a026ed210ee8c35ee560b258af7f774582a49202e5c4ae4a8732ef3272f8ce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page