Reputation: 7465
I'm trying to validate emails using validate_email 1.3 : Python Package Index, like this:
from validate_email import validate_email
is_valid = validate_email('[email protected]',check_mx=True)
How can I speed this up? My for
loop isn't very effective with amount of emails I need to verify...
Upvotes: 1
Views: 2460
Reputation: 5412
Only use check_mx=True
the first time you encounter a domain. After that, just use a regex to validate the address.
Upvotes: 3