Selenium missing kids fix
This commit is contained in:
@@ -7,6 +7,11 @@ logs_directory = os.getenv("PATH_LOGS_DIRECTORY", "logs")
|
||||
# Directory of logs
|
||||
os.makedirs(logs_directory, exist_ok=True)
|
||||
|
||||
# Too many logging entries otherwise
|
||||
logging.getLogger("remote_connection.py").setLevel(logging.WARNING)
|
||||
logging.getLogger("remote_connection").setLevel(logging.WARNING)
|
||||
|
||||
|
||||
logging.basicConfig(format='%(filename)s | %(levelname)s | %(asctime)s | %(message)s')
|
||||
logger = logging.getLogger("selenium")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
@@ -76,7 +76,7 @@ class MissingKidsFetcher():
|
||||
logger.info(e.text)
|
||||
|
||||
# driver.refresh()
|
||||
time.sleep(os.getenv("SELENIUM_SLEEP_PER_PAGE", 4))
|
||||
time.sleep(int(os.getenv("SELENIUM_SLEEP_PER_PAGE", 4)))
|
||||
|
||||
if (i == first_n_pages):
|
||||
continue_iterating = False
|
||||
|
||||
Reference in New Issue
Block a user