Skip to main content

Your project description here

Project description

Proxlist

Retrieve proxy servers.

Build Status Coverage Status PyPi Licence

Showcase

Finding and storing a list of proxies can be taxing. Simply import proxlist and have it give you a rotating random proxy to run your requests through.

The list of currently configured proxies have SSL support, were tested to be able to accept connections (3 independant tests to ensure consistency), and were able to serve requests within 15 seconds (your mileage may vary based on the content you are sending/receiving through the proxy and where you are located in the world, if you receive timeouts, simply bump the timeout up or try again). This may change over time as proxies change and the list gets updated.

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

These proxies come from all over the world and may not be performant, this package is intended for testing purposes and I make no guarantee about where the data sent through these proxies goes - this package should not (yet) be considered for production applications.

Install

# Install tool
pip3 install proxlist

# Install locally
make install

Usage

import proxlist
import requests

proxy = proxlist.random_proxy()

# Alternatively, you could get the entire list of configured proxies
# proxies = proxlist.list_proxies()

proxies = {
    'http': f'http://{proxy}',
    'https': f'http://{proxy}',
}

response = requests.get('https://google.com', proxies=proxies)
print(response.text)

Development

# Get a comprehensive list of development tools
make help

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

proxlist-0.1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

proxlist-0.1.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page