Yo, f0rg here with yet another question. I’m busy creating a script in Python. Basically the issue lies in using ToR as a way to change the IP as the stem lib documentation states:
“An important thing to note is that a new circuit does not necessarily mean a new IP address. Paths are randomly selected based on heuristics like speed and stability. There are only so many large exits in the Tor network, so it’s not uncommon to reuse an exit you have had previously.”
That could be a issue. My question is, how would I efficiently check the IP to make sure it isn’t duplicates? I was thinking of maybe doing something like this in pseudo code , warning this is ugly:
Try: while(IP ! duplicate): get IP # the first time change_ip if(change_ip == IP): run again else: continue break except Exception: print "Error"
My question is, if I create a function for this… and lets say I use the function in the main function… or whatever… could this possibly work. Thank you in advance. ~Cheers!