获取一次性邮箱

一次性临时邮箱获取

import requests
#申请临时邮箱
def get_email():
    url = 'http://24mail.chacuo.net/'
    headers = {
        "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36",
        "Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",
        "Cookie":"__yjs_duid=1_061da2ca6b76cfff07624ac1e5f9cc001634034217924; yjs_js_security_passport=4e6c690f60a57261fb4531c507eb0c56d7d6a221_1634034220_js; Hm_lvt_ef483ae9c0f4f800aefdf407e35a21b3=1634034219; Hm_lpvt_ef483ae9c0f4f800aefdf407e35a21b3=1634034219; __gads=ID=9bd7f08bd7a76ed3-22a041716ecc00da:T=1634034221:RT=1634034221:S=ALNI_MahOYr9NEcpboqHFYV3rpj39Vgn_w; mail_ck=2; sid=3544fc4770ec17b3efc729d87ed479238d71c07e"
    }
    data = {
        "data":"hxldan01853",
        "type": "renew",
        "arg":"d=chacuo.net_f="
    }
    s = requests.post(url = url,params = data,headers = headers)
    s = s.json()
    email_header = s["data"][0]
    email = email_header+'@chacuo.net'
    print(email)
    return email
if __name__=="__main__":
    get_email()
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容