Python: catturare lo screenshot dello schermo
import pyscreenshot as ImageGrab
im = ImageGrab.grab()
im.save("screen.png")
Con la prefazione che sicuramente dovrete, da terminale, installare:
pip install pyscreenshot
sudo -H pip install pyscreenshot
pip install Pillow