python打开网页被禁止_javascript – “此网站的所有者已根据您的浏览器签名禁止您访问”…在python程序中的网址请求...

在做一个简单的请求时,在

python(精确的是Entought Canopy)上,使用urllib2,服务器拒绝我访问:

data = urllib.urlopen(an url i cannot post because of reputation, params)

print data.read()

错误:

Access denied | play.pokemonshowdown.com used CloudFlare to restrict access

The owner of this website (play.pokemonshowdown.com) has banned your access based on your browser's signature (14e894f5bf8d0920-ua48).

这显然是一个普遍的问题,所以我在网上找到了一些线索.

A firewall, proxy, a browser plugin or extension may be throwing a false positive. Try visiting the site with a different browser as an alternative way of accessing the site.

The “Checking your browser before accessing (insertsite.com) occurs when the site owner has turned on a DDoS protection and mitigation tool called “I’m Under Attack”. The page will generally go away and grant you access to the site after 5 seconds.

Note: You will need to have both JavaScript and Cookies turned on in your browser to pass the check. The check is in place to make sure that you are not part of a botnet.”

答案很清楚,除了这一件事…… *我没有使用任何浏览器!请求是通过python程序完成的,带有urllib.urlopen请求…

这是否意味着我应该拥有,例如,开启的Cookie和JavaScript … Enthought Canopy?这句话是否有任何句子?在尝试使用编程控制台的基本请求访问站点时,我几乎不了解有关此浏览器特定检查激活的任何信息.这就是我寻求你帮助的原因.

为什么会这样?如何绕过它?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值