View on GitHub

Python-screenshot

Python library to make screen captures and save the images to the cwd

Download this project as a .zip file Download this project as a tar.gz file

python-screenshot

Python library to make screen captures and save the images to the current working directory.

Installing:

Examples:

from screenshot import ScreenShot

screen = ScreenShot()
screen = ScreenShot((640, 480))
screen.grab()

The system time at the moment the screenshot was taken is used as the filename

import time
screen.grab()
time.sleep(1)
screen.grab()
from screenshot import get_times

print get_times()

This will return a list of (system time, filename) tuples.