更新时间: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.