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. Support filters. proxy.get_proxies_metadata({"country": "United States",}) # filter with proxy metadata keys. proxy.proxies_update_available # check if there's an update to proxies.
-
Update Aware FreeProxies
from pyfreeproxies import UpdateAwareFreeProxies proxy = UpdateAwareFreeProxies() 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. Support filters. proxy.get_proxies_metadata({"country": "United States",}) # filter with proxy metadata keys. proxy.is_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_http_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 """
-
Your IP Metadata
import pyfreeproxies.utils as proxies_util proxy_metadata = proxies_util.trace_me() print(proxy_metadata) # <class 'pyfreeproxies.models.ProxyMetadataModel'> """ status='success' country='Kenya' countryCode='KE' region='30' regionName='Nairobi County' city='Nairobi' zip='09831' lat=-1.28642 lon=*6.8198 timezone='Africa/Nairobi' isp='Jambonet Autonomous System' org='Telephone House' as_='AS12455 Kenyan Post & Telecommunications Company / Telkom Kenya Ltd' query='*1*.167.250.187' response_time=None continent=None continentCode=None district=None offset=None currency=None asname=None reverse=None mobile=None proxy=None hosting=None """
ProxyScrape
from pyfreeproxies import ProxyScrape
scrape = ProxyScrape()
scrape.limit = 1
proxies = scrape.from_model()
print(proxies.total_records)
print(proxies.shown_records)
print(proxies.limit)
print(proxies.skip)
print(proxies.nextpage)
print(proxies.proxies)
Credits
Disclaimer
Please note that this project may involve the use of proxies for various purposes, including but not limited to, web scraping, data collection, or bypassing internet restrictions. It is the user's responsibility to ensure that their use of the project complies with all applicable laws and regulations, including but not limited to, copyright laws, privacy laws, and terms of service of the websites or services being accessed through the proxies.
The authors and contributors of 'freeproxies' are not responsible for any misuse of the project, including but not limited to, any legal consequences that may arise from its use.
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
File details
Details for the file pyfreeproxies-0.2.2.tar.gz
.
File metadata
- Download URL: pyfreeproxies-0.2.2.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ef21da38301ea9a8bdcf0ae20d08ccddc0335693f3cb36bc98367db16f9d8b |
|
MD5 | ea1f8b2bedeea50a8bd45150eb2b7090 |
|
BLAKE2b-256 | e9be44a2459e4952fcfbf99e6c311ee8424d5973d53d65eeebf672e837cc26ab |