question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The library doesn't seem to extract all the comments

See original GitHub issue

Hi, I am trying to run the following code and it extracts the comments and replies but the total comment count is larger than the sum of comments and replies extracted. Any reason why this is happening?

for post in get_posts('zongers', cookies='facebook_cookies.txt', extra_info=False, pages=30, options={"comments": True}):
    post_entry = post
    print('Actual num of comments:', post['comments'])
    print('Comments + replies:', len(post['comments_full']) + sum(len(c["replies"]) for c in post["comments_full"]))
Actual num of comments: 608
Comments + replies: 344

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
neon-ninjacommented, Feb 17, 2022

The scraper uses m.facebook.com. It’s limited by the features available on m.facebook.com. You can only see “most relevant” comments on m.facebook.com, not “all comments”. Therefore, the scraper can only see “most relevant” comments.

1reaction
wahabaftabcommented, Feb 17, 2022

Thanks that explains it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I can't see xml comments from external library?
First you need to enabled "XML File Documentation" generation. You can find it in the Settings of the Project under the section Build....
Read more >
Importing and exporting comments, Adobe Acrobat
Export comments to a data file. From the options menu in the comments list, choose Export All To Data File. Name the file...
Read more >
If Shared Albums aren't working - Apple Support
After you turn on Shared Albums, you might have questions about comments, likes, invites, videos, and more.
Read more >
How do I use the Comment Library in SpeedGrader?
Open Comment Library​​ To open the Comment Library, click the Comment Library icon. Note: If the assignment is supported by Assignment Enhancements, the ......
Read more >
6 ways to add comments to documents in SharePoint
Did you know thare are a few ways to add comments to documents in SharePoint? This articles explores each of the options as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found