标签:request 打开方式 div referer ike safari 爬虫基础 arp apple
pip install requests
response.text
response.content.decode()
把响应的二进制字节流转化为str类型
url="https://www.xxx.com" headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36", "Referer": "https://movie.douban.com/tag/"} response=requests.get(url,headers=headers)
标签:request 打开方式 div referer ike safari 爬虫基础 arp apple
原文地址:https://www.cnblogs.com/-chenxs/p/11415431.html