且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PhantomJS时出现错误消息,随机中断

更新时间:2022-05-22 00:43:36

可以将phantomjs与node一起使用,但请记住,这是一座桥梁.另外,它实际上并不是要进行大量刮取的操作,因此,也许您打开了太多线程并导致了堆栈溢出,但又出现了另一条消息.您可能想尝试使用类似 python-shell 之类的方法来运行python脚本您的抓取内容.

It's possible to use phantomjs with node, but keep in mind that this is a bridge. Also, it's really not intended for a lot of scraping, so perhaps you are opening too many threads and its a ***, but breaking with another message. You might want to try using something like python-shell to run a script for python to do your scraping.