Re:Show HN: Nightmare – Simple browser automation
by montecarl on Monday October 06, 2014 @11:08PM
(#8419506)
I really want to do this with the two accounts I have at different banks. Neither makes it easy to automatically download my transactions. What I want is to run a command to run to download the latest transactions and output some simple ledger-like[1] output.
When I have tried to do double entry account before it was tricky to keep up. I would spent a lot of time trying to figure out what I had already reconciled and what I had not.
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().
Nice tool, thanks. The debugging could use a bit of work - whenever something went wrong it just spit out a bunch of "null is not an object" messages from phantom. Overall it was very easy to use though.