1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "runMode": "DEVELOPMENT",
10 "startUrls": [{ "url": "https://www.opentable.com/r/sample-restaurant" }],
11 "respectRobotsTxtFile": True,
12 "linkSelector": "a[aria-label=\"Go to the next page\"]",
13 "globs": [],
14 "pseudoUrls": [],
15 "excludes": [],
16 "proxyConfiguration": { "useApifyProxy": True },
17 "initialCookies": [],
18 "waitUntil": ["networkidle2"],
19 "preNavigationHooks": "[]",
20 "postNavigationHooks": "[]",
21 "breakpointLocation": "NONE",
22 "customData": {},
23}
24
25
26run = client.actor("vertivine/opentable-review-scraper").call(run_input=run_input)
27
28
29print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31 print(item)
32
33