If you have written your script in casperjs. then do something like what I do. export your data in csv/json file as input from your node app use child_process.spawn to run your casperjs casperjs script will write a csv/json file as result import the result in your node app.
How use CasperJS in a NodeJS application?
Question
I need run CasperJS commands in a NodeJS application. How do I do it?
For example, if I use only CasperJS a I don't make a file with fs.writeFile();
Thanks.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow