My application uses "twisted.web.client.Agent" to get web content. But for an agent class, an instance of a “reactor” needs to be initiated. If I start my application with "twistd", there will be no "reactor.run ()" at all. So how can I get an instance of a "reactor"?
I would like a better answer , but a way to get the current active reactor in a Twisted app:
from twisted.internet import reactor
, - "" , (, connectTCP -). Agent reactor .
connectTCP
Agent
reactor