cara menangkap beberapa layar dengan ImageGrab

# Using the pillow library's ImageGrab
from PIL import ImageGrab

# Use these parameters to capture all avaliable screens
image = ImageGrab.grab(bbox=None, include_layered_windows=False, all_screens=True)

# Shows an image of what it captured
image.show()
Some Random Monkey