1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://www.facebook.com/nike",
11 "https://www.facebook.com/groups/germtheory.vs.terraintheory",
12 "https://www.facebook.com/NintendoAmerica/posts/pfbid09PPhHDZ1wEi19DBTuZJ8L7ZMxiGGpSyfRXPiPx3gKK17KBh2k53HERZzjK7VYZP7l",
13 "https://www.facebook.com/reel/2166091230582141/",
14 "zuck",
15 ],
16 "proxyConfiguration": { "useApifyProxy": True },
17}
18
19
20run = client.actor("seemuapps/facebook-url-to-id").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27