简体   繁体   English

在 python 中使用 selenium 时如何摆脱 403 错误?

[英]How to get rid of 403 error when using selenium in python?

How do I get rid of a 403 error?如何摆脱 403 错误? The site I am trying to go on allows me to go on for ~30 seconds (although it varies) until I eventually get a 403 error.我尝试打开 go 的站点允许我打开 go 约 30 秒(尽管它会有所不同),直到我最终收到 403 错误。 It was working before today.它在今天之前工作。 I would think if I was IP banned then I would not be able to get on the site at all.我想如果我被 IP 禁止,那么我将根本无法访问该网站。

There's no real way to "get rid" of a 403 error.没有真正的方法可以“摆脱” 403 错误。

That error means, simply, that the website doesn't want to talk to you.简单地说,该错误意味着该网站不想与您交谈。

Maybe you've made too many requests lately and the host thinks you're a spammer.也许您最近提出了太多请求,而主持人认为您是垃圾邮件发送者。

Maybe the host doesn't like your IP address.也许主机不喜欢你的 IP 地址。

No way to tell why exactly.没有办法确切地说出为什么。 The host just chose to disallow you.主人只是选择禁止你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM