Skip to main content

Proxlist

Retrieve free, open-source proxy servers.

Build Status Coverage Status PyPi Licence

Showcase

Finding and storing a list of proxies can be taxing - especially ones that are free and actually work. proxlist will validate and return a rotating random proxy so you don't need to keep a list of proxies or ensure the list is still valid.

Proxies are returned in the form of strings (eg: ip:port).

These proxies come from all over the world and may not be performant for a production application. Instead, you should use a paid proxy service or a self-hosted solution. This package is intended for testing purposes and there are no guarantees about where the data sent through these proxies goes or how it's handled. The list and quality of proxies rotates rapidly - your mileage may vary.

Install

# Install tool
pip3 install proxlist

# Install locally
just install

Usage

import proxlist
import requests

# Get a random proxy
proxy = proxlist.random_proxy()

# You can also filter proxies by country or google_verified
proxies = proxlist.random_proxy(country='US', google_verified=True)

# Alternatively, you could get the entire list of current proxies (and could optionally filter them like above)
proxies = proxlist.list_proxies()

# Depending on the proxy and your location in the world, you may need to adjust the timeout
# to provide the proxy enough time to route your request. Additionally, some of these proxies
# may be unstable - adding retry logic is highly recommended. Caching a working proxy is also
# a good idea with a fallback of retrying if the cached proxy no longer works or times out.
response = requests.get(
    'https://google.com',
    proxies={
        'http': f'http://{proxy}',
        'https': f'http://{proxy}',
    },
    timeout=10,
)

print(response.text)

Development

# Get a comprehensive list of development tools
just --list

Metadata

Release files for proxlist 2.0.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 proxlist 2.0.0
File Size Uploaded
proxlist-2.0.0.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proxlist 2.0.0
File Interpreter ABI Platform
proxlist-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / proxlist-2.0.0.tar.gz

Download URL proxlist-2.0.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
aff2114d5d08db361ab45d8f4a27db190f897746d89f35bd15bcb129dc1df774
BLAKE2b-256 checksum
How to use checksums
70d126927c961e4b3fca0d9f443fd3e96c22f207d40172afd09a61b97f10d4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / proxlist-2.0.0-py3-none-any.whl

Download URL proxlist-2.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21b621a8fab7cd99728301db32464f2baef8dabc6ba1c249e83b8ee8cc3a2966
BLAKE2b-256 checksum
How to use checksums
d6381c82b844f1abda91ed7810a638ab588f5949ad7b76d57cc922842d6afe1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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