Ge0rg3 / requests-ip-rotator

A Python library to utilize AWS API Gateway's large IP pool as a proxy to generate pseudo-infinite IPs for web scraping and brute forcing.
https://pypi.org/project/requests-ip-rotator/
GNU General Public License v3.0
1.36k stars 140 forks source link

Shut down gateway after keyboard keyboard interrupt? #28

Closed JanEricNitschke closed 2 years ago

JanEricNitschke commented 2 years ago

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?

Ge0rg3 commented 2 years ago

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 😄