python mss
v10.0.0

from mss import mss
# The simplest use, save a screenshot of the 1st monitor
with mss () as sct :
sct . shot ()CTYPEを使用した純粋なPythonの超高速クロスプラットフォーム複数のスクリーンショットモジュール。
PIPでインストールできます。
python -m pip install -U --user mssまたは、Condaでインストールすることもできます。
conda install -c conda-forge python-mss