1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "post_url": "https://www.facebook.com/facebook/posts/pfbid02TgA9ycg5Ft8o7RgN7iMGMo8pNF7PfFchFxKUg7ohNeQHokg32aqXRrDwa4SmMHful",
10 "max_retries": 5,
11 "max_reshares": 50,
12 "proxy": { "useApifyProxy": False },
13}
14
15
16run = client.actor("danek/facebook-share-rental").call(run_input=run_input)
17
18
19print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
20for item in client.dataset(run["defaultDatasetId"]).iterate_items():
21 print(item)
22
23