如何查看网页的header
1、例如打开要爬取的网页:https://www.zhihu.com/explore
2、按下F12,点击Network
3、刷新页面,点击explore
4、选取request headers,user-agent的内容
更加详细的http header详解参考博客:https://www.cnblogs.com/kmonkeywyl/p/8435533.html
业精于勤而荒于嬉,勤劳一日,可得一日安眠;勤劳一生,可得幸福一生。因为,我们努力了;因为,天道酬勤。