Skip to content

Commit 4f5d3d6

Browse files
committed
Fixing Email Verification Token Retrieval Issue
Changing the value msg_from (where the verification email is sent from) is compared to. Instead of "info@twitter.com", it should check for "info@x.com" as the verification code seems to be sent from this email now. Fixes the "Error in LoginAcid: Email code timeout" error in my case.
1 parent 745bc59 commit 4f5d3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twscrape/imap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _wait_email_code(imap: imaplib.IMAP4_SSL, count: int, min_t: datetime | None
5555
if min_t is not None and msg_time < min_t:
5656
return None
5757

58-
if "info@twitter.com" in msg_from and "confirmation code is" in msg_subj:
58+
if "info@x.com" in msg_from and "confirmation code is" in msg_subj:
5959
# eg. Your Twitter confirmation code is XXX
6060
return msg_subj.split(" ")[-1].strip()
6161

0 commit comments

Comments
 (0)