Advertisement
vinissh

Untitled

Nov 27th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import pyscreenshot as ImageGrab
  2. import webbrowser
  3. import time
  4.  
  5.  
  6. site = "https://www.facebook.com/"
  7. time.sleep(5)
  8. browser =  webbrowser.open(site)
  9.  
  10. def __main__():
  11.     screenshot = ImageGrab.grab()
  12.     screenshot.save('foto_da_tela.jpg','jpeg')
  13.  
  14.  
  15. if __name__ == '__main__':
  16.     __main__()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement