I am creating a scraper to make single-page JS applications easily crawlable.
After some incredible disappointments with PhantomJS (memory leaks, outdated web kit, undead processes, among many other problems), I decided to switch to NightmareJS , which can do the same, but uses Electron under the hood. An electron has many advantages (uses the latest chrome , much faster), but it requires an X server to work.
As I need it to work under the ubuntu server, I followed this icon . Now I have a large copy of EC2 with everything ready to launch a headless electron
xvfb-run electron
The thing is, I need to run this through nightmareJS (which I will use on the node.js script server). I was wondering how I could pass parameters to a nightmare to start an electron through svfb
Rayjax
source share