import pyautogui screenshot = pyautogui.screenshot() screenshot.save("FilePathwhereyouwantToSaveFileName.FileFormat")