简体   繁体   English

PhantomJS没有在AWS EC2 CentOS 6上运行的实际内容

[英]PhantomJS get no real content running on 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: 我在笔记本电脑中成功地在Python 3.5中运行了PhantomJS + Selenium,但是当我在AWS EC2 CentOS 6环境中使用它时,没有出现错误,但显示了以下内容:

<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

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. 像PhantomJS这样的无头浏览器可以被检测到并遭到攻击。 I guess if it's debugging, you can use selenium & Chrome. 我想如果它正在调试,则可以使用Selenium和Chrome。

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

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