Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97756

Scraping the names of the accounts who liked a post on Instagram, using Python and Selenium, but only 11 names returned

$
0
0

I am trying to scrape the names of the accounts who liked a post on Instagram, using Selenium and Python. While I successfully scraped with no errors, the number of names returned was 11, way less than the actual number of people who liked the post. What's the cause of this, and how I can fix it?

liker_list = []
likers = driver.find_elements_by_class_name("qyrsm")

for n in likers:
    #scrape the name of the likers
    liker = n.find_element_by_class_name("_4EzTm").get_attribute("textContent")
    liker_list.append(liker)


print(liker_list)

Viewing all articles
Browse latest Browse all 97756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>