![]() |
Scroll Down Post Instagram Likes - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Scroll Down Post Instagram Likes (/thread-30111.html) |
Scroll Down Post Instagram Likes - rmiguelantunes74 - Oct-05-2020 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 += 1but 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 += 1Can help me ? |