tian-sun

python爬虫 403 Forbidden 解决方法

模拟浏览器打开网页:
headers={   
\'User-Agent\':\'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36 LBBROWSER\'
        } 
res = requests.get(url.format(page),headers=headers) 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-10-23
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
相关资源
相似解决方案