driver.maximize_window()
driver.get(url)
wait = WebDriverWait(driver, 30)
wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR,
    'li[data-item-id]')))
while True:
    pass
Headless endless scroll selenium