Skip to content

Commit

Permalink
Merge pull request #71 from aatakansalar/main
Browse files Browse the repository at this point in the history
Fixing Email Verification Token Retrieval Issue
  • Loading branch information
vladkens authored Sep 19, 2023
2 parents 745bc59 + 4f5d3d6 commit 20339b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twscrape/imap.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _wait_email_code(imap: imaplib.IMAP4_SSL, count: int, min_t: datetime | None
if min_t is not None and msg_time < min_t:
return None

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

Expand Down

0 comments on commit 20339b3

Please sign in to comment.