ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to record screen instead of the desktop image?

ssxcxS45XT opened this issue · comments

I use the following command on Mac OS X 10.15.6. But I just record the desktop of image, instead of a screenshot. Does anybody know how to take a screenshot? Thanks.

import pyscreenshot
im = pyscreenshot.grab()
im.save("fullscreen.png")

I found that this should be done on Mac OS X Catalina.

System Preferences -> Security & Privacy -> Screen Recording -> Terminal

BoboTiG/python-mss#134 (comment)