Ge0rg3/requests-ip-rotator

Shut down gateway after keyboard keyboard interrupt?

JanEricNitschke opened this issue · 1 comments

Hi, i am new to this. What happens if i stop a script via keyboard interrupt (it because it errors) before gateway.shutdown() is reached.
Is there a way to shut it down afterwards? Either via a script or the AWS website?

Hi! You can shutdown any site by doing:

from requests_ip_rotator import ApiGateway
gateway = ApiGateway("https://site.com")
gateway.shutdown()

Or by re-running your program and not "ctrl-c"ing 😄