Skip to content
Advertisement

Selenium Threads: how to run multi-threaded browser with proxy ( python)

I’m writing a script to access a website using proxies with multiple threads but now I’m stuck in multiple threads, when I run the script below, it opens 5 browsers but all 5 use 1 proxy, I want 5 browsers to use different proxies, can someone help me complete it? thank you

Here is my script :

JavaScript

(Wish everyone has a happy and lucky new year)

Advertisement

Answer

Dominik Lašo captured it correctly – each threads processes the file from the beginning. Here’s probably how it should look like:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement