compatible-crimson
compatible-crimson2y ago

Dealing with occasional 2fa dialog

Hi, I'm trying to scrape a website that, in some cases, asks for a 2fa code. What is the easiest way to enter in the username, password, and 2fa code (if it is exposed) into the login form? In cases where the 2fa modal is not exposed, we don't need to enter that code.
2 Replies
compatible-crimson
compatible-crimsonOP2y ago
I think ChatGPT was able to answer my question. A follow up question: how do I deliver the 2fa code to apify? Is there a way for the api actor to receive a rest request?
Lukas Krivka
Lukas Krivka2y ago
Delivering to Apify is the easier part but you need a provider that can intercept that 2FA. A service like Twilio does that.

Did you find this page helpful?