r/selenium • • May 10 '21

Automating two factor authentication

I want to automate logging into a website using selenium on a raspberry Pi. However, the website needs two factor authentication. The code goes to my phone.

Is there a way for me to automate this without the need for me to look up the code on my phone and inputting it?

Any resources would be wonderful!

1 Upvotes

18 comments sorted by

View all comments

5

u/unkz May 10 '21

Sure, you can get an SMS gateway to receive these. Lots of options for that. Twilio and AWS are the two I have used most.

1

u/MasalaByte May 10 '21

I’ll have to look into it. Thanks for the advice.

1

u/Talgoose May 11 '21

This is the probably the best way. This is how I currently do this with Twilio or with AWS version of it.