Answer the question
In order to leave comments, you need to log in
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question