Screenshot using pyscreenshot

The simplest way of taking a screenshot using pyscreenshot module

Install the package:

               pip install pyscreenshot 


import pyscreenshot

image = pyscreenshot.grab()

image.show()

image.save("screenshot.png")


No comments: