Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question