Skip to content

Commit f500cca

Browse files
Merge pull request geekcomputers#507 from FrogBattle/patch-1
Update get_youtube_view.py
2 parents 53f7214 + a700afb commit f500cca

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)