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