包,让您生成电子邮件地址和阅读他们的邮件通过dropmail.mewebsocket公司。
MinuteMail的Python项目详细描述
小火车
从临时电子邮件地址接收邮件的python包。在
安装
此包是,将在PyPi上发布,以安装它并运行
pip install MinuteMail
使用
# Import packageimportMinuteMail# Create a new mailboxbox=MinuteMail.mailbox()# A new mailbox already comes with one email addressprint(box.get_emails()[0])# You can save the passwords to addresses to a file'''with open ('email_hashes.txt', 'w') as f: for hash in box.email_hashes: f.write(hash) f.write('\n')'''# You can then read the hashes and add them to the box in the next session'''with open ('email_hashes.txt', 'r') as f: for hash in f: box.add_hash(hash)'''#Wait for and print arriving mailwhileTrue:print(box.next())
电子邮件采用JSON格式。这里有一个例子说明你会得到什么
^{pr2}$- 项目
标签: