Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Demo of timed screenshots
import datetime
import date
import pyscreenshot
INTERVAL = 30 # Time in seconds between screenshots
while True:
now = # Get timestamp
filename = now.strftime('screenshot_%Y_%m_%d_%H_%M_%S.png') # Create a filename
pyscreenshot.grab_to_file(filename) # take the screenshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.