зеркало из
				https://github.com/viginum-datalab/twscrape.git
				synced 2025-10-30 05:26:20 +02:00 
			
		
		
		
	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.
Этот коммит содержится в:
		
							родитель
							
								
									745bc59b66
								
							
						
					
					
						Коммит
						4f5d3d6f4f
					
				| @ -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: |                 if min_t is not None and msg_time < min_t: | ||||||
|                     return None |                     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 |                     # eg. Your Twitter confirmation code is XXX | ||||||
|                     return msg_subj.split(" ")[-1].strip() |                     return msg_subj.split(" ")[-1].strip() | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Загрузка…
	
	
			
			x
			
			
		
	
		Ссылка в новой задаче
	
	Block a user
	 aatakansalar
						aatakansalar