I
I
igreklpofrss2021-12-20 18:22:39
Python
igreklpofrss, 2021-12-20 18:22:39

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.

61c09fa79009a011645199.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lok101, 2021-12-20
@igreklpofrss

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 question

Ask a Question

731 491 924 answers to any question