Chandni. 2021-12-22 21:34 采纳率: 100%
浏览 35
已结题

Request post所得数据与抓包数据不符,是什么原因?

import requests

if __name__ == "__main__":
    post_url = 'http://61.163.88.227:8006/hwsq.aspx?sr=0nkRxv6s9CTRMlwRgmfFF6jTpJPtAv87'
    headers = {
        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
        'Connection': 'keep-alive',
        'X-MicrosoftAjax': 'Delta=true',
        'X-Requested-With': 'XMLHttpRequest',
        "User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Mobile Safari/537.36 Edg/96.0.1054.62"}

    # 发送post请求
    data = {
        '__ASYNCPOST': 'true',  # 关键参数
        'ctl00%24ContentLeft%24Button1': '%E6%9F%A5%E8%AF%A2'
    }
    response = requests.post(url=post_url, headers=headers, data=data)

    # 获取响应数据
    with open('demo.html', 'w', encoding='utf-8') as file:
        file.write(response.text)
    print('finished')

抓包结果:

img


实际所得结果:

img

有没有什么解决方法?

  • 写回答

2条回答 默认 最新

  • CSDN专家-showbo 2021-12-22 23:02
    关注

    这个网址要登录才能采集数据的,题主的headers需要加上登录后的cookie值,并且post的参数也少了__VIEWSTATE,__EVENTVALIDATION,ctl00$ScriptManager1这3个参数,这3个是asp.net的页面状态管理用到的。改下面的就可以了

    img

    import requests
    if __name__ == "__main__":
        post_url = 'http://61.163.88.227:8006/hwsq.aspx?sr=0nkRxv6s9CTRMlwRgmfFF6jTpJPtAv87'
        headers = {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
            'Connection': 'keep-alive',
            'X-MicrosoftAjax': 'Delta=true',
            'Cookie': 'ASP.NET_SessionId=oqdfhut0wrbpcj5czdh0uuqy; .ASPXAUTH=018F0B97409123F76B39D8E7A1A8899386BB94C236E7DB5CD169DA03E247668CDF2C7590B5A565D9D7239227FAE929775C172E4A7F416AC5DA248088FD77E0026247353E610D8CE7FBE011ADE3FB852BA2BEE425318EFB85F7F7C643B95B570C520780D8B58E00B7ADF0BDEF4BF770DF05D6C674EA1DF8DE8DB6CE15C2563F1DF00D4A02A5EF23556B3FB155A11E1204AFC5D5B6DFF099F1C8541BE1CCF528DF55CEA9F89DCE99FA1BD5464D81C641F6',
            
            'X-Requested-With': 'XMLHttpRequest',
            "User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Mobile Safari/537.36 Edg/96.0.1054.62"}
        # 发送post请求
        data = {
            'ctl00$ScriptManager1':'ctl00$ScriptManager1|ctl00$ContentLeft$Button1',
            '__VIEWSTATE':'/wEPDwULLTEwMDI5NzA1NzkPZBYCZg9kFgICAw9kFgICBQ9kFgJmD2QWAgIBD2QWAgIBDxYCHglpbm5lcmh0bWwFrUw8dGFibGUgd2lkdGg9Ijk4JSIgYm9yZGVyPSIwIiBjZWxscGFkZGluZz0iMCIgY2VsbHNwYWNpbmc9IjEiIGJnY29sb3I9IiNEMUREQUEiIGFsaWduPSJjZW50ZXIiPjx0cj48dGQgaGVpZ2h0PSI0MCIgYmFja2dyb3VuZD0ic2tpbi9pbWFnZXMvbmV3bGluZWJnMy5naWYiPjx0YWJsZSB3aWR0aD0iOTglIiBib3JkZXI9IjAiIGNlbGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+PHRyPjx0ZCBhbGlnbj0iY2VudGVyIj48ZGl2IGNsYXNzPSdmaXJzdFRpdGxlJz7msLTmg4Xml6XmiqU8L2Rpdj48ZGl2IGNsYXNzPSdzZWNUaXRsZSc+MjAyMS0xMi0yMjwvZGl2PjwvdGQ+PC90cj48L3RhYmxlPjwvdGQ+PC90cj48L3RhYmxlPjx0YWJsZSB3aWR0aD0iOTglIiBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIyIiBjZWxsc3BhY2luZz0iMSIgYmdjb2xvcj0iI0QxRERBQSIgYWxpZ249ImNlbnRlciIgc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gICAgICAgICAgICAgICAgICAgPC90ZD48dGQ+MjQuNzM8L3RkPjx0ZD4xMDYwPC90ZD48dGQ+LTwvdGQ+PC90cj48dHIgYWxpZ249ImNlbnRlciIgYmdjb2xvcj0iI0ZGRkZGRiI+PHRkPum7hOaysyAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD48dGQ+5Yip5rSlICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPjx0ZD45LjI0PC90ZD48dGQ+NzQ3PC90ZD48dGQ+LTwvdGQ+PC90cj48L3RhYmxlPjwvdGQ+PC90cj48L3RhYmxlPmRkxxqjQCH1VvkwDLt4ZcEntorn3jq7kjZC9RPDYrs36z8=',
            #'__VIEWSTATEGENERATOR':'E4DC7756',
            '__EVENTVALIDATION':'/wEdAAMjIy6bdYquw0fdTLV4XGWz9DkLBAR+UXBBGQ1m5cY+HY5Ggl8DGIT46Qo2GBY6Yh5KdR2k6N6uIcdNptW3JeW0wAV0tKjFGq8jgcKH8UoEiQ==',
            'ctl00$ContentLeft$menuDate1$TextBox11':'2021-12-22',
            }
        response = requests.post(url=post_url, headers=headers, data=data)
        # 获取响应数据
        #with open('demo.html', 'w', encoding='utf-8') as file:
            #file.write(response.text)
        print(response.text)
     
    
    

    img


    有帮助或启发麻烦点下【采纳该答案】

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 12月31日
  • 已采纳回答 12月23日
  • 创建了问题 12月22日

悬赏问题

  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化