Skip to content

codingwithdevil/ProxyToolKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProxyToolKit

All New way to check and Scrape Proxy in Detail

ProxyToolKit is a Python script that Scrape Proxy from Multiple websites and return proxy according to users wish
also check Proxy and retun a dict as responce contain [ Porotocol type, Latency, Country, Checked Time, Anonimity ]


ProxyToolKit Contain 2 Classes: ScrapeProxy, CheckProxy

ScrapeProxy Class

This Class used to Scape Proxyies and retun as a list

Install Via pip

pip install ProxyToolKit

Usage:
proxy = ScrapeProxy().scrape(type_)
Print(proxy)
"## responce"
[
    {'ip': ip , 'port':port, 'protocols':protocols, 'country': '', 'anonymity': '', 'latency': '', 'last_checked': '', remote_address: '' },
    {'ip': ip , 'port':port, 'protocols':protocols, 'country': '', 'anonymity': '', 'latency': '', 'last_checked': '', remote_address: '' },
]

Types : ['all','http','https','socks4','socks5']
all: all protocol like 'http','https','socks4','socks5'
http: retune Http Proxys
https: retune Https Proxys
socks4: retune Socks4 Proxys
s socks5: retune Socks5 Proxys

CheckProxy Class

This Class used to Scape Proxyies and retun as a dict: sampel:
{
'status': status,
'proxy': proxy,
'protocols':protocols,
'country': country,
'anonymity': anonymity,
'latency': timeout,
'last_checked': Checked time,
remote_address: Remote address
}

Usage:
proxy = ScrapeProxy().scrape(type_)
Print(proxy)
"## responce"
"[x.x.x.x:port,......]"
result =CheckProxy().check_proxy(proxy:str, check_country=True, check_address=True)
print(result)
### responce:
{
    'status': status,
    'proxy': proxy,
    'protocols':protocols,
    'country': country,
    'anonymity': anonymity,
    'latency': timeout,
    'last_checked': Checked time,
}

Note: cheking proxies one proxy at a time:
*proxy:str = Proxy eg: 'x.x.x.x:0000'
check_country=True; For check which contry the proxy is; By default it set as "True"
check_address=True; For get remote remote address; By default it set as "True"

Up-Coming Update:

[1] Inbuild looping
[2] Inbuild Database For Save Checked Proxies
[3] More Proxys responce
[3] Advanced Details about checked Proxies
[4] Stablized multi threading for faster checking

Donate

USDT (ERC-20) 0xc6fe979f191e251b92f71f35353ae658bff68b80
Ethereum (ERC-20) 0xc6fe979f191e251b92f71f35353ae658bff68b80
Bitcoin (BTC) 1N4dMtYgQCdRFSCcgKXSECxiwndeoqZZ5r


support us on:

About

All New way to check and Scrape Proxy in Detail

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages