K
K
kiriking12016-09-25 22:20:00
JavaScript
kiriking1, 2016-09-25 22:20:00

How to emulate a browser in nodejs?

Good evening!
I am developing an application on nodejs that emulates client requests, I ran into the following problem: the original client resets cookies once a day, so I have to go in manually, press the "login" button, get to the google site, enter login / password - and receive cookies. What means can be used to emulate these actions? So that I can then use these cookies in nodejs.
I wanted to use phantomjs, but it comes separately from nodejs

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
coderisimo, 2016-09-25
@coderisimo

so they can be used together. is not it so?
1ty - https://github.com/amir20/phantomjs-node
2ty - https://www.npmjs.com/package/node-phantom

H
hoarywolf, 2016-09-26
@hoarywolf

https://github.com/segmentio/nightmare

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question