Problem solving: view cookie and user-agent of webpage

Article Directory

Write in front

  Because I am currently learning python crawler, I need to use cookies and user-agent in many places. I write this article to clearly talk about how to view cookies and user-agent.

Specific steps

1. Open the browser arbitrarily

  Here I take Google as an example to find a website, such as CSDN.

Insert picture description here
2. Enter the developer tools

  You can manually click the three dots in the upper right corner to find and open the developer tools in more tools, or you can press F12 (Fn+F12 on some laptops) to enter the developer tools.

3. Click Network, find Doc

Insert picture description here
  Find Network and click, and then we found a blank article after entering the doc.

4. The most amazing step

  It doesn't matter if you are blank, haha, just refresh the page gently.

Insert picture description here
  The refreshed page is as shown in the figure above. We only need to click on the url under name, and both cookies and user-agent can be found (as shown in the figure below).

Insert picture description here
Insert picture description here
  At the end of this article, please point out any errors~

Guess you like

Origin blog.csdn.net/weixin_44578172/article/details/109353017