[python crawler] how to get the browser header

For crawlers, browser headers are necessary. In addition to finding existing ones on the Internet, you can also check the browser headers of your own browser.

Taking Chrome as an example, how to check the browser header

Open a web page at will, press F12 to open the network in the developer options,

Refresh or randomly click on the page

Click on the newly added element in Network, pull down to the end, you can see the browser header of Chrome

 

 

Guess you like

Origin blog.csdn.net/weixin_39407597/article/details/126572661