Python Forum

Full Version: Scroll Down Post Instagram Likes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I need help, i have this code to extract my follows with scroll down
    # Scroll Down to Verify How Many Followers
    fBody  = driver.find_element_by_xpath("//div[@class='isgrP']")
    scroll = 0
    while scroll < 15:

        driver.execute_script('arguments[0].scrollTop = arguments[0].scrollTop + arguments[0].offsetHeight;', fBody)
        time.sleep(0.1)
        scroll += 1
but when i try to do the some in Post to get the People Likes, don't work
        # Scroll Down to Verify How Many Likes
        fBody  = driver.find_element_by_xpath("//div[@class='_1XyCr']")
        scroll = 0
        while scroll < 15:

            driver.execute_script('arguments[0].scrollTop = arguments[0].scrollTop + arguments[0].offsetHeight;', fBody)
            time.sleep(0.1)
            scroll += 1
Can help me ?