From ec31df843d191a7f5d6b385d48cdf6971c34f22c Mon Sep 17 00:00:00 2001 From: ImanMontajabi Date: Sun, 19 May 2024 01:40:19 +0330 Subject: [PATCH] set sleep for one second --- RAPGOAT/soundcloud_stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RAPGOAT/soundcloud_stats.py b/RAPGOAT/soundcloud_stats.py index 61d8304..77cbb51 100644 --- a/RAPGOAT/soundcloud_stats.py +++ b/RAPGOAT/soundcloud_stats.py @@ -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'):