News for hackers. Stuff that matters.
Re:Show HN: Nightmare – Simple browser automation by Lord_Zero on Monday October 06, 2014 @04:33PM (#8418114)
Whats a good way to automate this to run? I see the getting started in the documentation says "Save it as hello.js and then run it from the command line" but Iwasnt sure if there are tools like CRON in Linux to automate the script.
Re:Show HN: Nightmare – Simple browser automation by resu_nimda on Monday October 06, 2014 @04:59PM (#8418270)
That is the documentation for phantomjs, which is a stand-alone process. Nightmare is a package for nodejs (that interacts with a phantomjs process), so your code runs in a node context, where there are plenty of scheduling options, e.g. the node-cron package, or just plain setInterval().