r2 = s.post(url2, data=body, verify=False)
# 获取当前url地址print r2.url# 第三步:正则提取需要的参数值import repostid = re.findall(r"postid=(.+?)&", r2.url)print postid # 这里是list# 提取为字符串print postid[0]# 第四步:删除草稿箱url3 = "https://i.cnblogs.com/post/delete"json3 = {"postId": postid[0]}r3 = s.post(url3, json=json3, verify=False)print r3.json()