1. 首页
  2. 编程语言
  3. Python
  4. 使用Python模拟登陆人人网的cookie操作

使用Python模拟登陆人人网的cookie操作

上传者: 2023-06-28 20:11:10上传 PY文件 1.39KB 热度 12次

'''使用Python模拟登陆人人网的cookie操作''' import urllib.request url = "http://www.ren.com/967469305/profile" headers = { "Host":"www.ren.com", "Connection":"keep-alive", "Upgrade-Insecure-Requests":"1", "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36", "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8", "Referer":"http://www.ren

下载地址
用户评论