Facebook Comments PPR avatar

Facebook Comments PPR

Try for free

Pay $0.50 for 1,000 comments

Go to Store
Facebook Comments PPR

Facebook Comments PPR

danek/facebook-comments-ppr
Try for free

Pay $0.50 for 1,000 comments

Scrap Facebook comments fast and easy. It is designed to be fast and efficient, so it can extract a large number of comments for low price. It is also less likely to be blocked by Facebook.

andryerica avatar

Key " Maximum charged results "

Open
Åndry RL (andryerica) opened this issue
23 days ago

how to specify the number of comments to scrape please? i use python but i can't find this key

danek avatar

you can use Maximum charged results in apify run settings

andryerica avatar

but how do I put it in this code? In the key run_input

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = { "post_id": "pfbid02BzYRNmoznsZjci5FuztPUb9mKd9ameNVYSBweaBEvb8oEzSMjcs8nbXnMkYA5Benl" }
8
9# Run the Actor and wait for it to finish
10run = client.actor("dZoIFO1qTxGTq99uR").call(run_input=run_input)
11
12# Fetch and print Actor results from the run's dataset (if there are any)
13for item in client.dataset(run["defaultDatasetId"]).iterate_items():
14    print(item)
danek avatar

yea, I see that apify documentation is not perfect... I added max_comments parameter, so you can use it as run_input

Developer
Maintained by Community

Actor Metrics

  • 19 monthly users

  • 7 bookmarks

  • >99% runs succeeded

  • 14 hours response time

  • Created in Aug 2024

  • Modified 22 days ago