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.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for be_proxy_ip-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2b259dccd1fea45b1740ea3918c08ecf2f9bf47ee6327220e4a402d7ba5fa4 |
|
MD5 | 8a9b013e1f986035e8da5290130fc7de |
|
BLAKE2b-256 | f944fbdd11c2c194c2229d6bafddd251ad7fbee7fd4a4cd5909587c780167a83 |