Python: how to capture a webpage as an image file?

I want to cache a web page as an image at the request of the user, but I do not know where to start.

I am developing App Engine using python.

+3
source share
3 answers

One way is to use a web service such as thumbalizr , since many programs for this type are not always installed on appengine (because they use C ++, etc.). Other options include girafa and browsershots ,

+1
source

Here's a good library for capturing a webpage as a png image:

http://github.com/AdamN/python-webkit2png

+2

-. Google - . script , , . . http://webshots.velocitysc.com/sandbox/. , , , http://download.cnet.com/Advanced-Website-to-Image-JPG-BMP-Converter-Free/3000-2094_4-10900902.html. ; google a while, .

, - ( HTML, ), , , webkit, . , , -, .

0
source

Source: https://habr.com/ru/post/1755402/


All Articles