Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
This is a port/rewrite of free-proxy with additional features and validations.
SSLProxies pulls a list of free proxies from sslproxies.org
You can choose to select a random proxy, or select a specific proxy by a set of criteria.
SSLProxies also features a ProxyManager that can be used to cache and reuse proxies, including managing their working status.
Proxies are returned as objects with the following properties:
pip install sslproxies
Get a random proxy:
from sslproxies import ProxyManager
proxy = ProxyManager().get_new_proxy()
or
from sslproxies import get_proxy
proxy = get_proxy()
Mark a proxy as working:
from sslproxies import ProxyManager
proxy = ProxyManager().get_new_proxy()
manager = ProxyManager()
manager.mark_proxy_as_working(proxy)
from sslproxies import get_proxy
proxy = get_proxy(countries=['US'], anonymous=True)
countries
parametercountries=None
.proxy = get_proxy(countries=['US', 'BR', 'United States', 'Germany'])
verify
parameterverify=False
.proxy = get_proxy(verify=True)
timeout
parametertimeout=0.5
.proxy = get_proxy(timeout=1)
rand
parameterrand=True
.proxy = get_proxy(rand=True)
anonymous
parameteranonymous=False
.proxy = get_proxy(anonymous=True)
You can combine parameters:
proxy = get_proxy(country_id=['US', 'BR'], timeout=0.3, rand=True, verify=True)
If there is no proxy matching all criteria, get_proxy
returns None
.
These same options are available in get_new_proxy
, get_non_working_proxy
and get_cached_proxy
via the ProxyManager
.
FAQs
A Python package to handle provide free proxies from sslproxies.org.
We found that sslproxies demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.