蟒蛇接口
emailrep的Python项目详细描述
python电子邮件代表
这是一个python 3库和cli模块,用于与EmailRep服务交互。
安装
pip install emailrep
快速入门(cli)
# setup your api key (optional) emailrep setup -k <your api key> # query an email address emailrep bill@microsoft.com # report an email address (key required) emailrep --report foo@bar.com --tags "bec, maldoc" --description "Phishing email targeting CEO"
快速入门(python库)
fromemailrepimportEmailRep# setup your api key (optional)emailrep=EmailRep('<your api key>')# query an email addressemailrep.query("bill@microsoft.com")# report an email address (key required)emailrep.report("foo@bar.com",["bec","maldoc"],"Phishing email targeting CEO")
完整的api文档可以在here中找到。