from PIL import ImageGrab image = ImageGrab.grab((863, 751, 1091, 767)) image.save(fp="/home/def/ahah.png")