Skip to content

Commit

Permalink
set sleep for one second
Browse files Browse the repository at this point in the history
  • Loading branch information
ImanMontajabi committed May 18, 2024
1 parent f39b774 commit ec31df8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RAPGOAT/soundcloud_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def scroll_down(driver, url: str) -> None:
new_height: int
while True:
driver.execute_script('window.scrollBy(0, 350);')
# this variable changes scrawling speed
sleep(1)
if driver.execute_script('return window.innerHeight + \
window.pageYOffset >= document.body.offsetHeight'):
Expand Down

0 comments on commit ec31df8

Please sign in to comment.