<gh_stars>1-10
"""
This example shows how you can use a proxy if your
country blocks redgifs.com.

This is similiar even if you're using async code.
"""

import redgifs

api = redgifs.API(
    proxy='https://myproxy.com:6969',
    # If your proxy server requires auth
    proxy_auth=redgifs.ProxyAuth('myusername', '<PASSWORD>')
)

api.search('agent')

"""
This example shows how you can use a proxy if your
country blocks redgifs.com.

This is similiar even if you're using async code.
"""

import redgifs

api = redgifs.API(
    proxy='https://myproxy.com:6969',
    # If your proxy server requires auth
    proxy_auth=redgifs.ProxyAuth('myusername', '<PASSWORD>')
)

api.search('agent')
This example shows how you can use a proxy if your country blocks redgifs.com.  This is similiar even if you're using async code. # If your proxy server requires auth