S
S
Sergey2018-05-19 02:57:08
PHP
Sergey, 2018-05-19 02:57:08

How to take a screenshot of a remote site?

Are there any solutions that would be suitable for shared hosting, i.e. without installing additional libraries or programs on the server?
PHP has an imagegrabscreen function , but it takes a screenshot of the executable site. Maybe there are some libraries that emulate a browser (curl is not suitable here, I think), allowing you to work in symbiosis with this function?
If it is impossible or difficult to implement the task without additional libraries or programs, then what would be the best solution?
UPD: There is no question about third-party APIs due to the GDPR, it is better not to use them in this project.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Kazantsev, 2018-05-19
@saintbyte

Search in Google: javascript site screenshot and render a picture on the user's computer, then upload it to yourself. The problem is the low quality of these screenshots.

R
RuGrof, 2018-05-21
@RuGrof

If you are satisfied with a screenshot from chrome then
https://developers.google.com/web/updates/2017/04/...
If FireFox then https://developer.mozilla.org/en-US/Firefox/Headle.. .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question