搞搞知乎上的特斯拉并伪造请求.py

大兔子大兔子 提交于 2020-01-17 22:52:24
import requests#伪造请求:h = {    "user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"}response = requests.get(url="https://www.zhihu.com/question/362788804",headers = h)print(response)结果:<Response [200]>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!