A
A
alex_belouss2017-09-22 13:28:54
go
alex_belouss, 2017-09-22 13:28:54

What to choose for page parsing? Go or NodeJs?

There is such a task: the script needs to enter the page at a certain period of time, do a login, leave a record and do a logo. In other words, you need to act as if a person enters the page and performs actions.
PHP achieves this with CURL, but for some reason, when the page with the script is launched, PHP does not have time to process all the tasks. And now I'm thinking of learning NodeJS or Go for this business. What do you recommend?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexey Ovdienko, 2017-09-22
@doubledare

Kek, curl to imitate the behavior in the browser?)
It doesn’t matter what is on the backend, if there are libraries for working with the browser or like the phantom js that was mentioned above, then write in that language.
In a similar thing, I used selenium through the chrome driver.
If you need to run this on a server, then such a variant will not work, and you need either a headless chrome library or, again, a js phantom

R
RidgeA, 2017-09-22
@RidgeA

I would recommend phantomjs.org

Z
zooks, 2017-09-22
@zooks

Nodu or Python.

D
Dimonchik, 2017-09-22
@dimonchik2013

Scrapy
or
Selenium + PhantomJS

B
beduin01, 2017-09-22
@beduin01

Python of course. Go will have to write 10 times more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question