From a0cc54c3dd7d5c5bb6627d250a1e56d6841d7bcf Mon Sep 17 00:00:00 2001 From: tkalir Date: Fri, 26 Apr 2024 21:12:32 +0300 Subject: [PATCH] increased time of wait for page to load before the downloads start --- anyway/infographic_image_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anyway/infographic_image_generator.py b/anyway/infographic_image_generator.py index be235d8e..31ce6ce0 100644 --- a/anyway/infographic_image_generator.py +++ b/anyway/infographic_image_generator.py @@ -88,7 +88,7 @@ def generate_infographics_in_selenium_container(browser, newsflash_id): generated_images_names = [] try: browser.get(newsflash_page_url) - time.sleep(15) + time.sleep(60) elements = get_download_button_elements(browser) buttons_found = len(elements) logging.debug(f"found {buttons_found} buttons")