Free to use http, socks4 and socks5 proxies
Project description
pyfreeproxies
Free to use http, socks4 and socks5 proxies based on free-proxies.
Installation
pip install -U pyfreeproxies
Usage
-
FreeProxies
from pyfreeproxies import FreeProxies proxy = FreeProxies() proxy.get_http_proxies() # http proxies proxy.get_socks4_proxies() # socks4 proxies proxy.get_socks5_proxies() # socks 5 proxies proxy.get_combined_proxies() # http, socks4, socks5 combined. proxy.get_random_proxies() # Select from the lists randomly. proxy.get_confirmed_working_proxies() # list of functional tested proxies proxy.get_proxies_metadata({"country": "United States",}) # filter with proxy metadata keys. proxy.proxies_update_available # check if there's an update to proxies.
-
IP Metadata
from pyfreeproxies import FreeProxies import pyfreeproxies.utils as proxies_util http_proxies = FreeProxies().get_socks4_proxies() proxy_metadata = proxies_util.trace_ip(http_proxies[0]) print(proxy_metadata) # <class 'pyfreeproxies.models.ProxyMetadataModel'> """ status='success' country='Vietnam' countryCode='VN' region='CT' regionName='Can Tho' city='Can Tho' zip='' lat=10.0359 lon=105.7808 timezone='Asia/Ho_Chi_Minh' isp='Viettel Corporation' org='VIETEL' as_='AS7552 Viettel Group' query='171.248.211.25' response_time=None continent=None continentCode=None district=None offset=None currency=None asname=None reverse=None mobile=None proxy=None hosting=None """
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfreeproxies-0.2.0.tar.gz
(21.0 kB
view hashes)