semvec/pypi-packages huggingface dataset:
free-proxy-list 0.0.3
This package is to get free proxy ips and port number for scraping and for testing on proxy.
Keywords: proxy,server,scraping,request,python,selenium

# Free Proxy List

This library is for testing purpose while scraping.

## Installation

    pip install free-proxy-list


## Usage
```python
    from proxy_list import ProxyList
    
    proxy_list = ProxyList()
```

### Get all Proxies?

#### Request	 
Call `get_all_proxies()` to all the proxies in list form with its ports.
```python
proxy_list.get_all_proxies()
```
#### Response     
The response would be in form of multiple list of IP and Port.

```python
    [('0.0.0.0','8080'),('0.0.0.0','9090'), and so on]
```

### Get Random Proxy?

#### Request	 
Call `get_random_proxy()` to get a single proxy to use directly in code.

```python
proxy_list.get_random_proxy()
```
    
#### Response     
The response would be in form of `dictionary` of IP and Port.

    {'https': '0:0:0.0:8080'}

## How to use in requests?
Official documentation of requests. [Requests](https://docs.python-requests.org/en/master/)

```python
from proxy_list import ProxyList

proxies = ProxyList()
r = requests.get(url, proxies=proxies.get_random_proxy())
```