[Python] scroll instagram followers following

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    i wanted to get instagram followers/following user list. previously used this selenium python script is working:

    scroll_box = browser.find_element_by_xpath("//div[@class='isgrP']")
    sleep(5)
    # height variable
    last_ht, ht = 0, 1
    while last_ht != ht:
    last_ht = ht
    sleep(2)
    # scroll down and retrun the height of scroll
    ht = browser.execute_script("""
    arguments[0].scrollTo(0, arguments[0].scrollHeight);
    return arguments[0].scrollHeight; """, scroll_box)


    i've also tried this solution but still error: https://stackoverflow.com/a/54174682/11727107

    is there a change from the instagram dev? and now how to do scrolling.

    thanks

    Continue reading...

Compartilhe esta Página