https://github.com/victormartinez/python_proxy_bonanza
A lightweight client to get proxies from Proxy Bonanza service
https://github.com/victormartinez/python_proxy_bonanza
bonanza client proxy proxy-bonanza-service python
Last synced: 3 months ago
JSON representation
A lightweight client to get proxies from Proxy Bonanza service
- Host: GitHub
- URL: https://github.com/victormartinez/python_proxy_bonanza
- Owner: victormartinez
- License: mit
- Created: 2016-08-25T05:17:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T17:27:28.000Z (about 5 years ago)
- Last Synced: 2025-12-15T06:25:22.776Z (6 months ago)
- Topics: bonanza, client, proxy, proxy-bonanza-service, python
- Language: Python
- Size: 19.5 KB
- Stars: 3
- Watchers: 0
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-proxy-bonanza
A lightweight client to get proxies from Proxy Bonanza service.
[](https://travis-ci.org/victormartinez/python_proxy_bonanza)
[](https://landscape.io/github/victormartinez/python_proxy_bonanza/master)
## Pypi
https://pypi.python.org/pypi/proxy-bonanza
## Usage
At first it is necessary to get the user package ids and, then, get the proxies available for each id.
```
from proxy_bonanza.client import ProxyBonanzaClient
client = ProxyBonanzaClient(api_key='')
ids = client.get_user_package_ids()
proxies = client.get_proxies()
```
### Obtaining User Package ids
```
> client.get_user_package_ids()
[5478, 9870, 1209]
```
### Obtaining Proxies
```
> client.get_proxies(id1)
{
u'active': True,
u'id': 19316,
u'ip': u'123.45.678.910',
u'modified': u'2016-05-22T06:44:24+0000',
u'port_http': 60099,
u'port_socks': 61336,
u'proxyserver': {
u'georegion': {
u'country': {
u'continent': u'southamerica',
u'eunion': False,
u'flag_image': u'br.gif',
u'id': 15,
u'isocode': u'BR',
u'name': u'Brazil',
u'vat_rate': None
},
u'name': u'Sao Paulo'
},
u'georegion_id': 13
},
u'login': u'fakelogin',
u'password': u'qwerty123'
}
```
### Contributing
1. Clone the repository and set up your environment
1. Develop the feature or fix
1. Create and execute the tests using pytest
1. Open a Pull Request =)
##### Note:
To setup your environment just run:
```console
$ git clone git@github.com:victormartinez/python_proxy_bonanza.git
$ python -m venv
$ pip install -r requirements.txt
$ pip install -r requirements-test.txt
```