F
F
fleen2020-11-16 17:37:11
Python
fleen, 2020-11-16 17:37:11

Httpx.AsyncClient how to update proxy on client?

In general, there is a code:

def rand_proxy()
    Подключается к базе, достаёт прокси и заканчивается:
    return prox

client = httpx.AsyncClient(proxies={'http': rand_proxy()}

And I don’t understand how you can update the proxy on the client, let’s say after 30 seconds

. If you know, you could not help)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question