Skip to content

Commit

Permalink
Merge pull request geekcomputers#507 from FrogBattle/patch-1
Browse files Browse the repository at this point in the history
Update get_youtube_view.py
  • Loading branch information
geekcomputers authored Jul 20, 2019
2 parents 53f7214 + a700afb commit f500cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_youtube_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
#Selecting Safari as the browser
driver = webdriver.Safari()

if(url.startswith("https://"):
if url.startswith("https://"):
driver.get(url)
else:
driver.get("https://"+url)

for _ in range(count):
for i in range(count):
#Sets the page to refresh at the refreshrate.
time.sleep(refreshrate)
driver.refresh()

0 comments on commit f500cca

Please sign in to comment.