![Facebook Comments Scraper avatar](https://images.apifyusercontent.com/_tldtBUVfkeV5d9Myf6ZK4Y69CB9QdsM1CAGaiTHk4k/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS91czVzcnhBWW5zcmtnVXYydi9DRmhNYUhOb0J5ZGo2TkdjNS1GYWNlYm9va19Db21tZW50c19TY3JhcGVyLnBuZw.webp)
7 days trial then $40.00/month - No credit card required now
![Facebook Comments Scraper](https://images.apifyusercontent.com/_tldtBUVfkeV5d9Myf6ZK4Y69CB9QdsM1CAGaiTHk4k/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS91czVzcnhBWW5zcmtnVXYydi9DRmhNYUhOb0J5ZGo2TkdjNS1GYWNlYm9va19Db21tZW50c19TY3JhcGVyLnBuZw.webp)
Facebook Comments Scraper
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`"includeNestedComments": true` gives more results than expected
Closed
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.
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!
- 456 monthly users
- 45 stars
- 100.0% runs succeeded
- 2.4 days response time
- Created in Nov 2022
- Modified 1 day ago