title: Screenshot of a specific location in python
body: <p>I'm trying to do a piece of code that takes a picture of a specific place on the screen. I can take a picture of the screen, but not of a specific place.</p>
  
  <p>My goal is to take a picture where the top left point is at this position: (536, 76)</p>
  
  <p>and the bottom right point is at this position: (998, 791)</p>
  
  <p>Here's what I have so far, which takes a screenshot</p>
  
  <pre><code>import PIL
  
  snapshot = PIL.ImageGrab.grab()
  
  save_path = "C:\\Users\\pierr\\Pictures\\Screenshots\\oui_" + str(i) + ".jpg"  
  
  snapshot.save(save_path)
  </code></pre>