A description of your project
Project description
title: Title
summary: "summary"
Proxy Manager - Python
The package is intended to manage a set of proxies, rotating through at random, to prevent blocking. Proxies are dropped from the rotation if they fail multiple times in a row.
VERY EARLY STAGE
Installation
pip install ProxyManager
Basic usage
PROXY_LIST = [
'70.45.80.236:4602',
'70.45.80.236:4603',
'70.45.80.236:4604'
]
URL = 'http://www.myurl.com'
from ProxyManager.core import ProxyManager, Proxy
proxies = [i for i in PROXY_LIST] # OR [Proxy(i) for i in PROXY_LIST]
response = proxies.make_request(URL)
Free Proxies
If you don't bring your own proxies, which is HIGHLY recommended, I have written a function that scrapes https://free-proxy-list.net/ to obtain a set of proxies.
from ProxyManager.free_proxies import get_free
FREE_PROXIES = get_free(10)
proxies = [Proxy('{}:{}'.format(i['ip'], i['port'])) for i in FREE_PROXIES]
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
ProxyManager-0.0.3.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for ProxyManager-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d9cc26184b9960099438a0e30bc0f9809406b3d0b281d3f9f38720d37bedc5 |
|
MD5 | 4602268e4e2132faf784794fd9e60495 |
|
BLAKE2b-256 | 184f075b43210ef0f4c273b0393f6e12d737e8d3de99814c33d3a3c6415b09fd |