We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 139c5ce + 53556df commit b29fe1dCopy full SHA for b29fe1d
get_youtube_view.py
@@ -13,7 +13,7 @@
13
#adding ability to change number of repeats
14
count = int(input("Number of times to be repeated: "))
15
#Same as before
16
-x = input("Enter the URL (no https): ")
+url = input("Enter the URL : ")
17
print( "Length of video:")
18
minutes = int(input("Minutes "))
19
seconds = int(input("Seconds "))
@@ -22,9 +22,13 @@
22
refreshrate = minutes * 60 + seconds
23
#Selecting Safari as the browser
24
driver = webdriver.Safari()
25
-driver.get("http://"+x)
26
27
-for i in range(count):
+if(url.startswith("https://"):
+ driver.get(url)
28
+else:
29
+ driver.get("https://"+url)
30
+
31
+for _ in range(count):
32
#Sets the page to refresh at the refreshrate.
33
time.sleep(refreshrate)
34
driver.refresh()
0 commit comments