Is it possible to run PhantomJS from node.js as a command line argument

后端 未结 3 834
挽巷
挽巷 2020-12-04 18:53

I was recently going to test out running phantomJS from python as a commandline argument, I haven\'t got round to it yet but have seen examples. Because PhantomJS is run fro

3条回答
  •  一向
    一向 (楼主)
    2020-12-04 19:16

    I suppose you can make a simple script for Node.js to run; in that script phantomjs script will be run as a child process. You can see the working example (and links for some documentation) in this answer. I suppose this discussion might be helpful for you as well.

提交回复
热议问题