Is there any way to web scrape a usernames who like the post using python?. I am using InstaLoader but Facing an error "LoginRequiredException: --login required to access likes of a post" . Can anyone help me out in this?
import instaloader
L = instaloader.Instaloader()
Post = instaloader.Post.from_shortcode(L.context, 'CKplgftjVW_')
for like in Post.get_likes():
print(like.username)
you can use your instagram account to test (you should be able to see the post using your instagram account means you cannot see a private instagram account's posts)