Skip to content

Commit a700afb

Browse files
authored
Update get_youtube_view.py
Updated the file so it contains no errors and runs the youtube videos.
1 parent f276f34 commit a700afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_youtube_view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
#Selecting Safari as the browser
2424
driver = webdriver.Safari()
2525

26-
if(url.startswith("https://"):
26+
if url.startswith("https://"):
2727
driver.get(url)
2828
else:
2929
driver.get("https://"+url)
3030

31-
for _ in range(count):
31+
for i in range(count):
3232
#Sets the page to refresh at the refreshrate.
3333
time.sleep(refreshrate)
3434
driver.refresh()

0 commit comments

Comments
 (0)