#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @author lubo
# @since 2020-10-04
#
from hub.util.http_client import get, get_proxy


def random_proxy():
    """
    custom proxy http:port
    :return: http:port
    """
    _dict = get_proxy()

    if _dict.get('code') == 200:
        return _dict.get('data').get('proxy')


if __name__ == '__main__':
    print(random_proxy())

78367fd56aca936cf7a5d58e79c081b5bb4f31b2
<mask token>

<mask token>


def random_proxy():
    """
    custom proxy http:port
    :return: http:port
    """
    _dict = get_proxy()
    if _dict.get('code') == 200:
        return _dict.get('data').get('proxy')


<mask token>

<mask token>


def random_proxy():
    """
    custom proxy http:port
    :return: http:port
    """
    _dict = get_proxy()
    if _dict.get('code') == 200:
        return _dict.get('data').get('proxy')


if __name__ == '__main__':
    print(random_proxy())

from hub.util.http_client import get, get_proxy


def random_proxy():
    """
    custom proxy http:port
    :return: http:port
    """
    _dict = get_proxy()
    if _dict.get('code') == 200:
        return _dict.get('data').get('proxy')


if __name__ == '__main__':
    print(random_proxy())

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @author lubo
# @since 2020-10-04
#
from hub.util.http_client import get, get_proxy


def random_proxy():
    """
    custom proxy http:port
    :return: http:port
    """
    _dict = get_proxy()

    if _dict.get('code') == 200:
        return _dict.get('data').get('proxy')


if __name__ == '__main__':
    print(random_proxy())
