#python 3
from PIL import ImageGrab
snapshot = ImageGrab.grab()
save_path = "C:UsersYourUserDesktopMySnapshot.jpg" #dont forget to write the name and the extension of the file in the end
snapshot.save(save_path)
import PIL.ImageGrab
im = PIL.ImageGrab.grab()
im.show()