1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "pages": [
9 {
10 "url": "https://example.com/en",
11 "alternates": [
12 {
13 "hreflang": "en",
14 "href": "https://example.com/en",
15 },
16 {
17 "hreflang": "fr",
18 "href": "https://example.com/fr",
19 },
20 ],
21 },
22 {
23 "url": "https://example.com/fr",
24 "alternates": [{
25 "hreflang": "fr",
26 "href": "https://example.com/fr",
27 }],
28 },
29 ] }
30
31
32run = client.actor("garnet_precipice/my-actor").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39