1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "restaurants": [{
10 "restaurantId": "abc123",
11 "name": "Example Bistro",
12 "website": "https://examplebistro.com",
13 "googleMapsUrl": "https://maps.google.com/...",
14 "location": "Austin, TX",
15 "mapsMenuItemCount": 2,
16 "needsWebsiteEnrichment": True,
17 "websiteTargets": [
18 "https://examplebistro.com/menu",
19 "https://examplebistro.com",
20 ],
21 }],
22 "startUrls": [
23 { "url": "https://www.wanpakubk.com/menu" },
24 { "url": "https://www.altairnyc.com/" },
25 { "url": "http://www.eddiespizzany.com/" },
26 { "url": "https://www.boucherieus.com/" },
27 ],
28 "sourceDiscoveryRunId": "",
29 "maxPagesPerSite": 5,
30 "maxConcurrency": 5,
31 "maxDiscoveredLinksPerPage": 8,
32 "successItemThreshold": 8,
33 "freshnessWindowDays": 7,
34 "respectNeedsWebsiteEnrichment": True,
35 "forceRefresh": False,
36}
37
38
39run = client.actor("gtgyani206/website-menu-enrichment-scraper").call(run_input=run_input)
40
41
42print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
43for item in client.dataset(run["defaultDatasetId"]).iterate_items():
44 print(item)
45
46