Closed deeeeeelan closed 5 months ago
Hey @deeeeeelan, thanks for the issue.
You can pregenerate your endpoints like:
import json
from requests_ip_rotator import ApiGateway
gateway = ApiGateway("https://site.com")
endpoints = gateway.start()
print(json.dump(endpoints))
Then store these endpoints and do not close the gateway.
In your lambda, you can then do:
from requests_ip_rotator import ApiGateway
gateway = ApiGateway("https://site.com")
gateway.start(endpoints=[...]) #replace with your endpoints
Then there will be no delay.
Hope this helps
cool @Ge0rg3 , thanks for your prompt reply. its working at the moment, but im still getting kicked with captcha by my target currently haha. still lurking around for a scrape project to bypass this site captcha/protection.
Hahah its tough, feel free to message me privately if you want some help, my email is on https://georgeom.net/
Are there any way i can use the ApiGateway object created from my local machine on my Lambda without invoking the gateway.start() method ? reason on Lambda currently its quite slow, i just want to use it without having an error on endpoints, this is my snippet that i tested on my local.
google.com is just a dummy target btw
`