facebook-scraper icon indicating copy to clipboard operation
facebook-scraper copied to clipboard

Unable to get all comments from posts

Open malcolm1232 opened this issue 3 years ago • 6 comments

Hi! Good Morning from Singapore! Just would like to clarify why i am unable to get all the comments for a particular post?

In the post: https://www.facebook.com/ChannelNewsAsia/posts/10158518069332934 As of writing, there are ~250 comments. but when i scrape, using the following code, i can only retrieve the top 3 results. Prior last night was the top 8 comments.

My code: actual_url_gotGitHub = 'https://www.facebook.com/ChannelNewsAsia/posts/10158518069332934' url = 'ChannelNewsAsia/posts/10158518069332934' for post in get_posts(url, pages=2, options={"comments": True, "reactors": True, "progress": True}, extra_info = True, cookies = 'mal_cookie.txt' ):

print('Actual num of comments:', post['comments'])
print('Returned num of comments:', len(post['comments_full']))

print(post)

malcolm1232 avatar Sep 10 '21 02:09 malcolm1232