A
A
AndroidApi2017-04-13 13:57:58
linux
AndroidApi, 2017-04-13 13:57:58

How to make a request to a page?

Tell me how to implement a request to a page so that js scripts are executed on this page?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
kulaeff, 2017-04-13
@kulaeff

And what for such in general can be necessary?

M
Maxim Timofeev, 2017-04-13
@webinar

no way. Cron you accesses a specific url, gets the result in the form of html. It doesn't render anything, it's not a browser.
So he must transfer this result somewhere, somewhere where your screenshot will be formed. Or cron will run some software that can take a screenshot.
Here is a search for you:
https://yandex.ru/search/?text=screenshot%20 of the site%20...
Here is a sound solution for you in my opinion:
https://habrahabr.ru/post/111188/

A
Alexander Petrov, 2017-04-13
@Mirkom63

As far as I understand, this is not possible at all. because you need a browser to run the script. and cron does not know how to emulate a browser.
Write the necessary actions on the back-end.

E
Eugene Khrustalev, 2017-04-13
@eugenehr

NodeJS + Electron + Nightmare

N
Nikita Rukavkov, 2017-04-13
@nicosha

Via selenium

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question