Home  >  Q&A  >  body text

python - 如何用chrome自带的抓包工具分析向一个网站提交的数据被发送到哪里处理了

最近刚学python,想做一个自动登录网站的脚本(比如百度什么的)。然后看网上说需要用抓包工具分析网站把用户名,密码提交到哪里处理以便模仿。但我以前没用过抓包工具,用chrome的开发工具,发现不到登录处理用的网页,找post也找不到。求一个详细的教程。
求用百度,人人之类的指导一下,怎么发现数据被提交到哪里去了。

PHPzPHPz2743 days ago983

reply all(4)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:59:35

    Open 审查元素 before sending. After sending, you can see the sending page in 审查元素-Network. Click to see the sending request and receiving headers. Or you can directly open chrome://net-internals/ before sending, and click the stop button on the net-internals page after sending. You can also capture the packet you want on the events page. I usually use the former, and when that doesn't work, I use the latter.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 14:59:35

    Press F12, open the console, right-click, select Log XMLHttpRequest, and you can see the logs submitted asynchronously using AJAX. Click on the log to see the submitted data.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 14:59:35

    Try it and see if you can see the post.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 14:59:35

    I just gave it a try, no, still no

    reply
    0
  • Cancelreply