how to take screenshot with python code example
Example 1: screenshot in python
import pyautogui
class gng() :
myScreenshot = pyautogui.screenshot()
myScreenshot.save('C:\File\Code\save.png')
gng()
Example 2: python take screenshot
#pip3 install PrtSc
import PrtSc.PrtSc as Screen
screenshot=PrtSc.PrtSc(True,'filename.png')