用于电子邮件验证的python客户端库api。
email-verifier的Python项目详细描述
python电子邮件验证程序
=====
=>使用python验证电子邮件地址的最简单方法。
meta
----
-author:whois api,inc.
-email:support@whoisxmlapi.com
-site:https://email verify.whoisxmlapi.com/
您需要创建一个免费的电子邮件验证API帐户:
https://emailverify.whoisxmlapi.com/
`.
安装代码块:console
$pip在项目目录的根目录中安装电子邮件验证程序
usage
----
代码块::python
from emailverifier import client
from emailverifier import exceptions
client=client('your-api-key')
try:
data=client.get(“support@whoisxmlapi.com”)
异常。httpexception:
pass
除了异常。generalexception:
#如果您到了这里,这意味着您指定了无效的参数
(选项应该是字典)
pass
,除了:
pass
也许您在程序运行时按了ctrl-c,内核正在终止您的进程,或者其他一些操作一起执行。
print(data)
到“snake_case”
print(“email address:”+data.email_address)
print(“format:”+str(data.format_check))
print(“dns:”+str(data.dns_check))
print(“smtp:”+str(data.smtp_check))
print(“disposable:”+str(data.disposposable_check))
print(“free:”+str(data.free_check))
print(“last audit date:”+str(data.audit.audit_updated_date))
代码块::json
{
“emailaddress”:“支持@whoisxmlapi.com”、
“formatcheck”:“true”、
“smtpcheck”:“true”、
“dnscheck”:“true”、
“freecheck”:“false”、
“disposablecheck”:“false”、
“catchallcheck”:“true”、
“mxrecords”:[
“alt1.aspmx.l.google.com”,
“alt2.aspmx.l.google.com”、
“aspmx.l.google.com”、
“aspmx2.googlemail.com”、
“aspmx3.googlemail.com”、
“mx.yandex.net”
、“audit”:{
“auditcreateddate”:“2018-04-19 18:12:45.000 UTC”,
“auditUpdateDate”:“2018-04-19 18:12:45.000 UTC”
}
}
=====
=>使用python验证电子邮件地址的最简单方法。
meta
----
-author:whois api,inc.
-email:support@whoisxmlapi.com
-site:https://email verify.whoisxmlapi.com/
您需要创建一个免费的电子邮件验证API帐户:
https://emailverify.whoisxmlapi.com/
`.
安装代码块:console
$pip在项目目录的根目录中安装电子邮件验证程序
usage
----
代码块::python
from emailverifier import client
from emailverifier import exceptions
client=client('your-api-key')
try:
data=client.get(“support@whoisxmlapi.com”)
异常。httpexception:
pass
除了异常。generalexception:
#如果您到了这里,这意味着您指定了无效的参数
(选项应该是字典)
pass
,除了:
pass
也许您在程序运行时按了ctrl-c,内核正在终止您的进程,或者其他一些操作一起执行。
print(data)
print(“email address:”+data.email_address)
print(“format:”+str(data.format_check))
print(“dns:”+str(data.dns_check))
print(“smtp:”+str(data.smtp_check))
print(“disposable:”+str(data.disposposable_check))
print(“free:”+str(data.free_check))
print(“last audit date:”+str(data.audit.audit_updated_date))
代码块::json
{
“emailaddress”:“支持@whoisxmlapi.com”、
“formatcheck”:“true”、
“smtpcheck”:“true”、
“dnscheck”:“true”、
“freecheck”:“false”、
“disposablecheck”:“false”、
“catchallcheck”:“true”、
“mxrecords”:[
“alt1.aspmx.l.google.com”,
“alt2.aspmx.l.google.com”、
“aspmx.l.google.com”、
“aspmx2.googlemail.com”、
“aspmx3.googlemail.com”、
“mx.yandex.net”
、“audit”:{
“auditcreateddate”:“2018-04-19 18:12:45.000 UTC”,
“auditUpdateDate”:“2018-04-19 18:12:45.000 UTC”
}
}