How to avoid linkedin checkpoint checks when logging in

leventopoulo

Newbie
Joined
Jul 8, 2020
Messages
6
Reaction score
0
Hey guys,

I want to automate a login process of some LinkedIn accounts using selenium.
Currently If I log in to an account it asks for a email code verification. If I do this on all accounts then It will trust my accounts and allow me to do my job for a while until it throws a captcha. After that I switch vpn servers however it then does not trust my accounts anymore and asks for email verification again.

Any work arounds?
 
Solution:
I figured it out myself. So for anyone in the future, there is a package called email in python which you can use to receive emails via imap and get the latest verification code after a little regex and parsing. Be sure to enable unsafe apps on your google accounts. You can use the verification code to log in to linked in easily with selenium.
 
Back
Top