title: Python Pillow How to take a screenshot of the screen or turn text into an image
body: <p>Good day.</p>
  
  <p>In my job i have to sometimes use a script to get some information out of a number or ID. Like the example bellow:</p>
  
  <p>Script that i use:</p>
  
  <pre><code>$sh script.sh 9999999999999 abc    
  </code></pre>
  
  <p>Information that appears in the screen:</p>
  
  <pre><code>number: 9999999999999
  
  SQL*Plus: Release 1.2.3.4 Production on Wed Jan 10 12:35:22 2017
  
  Copyright (c) 1982, 2011, Oracle.  All rights reserved.
  
  
  Connected to:
  Oracle Database Enterprise Edition Release 1.2.3.4 - 32bit Production
  With the Partitioning, OLAP, Data Mining and Real Application Testing options
  
  
  NUMBER||','||SERVICE||','||CONTRACT_DATE||','||COMFIRMATION
  --------------------------------------------------------------------------------
  9999999999999,SERVICE_NAME_1,01-OCT-13 10.44.30 AM,Y
  9999999999999,SERVICE_NAME_2,08-DEZ-14 09.52.57 AM,N
  9999999999999,SERVICE_NAME_3,26-FEB-16 11.42.30 AM,Y
  
  Disconnected from Oracle Database Enterprise Edition Release 1.2.3.4 - 32bit Production
  With the Partitioning, OLAP, Data Mining and Real Application Testing options
  </code></pre>
  
  <p>I want to know how to turn whatever the script returns to me into an image, like in taking a screenshot of my terminal.</p>