import requests


def getProxiesFrom_pubproxy(number=10):
    """
    Get dynamic proxies list from http://pubproxy.com/api/proxy

    """
    params = {
        'country': 'US,CA',
        'type': 'http',
        'https': 'true',
        'speed': 9,
        'limit': number,
    }
    url = "http://pubproxy.com/api/proxy"
    result = requests.get(url, params=params)
    if result.ok is True:
        try:
            return result.json().get('data', [])
        except ValueError:
            pass
    return []