def yunsite():
'url'
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate, sdch, br',
'Accept-Language': 'zh-CN,zh;q=0.8',
'Connection': 'keep-alive',
'Host': 'pan.baidu.com',
用requests爬虫拒绝301/302页面的重定向而拿到Location(重定向页面URL)的方法
最新推荐文章于 2024-07-10 08:43:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)