Created
February 22, 2019 17:24
-
-
Save BurhanH/d17a6d56112b25704a3459c488f4d1d1 to your computer and use it in GitHub Desktop.
How to make a screenshot on Python (no Selenium)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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