I'm trying to build a bot but I need it that Tor will change servers every time I refresh the page. I could also use one if I get to manually change it using a command line. Any suggestions?
Yes. You can use stem.
Assuming your Tor control port is 9051 and no cookie or password is needed, the following code will initialize a controller object.
import stem import stem.control controller=stem.control.Controller.from_port() controller.authenticate()
Then, each time you want a new circuit, you can use
By default, Tor will only establish a new circuit in this way at most every 10 seconds. If you want to have new circuits more frequently, you will need to changed the source code.
MAX_SIGNEWNYM_RATE means the interval in seconds (although its name suggests the rate) at which it will accept the signal