1
我试图运行phantomjs来抓取破损的JavaScript网站,因此我通过CLI运行phantomjs时出现错误。在破损的网站上运行phantomjs
ReferenceError: Can't find variable: facebook
网站本身显示出这样的错误通过控制台:
Uncaught ReferenceError: facebook is not defined
它似乎停止phantomjs的任何进一步执行。有什么办法可以忽略错误并继续执行phantomjs?
这有帮助吗? http://stackoverflow.com/a/19538646/1781026&https://github.com/ariya/phantomjs/issues/10042#issuecomment-95668850 – chrki
似乎还冻结,除了phantomjs项目似乎也死了。怀疑我会继续这一点。 https://www.infoq.com/news/2017/04/Phantomjs-future-uncertain –