Skip to content

Instantly share code, notes, and snippets.

@AhsanSN
Last active November 7, 2019 06:23
Show Gist options
  • Save AhsanSN/d9330fdf109a1d2dbb658ab2505a6997 to your computer and use it in GitHub Desktop.
Save AhsanSN/d9330fdf109a1d2dbb658ab2505a6997 to your computer and use it in GitHub Desktop.
import subprocess as sp
import time
for i in range (0, 500):
for j in range (0, 500):
child = sp.Popen('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito' % "https://www.youtube.com/watch?v=SmVy3iPm-_g&feature=youtu.be")
time.sleep(48)
child.terminate()
child = sp.Popen('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito' % "https://www.youtube.com/watch?v=trRLkiMpYAo&feature=youtu.be")
time.sleep(50)
child.terminate()
time.sleep(5000)
print("it"+i)
@AhsanSN
Copy link
Author

AhsanSN commented Nov 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment