An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# python-proxy-bonanza

A lightweight client to get proxies from Proxy Bonanza service.

[![Build Status](https://travis-ci.org/victormartinez/python_proxy_bonanza.svg?branch=master)](https://travis-ci.org/victormartinez/python_proxy_bonanza)
[![Code Health](https://landscape.io/github/victormartinez/python_proxy_bonanza/master/landscape.svg?style=flat)](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
```