import pyscreenshot
from io import BytesIO
from base64 import b64encode
from json import dumps
img_buffer = BytesIO()
pyscreenshot.grab().save(img_buffer, 'PNG', quality=5)
img_buffer.seek(0)
s = img_buffer.getvalue()
b = b64encode(s)

77089a29b81a63f4228cdc3fac8706c9c10b2812
<mask token>

<mask token>
pyscreenshot.grab().save(img_buffer, 'PNG', quality=5)
img_buffer.seek(0)
<mask token>

<mask token>
img_buffer = BytesIO()
pyscreenshot.grab().save(img_buffer, 'PNG', quality=5)
img_buffer.seek(0)
s = img_buffer.getvalue()
b = b64encode(s)

import pyscreenshot
from io import BytesIO
from base64 import b64encode
from json import dumps
img_buffer = BytesIO()
pyscreenshot.grab().save(img_buffer, 'PNG', quality=5)
img_buffer.seek(0)
s = img_buffer.getvalue()
b = b64encode(s)
