Skip to content

Instantly share code, notes, and snippets.

@BurhanH
Created February 22, 2019 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurhanH/d17a6d56112b25704a3459c488f4d1d1 to your computer and use it in GitHub Desktop.
Save BurhanH/d17a6d56112b25704a3459c488f4d1d1 to your computer and use it in GitHub Desktop.
How to make a screenshot on Python (no Selenium)
# -*- coding: utf-8 -*-
# pip install pyautogui
import pyautogui
screen = pyautogui.screenshot('screenshot.png')
# region_screen = pyautogui.screenshot('region_screenshot.png', region=(0, 0, 300, 400))
print(screen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment