1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "fbUrls": [
9 { "url": "https://www.facebook.com/nintendo" },
10 { "url": "https://www.facebook.com/NintendoAmerica/posts/pfbid02JESEPSvyiLGjvewuFYhviAwQjTdxZW1ZfnWTeCzxVWgZLT3xgoLHVDwvuenVRyKKl" },
11 { "url": "https://www.facebook.com/NintendoAmerica/posts/pfbid02AB8FNERMDYwpsgVJVYaEQ8K2vpH4JLzPTvTB71WqiMfNQhu99ZMBmqvKZSt2tqT4l" },
12 { "url": "https://www.facebook.com/groups/germtheory.vs.terraintheory/permalink/5671657859577842/" },
13 ] }
14
15
16run = client.actor("apify/facebook-url-to-id").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