PhantomJS没有在AWS EC2 CentOS 6上运行的实际内容 [英] PhantomJS get no real content running on AWS EC2 CentOS 6
问题描述
我在笔记本电脑中成功地在Python 3.5中运行了PhantomJS + Selenium,但是当我在AWS EC2 CentOS 6环境中使用它时,我没有出现错误,但显示的内容如下:
I successfully ran the PhantomJS+Selenium in Python 3.5 in my laptop, but when I used it on AWS EC2 CentOS 6 environment, I did not get error but got the content showing:
<html><head><meta content="no-cache" http-equiv="Pragma">
<meta content="-1" http-equiv="Expires">
<meta content="no-cache" http-equiv="CacheControl">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="data:;base64,iVBORw0KGgo=" rel="shortcut icon">
<script>
(function(){
var securemsg;
var dosl7_common;
window["bobcmn"] = "11111011111010200000002200000005200000000224b7a934200000096300000000300000000300000006/TSPD/300000008TSPD_101300000004http200000000200000000";
有人可以帮助我找出原因和可能的解决方案吗?非常感谢!
Can someone help me to figure out what was the reason and possible solutions? Thank you so much!
推荐答案
http://stackoverflow.com/questions/34707532/python-post-request-not-returning-html-requesting-javascript-be-enabled
请看一下西洋双陆棋的答案,非常好,基本上,您遇到了僵尸失败系统.像PhantomJS这样的无头浏览器可以被检测到并遭到攻击.我想如果是调试的话,可以使用硒& Chrome.
Please take a look at Backgammon's answer, very good point, basically, you encountered bot-defeat system. headless browser like PhantomJS can be detected and against. I guess if it's debugging, you can use selenium & Chrome.
这篇关于PhantomJS没有在AWS EC2 CentOS 6上运行的实际内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!