pyautogui screenshot region code example
Example 1: python pyautogui how to change the screenshot location
pyautogui.screenshot(region=(0,0, 300, 400))
#Thank me later
Example 2: screenshot region pyautogui
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))