How to disguise the real information of users by python
Editor to share with you how python disguises the real information of users, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Disguise the real information of the user
Some web pages need to log in before displaying data, and the cookie value will carry personal login information. Adding cookie value to the crawler can avoid the trouble of logging in, such as Zhihu, JD.com and other websites. Add the method as follows:
Import requests proxies= {'https':'101.236.54.97:8866'} headers= {' User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) Rv:88.0) Gecko/20100101 Firefox/88.0', 'reffer':' https://bj.meituan.com/'} cookies='' response = requests.get ("https://waimai.meituan.com/",headers=headers simulation request url above is all the content of the article" how to disguise the real information of users ", thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!