Advertisement
vinissh

print_python

Dec 6th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import pyscreenshot as ImageGrab
  2. import webbrowser
  3. import time
  4.  
  5. conter = 0
  6. while conter < 2 :
  7.     site = "https://www.youtube.com/watch?v=oeeevTRogzs"
  8.     time.sleep(1)
  9.     browser =  webbrowser.open(site)
  10.     conter =  conter + 1
  11.     break;
  12. def __main__():
  13.     time.sleep(5)
  14.     screenshot = ImageGrab.grab()
  15.     screenshot.save('foto_da_tela.jpg','jpeg')
  16.     exit()
  17.  
  18. if __name__ == '__main__':
  19.     __main__()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement