Python Code To Check EMAIL Address Is Valid | regex & dnspython | how to check MX record

Veröffentlicht am: 17 Januar 2021
auf dem Kanal: Python 360
5,299
72

How to check if an email address is a valid format and if the MX record / domain exists for any given email address.

My code also checks for common miss-spellings and gives a suggestion.

-- chapters --

0:00 Introduction
1:00 dnspython
2:23 pip3 install dnspython
5:14 re.search
8:00 suggest corrections to email address
10:16 gmail v gmial v gmal
12:41 regex pattern for valid email address
14:12 raise ValueError
15:20 check for mx record

re.search v re.match
=================
🌏 https://stackoverflow.com/questions/1...

The Code on GitHub:
================
🌏 https://github.com/RGGH/Python/blob/m...

Visit redandgreen blog for more Tutorials
=========================================
🌏 http://redandgreen.co.uk/about/blog/

Subscribe to the YouTube Channel
=================================
🌏    / drpicode  

Follow on Twitter - to get notified of new videos
=================================================
🌏   / rngweb  

Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi

Thumbs up yeah? (cos Algos..)

Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍

🌏 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

#email #tutorials #python


Auf dieser Seite können Sie das Online-Video Python Code To Check EMAIL Address Is Valid | regex & dnspython | how to check MX record mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python 360 17 Januar 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,299 Mal angesehen und es wurde von 72 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!