python模拟登录宁波大学邮箱

来源:互联网 发布:新手怎么入行淘宝模特 编辑:程序博客网 时间:2024/04/28 01:25
import requestsparams ={    'action:login': '',    'uid': '这里是学号',    'password': '这里是密码',    'locale': 'zh_CN'    }headers = {    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0'}r = requests.post(    'http://mail.nbu.edu.cn/coremail/index.jsp',    data=params,    headers=headers    )print(r.text)