Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python phantomjs无法加载动态页面_Python_Selenium_Phantomjs - Fatal编程技术网

Python phantomjs无法加载动态页面

Python phantomjs无法加载动态页面,python,selenium,phantomjs,Python,Selenium,Phantomjs,我使用Python selenium和phantomjs驱动程序来抓取网站的登录页 失败的一个站点Phantomjs是:。该网站似乎使用了angularjs和expressjs 我的代码很简单: from selenium import webdriver driver = webdriver.PHANTOMJS() driver.get(http://www.stance.com') 回答基本上是空的。有人能提供它失败的原因的提示吗?还有我能做些什么来工作。你试过driver=webdriv

我使用Python selenium和phantomjs驱动程序来抓取网站的登录页

失败的一个站点Phantomjs是:。该网站似乎使用了angularjs和expressjs

我的代码很简单:

from selenium import webdriver
driver = webdriver.PHANTOMJS()
driver.get(http://www.stance.com')

回答基本上是空的。有人能提供它失败的原因的提示吗?还有我能做些什么来工作。

你试过
driver=webdriver.Chrome()
driver=webdriver.Firefox()
?@dev\u strenger不,我的代码运行在没有显示的虚拟机上。我知道有很多方法可以设置firefox,但我更喜欢phantomjs