C
C
cyberp19832020-09-09 04:35:42
bash
cyberp1983, 2020-09-09 04:35:42

How to set proxy for linux terminal?

The problem is this, I work with a python script, but I need to periodically change ip, and several terminals work at the same time and I need to set a proxy for each one. Using export all_proxy, I can set the proxy only before the script is launched, while the os.system('export all_proxy**** command has no effect during the script execution, the proxy that was set before the script was launched is used.

How can I assign a proxy from the proxy_list while executing a python script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zlo1, 2020-09-09
@zlo1

local server proxy intermediary (3proxy)
specify 3proxy in all_proxy, and change the proxy in the 3proxy configuration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question