I
I
Ilkhomjon Matazimov2020-08-15 14:50:57
Python
Ilkhomjon Matazimov, 2020-08-15 14:50:57

How to make python modules work through a proxy?

For example, the telethon module.
How can I make this module work through a proxy (eg socks5)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-08-15
@bacon

You were already answered in the last question that no way. It is not the module that needs to be configured, but the environment.
ZY and spammers in general should be excruciated.

Z
zlo1, 2020-08-19
@zlo1

under Linux there is a proxychains utility, it works well with socks4 and socks5 proxy
for each process, you can specify a separate config
(in which the proxy is registered)
proxychains
-f config1.cfg python program.py
proxychains -f config2.cfg python program.py
... .proxychains
-f configN.cfg python program.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question