Answer the question
In order to leave comments, you need to log in
How to scroll scroll-block in Instagram using Selenium?
How to scroll through Instagram followers using Selenium? When using key emitting or when using .execute_script("window.scrollTo(int, int)"), found this object and tried to scroll it - the main page instagram.com/user_name is scrolled, but not instagram.com/user_name/followers. How to be? Tell.
Answer the question
In order to leave comments, you need to log in
I am looping through this list like this:
from selenium.webdriver.common.by import By
subscribes_ul = browser.find_element(By.XPATH, '/html/body/div[6]/div/div/div[2]')
browser.execute_script("arguments[0].scrollTop = arguments[0].scrollHeight", subscribes_ul)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question