Take a screenshot of open website in python script

后端 未结 3 742

I need to write a python script which opens a website and when the website is completly opened it takes a screenshot of the opened website.

I wrote sth like this:

3条回答
  •  鱼传尺愫
    2020-12-21 17:12

    According to this question, you should be able to use ImageGrab to take a screenshot. Since ImageGrab uses PIL, this should be cross-platform. Here is some sample code to get you on your way

    Hope this helps

提交回复
热议问题