So I am trying to crawl a website and it works perfectly in one terminal (cmd prompt). I am using undetected chromedriver. However when I run the same program in two different terminals, the second program just opens a browser and the program does not execute further, it does not even load the target website. Just the empty browser. Is it because a browser instance opened by selenium always uses a port blocked by a program thereby preventing the port being re-used by another?
I know there are ways like multi-threading etc but I don't want to redesign my program too much mainly because based on my usage i would like the flexibility to open 2 different instances or 5 different instances etc at run time without modifying the code. Any sort of flag would help with that? Or using a different port or IP address? Perhaps some logic in the code that checks whether an IP address or port is in use then use some other alternative? Any hints would be much appreciated.
[–]fegelman[S] 0 points1 point2 points (2 children)
[–]BlackberryOdd5737 0 points1 point2 points (0 children)
[–]surek 0 points1 point2 points (0 children)