新浪微博在登录时密码是经过怎么样的处理才提交表单的

手机版http://weibo.cn是这样的#!/usr/bin/env python# -*- coding: utf-8 -*-import requestsfrom bs4 import BeautifulSoupurl = \u0026#39;http://login.weibo.cn/login/\u0026#39;my_headers = {\u0026#39;User-Agent\u0026#39;: \u0026#39;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36\u0026#39;}post_data = https://www.zhihu.com/api/v4/questions/39585191/{/u0026#39;mobile/u0026#39;: /u0026#39;xxxxxxx@gmail.com/u0026#39;, /u0026#39;backURL/u0026#39;: /u0026#39;http://weibo.cn/u0026#39;, /u0026#39;backTitle/u0026#39;: u/u0026#39;微博/u0026#39;, /u0026#39;submit/u0026#39;: u/u0026#39;登录/u0026#39;, /u0026#39;remember/u0026#39;: /u0026#39;on/u0026#39;, /u0026#39;tryCount/u0026#39;: /u0026#39;/u0026#39; }html = requests.get(url, headers=my_headers).contentsoup = BeautifulSoup(html,"html.parser")password = soup.find(\u0026#39;input\u0026#39;, {\u0026#39;type\u0026#39;: \u0026#39;password\u0026#39;}).get(\u0026#39;name\u0026#39;)vk = soup.find(\u0026#39;input\u0026#39;, {\u0026#39;name\u0026#39;: \u0026#39;vk\u0026#39;}).get(\u0026#39;value\u0026#39;)print password, vkpost_data = https://www.zhihu.com/u0026#39;xxxxx/u0026#39;post_data = vknew_html = requests.post(url, data=post_data).contentprint new_html


    推荐阅读