How to achieve an IP change in 3 sec with Python? Any working methods? or Is it possible to do an IP

18 Replies, 1339 Views

Yo! For an ip change in 3 sec python, you might wanna check out Tor + Stem library.

It’s not exactly 3 sec, but close enough if you tweak it.

Here’s a quick snippet:
```python
from stem import Signal
from stem.control import Controller

with Controller.from_port(port=9051) as controller:
controller.authenticate()
controller.signal(Signal.NEWNYM)
```
You’ll need Tor running tho. Not the simplest, but it works!

Messages In This Thread



Users browsing this thread: 1 Guest(s)