You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
profiles_liking = open ('profiles_liking.txt', 'r+') for profile in profiles_liking: posts = client.get_user_posts(profile, deep_scrape=True) for post in posts: if post.viewer_has_liked == False: client.like_post(post.id)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I run into an error when scrapping all posts from a profile with the client.get_user_posts(deep_scrap=True) method.
It scrapps all posts and then after the last post it continues to scrap an element which is not existent.
On https://www.instagram.com/p/2583608688876255601/?__a=1
profiles_liking = open ('profiles_liking.txt', 'r+') for profile in profiles_liking: posts = client.get_user_posts(profile, deep_scrape=True) for post in posts: if post.viewer_has_liked == False: client.like_post(post.id)
this is my code so far
Beta Was this translation helpful? Give feedback.
All reactions