import pyautogui myScreenshot = pyautogui.screenshot() myScreenshot.save(r'Path to save screenshotfile name.png')