Facebook Comments Scraper avatar
Facebook Comments Scraper
Try for free

7 days trial then $40.00/month - No credit card required now

View all Actors
Facebook Comments Scraper

Facebook Comments Scraper

apify/facebook-comments-scraper
Try for free

7 days trial then $40.00/month - No credit card required now

Extract data from hundreds of Facebook comments from one or multiple Facebook posts. Get comment text, timestamp, likes count and basic commenter info. Download the data in JSON, CSV, Excel and use it in apps, spreadsheets, and reports.

Do you want to learn more about this Actor?

Get a demo
BU

`"includeNestedComments": true` gives more results than expected

Closed

build_up opened this issue
3 months ago

Sorry to open another issue, but the previous issue was closed so I couldn't reply.

The reply to the previous issues (https://console.apify.com/organization/OoxqTR9Q7RyFCXrpC/actors/us5srxAYnsrkgUv2v/issues/aDznEofEiE8tN7ndF) was:

Currently, the limit for nested comments is applied per thread. This means if the maximum results are set to 5, we scrape 5 root comments and 5 replies per comment.

Give than reply, I would have expected that for a run with 3 posts (startUrls), and resultsLimit=3, that the max number of results would be 36. (That is 3 root comments per post, so 9 comments, then 3 replies per comment, so 3*9 = 27 comment replies. Then combining the root and reply comments totalling to 36.)

The actor run linked in this comment has that corresponding input, but it received 69 results.

What is it that I'm getting wrong here?

Thanks. Very much appreciate the responses.

jakubkonecny avatar

Hello, in this case, comments can be nested multiple times, which means there can be comments of comments of comments, and so on. Limiting with the resultsLimit will limit the max amount per a "depth level". In your case, there is more than 1 depth level in some comments you are scraping, which results in you having more that 3*9 results. Hope this clears things up!

Developer
Maintained by Apify
Actor metrics
  • 456 monthly users
  • 45 stars
  • 100.0% runs succeeded
  • 2.4 days response time
  • Created in Nov 2022
  • Modified 1 day ago