Proxy IP Object definition.
Project description
BE Proxy IP
Defining Proxy IP object
How to install
pip install be-proxy-ip
How to init ProxyIP object
Using ProxyIP init
>>> from be_proxy_ip import ProxyIP
>>> p = ProxyIP(proxy_ip='1.2.3.4',
.... proxy_port=8888,
.... proxy_username='hello',
.... proxy_pwd='doyouknow',
.... request_ip='1.2.3.4')
>>> print(p)
ProxyIP(proxy_ip='1.2.3.4', proxy_port=8888, request_ip='1.2.3.4', proxy_id=-1, num_ok_requests=0, num_banned_requests=0, num_timedout_requests=0, proxy_username='hello', proxy_pwd='*********', counted=0)
Using ProxyIP.create_from_tuple
Order in PROXY_INFO tuple
proxy_id
proxy_ip
proxy_port
proxy_username
proxy_pwd
last_request_time
num_ok_requests
num_banned_requests
num_timedout_requests
counted
request_ip
>>> PROXY_INFO = [
... 1, '1.2.3.4', 3999, 'hello-proxy', 'hellop-proxy-pwd',
... -1, 11, 22, 33, 44, '4.5.6.7'
... ]
>>> from be_proxy_ip import ProxyIP
>>> p = ProxyIP.create_from_tuple(PROXY_INFO)
>>> print(p)
ProxyIP(proxy_ip='1.2.3.4', proxy_port=3999, request_ip='4.5.6.7', proxy_id=1, num_ok_requests=11, num_banned_requests=22, num_timedout_requests=33, proxy_username='hello-proxy', proxy_pwd='****************', counted=44)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
be-proxy-ip-1.2.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file be-proxy-ip-1.2.0.tar.gz
.
File metadata
- Download URL: be-proxy-ip-1.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99dad2f9b5f431752341083f3be09498058db52133ed770634701e1118bbeca |
|
MD5 | 96dca8dbc7511bc688c77fc8e2f3ba63 |
|
BLAKE2b-256 | 75ec71478e515a5b58ef046dacb73b5e818fc5120a0b08031856236eaf032168 |
File details
Details for the file be_proxy_ip-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: be_proxy_ip-1.2.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4582091c6f2b192b9abc203dab87c429a33283b3e8091445575ba885418ebd19 |
|
MD5 | 392d9dee2ff9d1f7d5c83df19db40f42 |
|
BLAKE2b-256 | 45f57cc5aa8401a002b35f28caa783082d3002d9de6ee93f5a4e9e21508ab395 |