Skip to main content

quickly get the verification code from the temp email

Project description

Email-api

快速开始

pip install email-api

获取邮箱

email_api.getEmail(arg)

获取验证码

email_api.getEmailCode()



自定义邮箱名称

import email_api


your_email_name='name'  # name@example.com
print(email_api.getEmail(your_email_name))
print(email_api.getEmailCode())

########################################

name@example.com
123456

########################################


随机邮箱名称

import email_api


print(email_api.getEmail(None))
print(email_api.getEmailCode())

########################################

random@example.com
123456

########################################

注意

方法 getEmail() 必须携带参数

随机邮箱参数为None

自定义邮箱只需设置邮箱名称,不能带入后缀

import email_api

# name@example.com

[] your_email_name='name' 

[x] your_email_name='name@example.com'

关于验证码提取

  • 支持纯数字的4-6位验证码
  • 暂不支持混合数字字母或纯字母的验证码

验证码提取部分 Line 59

支持

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

email_api-0.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

email_api-0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page