提供临时电子邮件地址的在线服务的python包装器:https://temp-mail.org/v2
tempMail2的Python项目详细描述
用于temp-mail.org服务的python api包装器版本2。temp-mail.org是一项免费使用匿名电子邮件的服务。您可以在api.temp-mail.org中查看完整的api规范。
安装
使用PIP安装:
$ pip install tempMail2
用法
从给定的电子邮件登录名和域获取所有电子邮件:
from tempMail2 import TempMail tm = TempMail(login='denis', domain='@gnail.pw') print tm.get_mailbox() # list of emails in denis@gnail.pw
生成电子邮件地址并从中获取电子邮件:
from tempMail2 import TempMail tm = TempMail() email = tm.get_email_address() # v5gwnrnk7f@gnail.pw print tm.get_mailbox(email) # list of emails