From 83e11310318fafe5c091f3cf6f951025bb323085 Mon Sep 17 00:00:00 2001 From: aaronwtr <65739164+aaronwtr@users.noreply.github.com> Date: Sat, 27 Mar 2021 23:49:08 +0100 Subject: [PATCH] ElementNotInteractableException handling --- extract_and_analyze_data_from_playlist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extract_and_analyze_data_from_playlist.py b/extract_and_analyze_data_from_playlist.py index a1142c5..1b4bf94 100644 --- a/extract_and_analyze_data_from_playlist.py +++ b/extract_and_analyze_data_from_playlist.py @@ -15,6 +15,7 @@ from selenium.webdriver import ActionChains from selenium.common.exceptions import JavascriptException from selenium.common.exceptions import TimeoutException +from selenium.common.exceptions import ElementNotInteractableException from tqdm import tqdm from webdriver_manager.chrome import ChromeDriverManager @@ -271,7 +272,7 @@ def scrape_genius(playlist_dataframe): action.double_click(clickable).perform() - except (TimeoutError, JavascriptException, TimeoutException): + except (TimeoutError, JavascriptException, TimeoutException, ElementNotInteractableException): pass source = driver.page_source