PyTor is a simple framework that enables the automatic creation of new Tor sessions. PyTor is created with asynchronous opperations in mind.
PyTor supports as many sessions as you have available ports
#start a new pytor sessionpytor=PyTor.Session()
pytor.start()
#get public ip using pytor proxyres=requests.get("https://api.ipify.org", proxies={"http": pytor.getProxy(), "https": pytor.getProxy()})
print(res.text)
#request a new public ippytor.newIP()
res=requests.get("https://api.ipify.org", proxies={"http": pytor.getProxy(), "https": pytor.getProxy()})
print(res.text)Implement a session manager that can keep track of all the sessions.
Clean up temp files.
Specify allowed ports.