nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 185 forks source link

How to add multiple http proxy addresses? #225

Closed xukai504087493 closed 1 year ago

xukai504087493 commented 1 year ago

How to add multiple http proxy addresses? such as:

proxies_example = { "https": "192.168.1.2:2000", "http": "192.168.1.2:2000"}

proxies_example = { "https": "192.168.1.3:3000", "http": "192.168.1.3:3000"}

In case a proxy cannot access, another proxy can be used instead.

Thanks a lot!

Arsh1219 commented 1 year ago

you can simply use for loop to try all proxies one by one.

nidhaloff commented 1 year ago

Hi, I would say use a for loop.