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

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?这句话是否有任何句子?在尝试使用编程控制台的基本请求访问站点时,我几乎不了解有关此浏览器特定检查激活的任何信息.这就是我寻求你帮助的原因.

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

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

  1. python 打开网页、封装自己的浏览器、制作浏览器、打开麦克风和摄像头、忽略ssl证书错误、置顶、无边框

    python 打开网页.封装自己的浏览器 selenium 下载浏览器和浏览器驱动 功能全面,就是不能无边框 pip install selenium from selenium import web ...

  2. python安装之后怎么打开-安装python后如何通过Python打开网页

    Python中可以通过selenium webdriver和webbrowser方法打开网页. 一.selenium webdriver 1.首先需要安装selenium和webdriver pip ...

  3. 安装完python怎么打开-安装python后如何通过Python打开网页

    Python中可以通过selenium webdriver和webbrowser方法打开网页. 一.selenium webdriver 1.首先需要安装selenium和webdriver pip ...

  4. 自动化(二)使用Python打开网页

    使用Python打开网页: 话不多说,直接上代码 import urllib.request import os from selenium import webdriver chromedriver ...

  5. Python 打开网页的几种方式

    Python打开网页的几种方式 方法1:直接调用系统命令 os #导入包 import os #执行包命令 os.system('"C:/Users/Public/AppData/Local ...

  6. python 打开网页开发者工具_Python获取网页指定内容(BeautifulSoup工具的使用方法)...

    page = urllib2.urlopen(url) contents = page.read() #获得了整个网页的内容也就是源代码 print(contents) url代表网址,content ...

  7. python打开网页被禁止_Python爬虫被禁?看看是不是这几个问题

    Python爬虫在网上完成网站的信息采集时,常常出现无缘无故的ip被禁的情况,正爬取呢就没法继续了,造成日常业务也没办法正常进行了,整个人都不好了呢.一部分人完全不清楚被禁的原因,这么简单的就给禁掉了 ...

  8. python打开网页并输入数据_使用Python登陆网站读取表格数据

    近期有经常使用的数据,需要登陆到某个网站,将其中的表格数据读取出来,为了提高效率节省工作时间,决定写一个程序,使用Python自动登陆到该网站然后将某日(参数)的数据读取并存放于excel表格中. 1 ...

  9. python打开网页被禁止_Python请求无法刮取403禁止的网页

    我想查查火车时刻表.火车有一个GPS,它们的位置会在https://trenesendirecto.sofse.gob.ar/mapas/sanmartin/index.php上公布.我的计划是刮去火 ...

最新文章

  1. 图神经网络从入门到入门
  2. vue-cli3.0 Typescript 项目集成环信WebIM 群组聊天
  3. ubuntu etc目录下配置文件profile和profile.d的区别?(文件解析)
  4. python怎么输出结果_Python中print()常用输出方法
  5. DataAdapter对象填充数据集
  6. canvas绘制网易云logo
  7. OpenCC的编译与多语言使用
  8. 牛客刷题——两种排序方法
  9. Excel技巧:合并单元格后分组排序
  10. c++调用python详细教程
  11. 自制三维激光扫描建模
  12. 【数据中台】数据质量原因分析
  13. Gaussian 计算静电云图确定吸附位点
  14. 武汉卫星地图商用级别19级 来自百度卫星地图
  15. Java基础:Java八大基本数据类型
  16. 微光图像增强的零参考深度曲线估计
  17. ubuntu1404安装hidost
  18. 什么是函数?如何定义函数?
  19. 硅谷钢铁侠-读书笔记
  20. MacClean360用户使用指南

热门文章

  1. MacOS AssetCache 占用网速原因以及解决办法
  2. 记一次apache POI存储word乱码问题
  3. ArcGIS的工作空间
  4. Nltk_WordNet最新使用
  5. 面试中常被问到的(24)网络分层及协议
  6. C语言实现通讯录【一】(未优化)
  7. go: can only use path@version syntax with 'go get' and 'go install' in module-aware mode
  8. 深大校园网掉线/Drcom掉线/校园网保持在线的python脚本
  9. element ui 导出pdf方法
  10. tplink路由器 配置 svn,实现在外网就可以访问公司的内网