我成功地使用Conductor框架从网站上爬取数据。由于我使用的是Chrome浏览器,因此我在项目根目录中安装了chromedriver.exe。
为了加快速度,我想用无头PhantomJS浏览器替换Chrome浏览器。我按照这个Stackoverflow问题的答案安装了PhantomJS:PhantomJS & Conductor Framework,并在@Config中将浏览器更改为Browser.PHANTOMJS。
然而,无论我做什么,都没有结果。
我找不到有关如何设置PhantomJS以供Selenium或PhantomJS使用的文档。
这个问题How to Implement Selenium WebDriver with PhantomJS and Can we Use Sikuli with PhantomJS?也没有帮助。
如何用PhantomJS替换Chrome以便与Selenium和Conductor一起使用?