1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.opentable.com/s?dateTime=2026-08-15T19%3A00%3A00&covers=2&latitude=51.052008&longitude=13.741322&areaId=geohash%3Au31f2twp&suggestedSearchName=Dresden&shouldUseLatLongSearch=true&showMap=true" }],
10 "searchQueries": ["Dresden"],
11 "time": "19:00",
12 "scrapeListingDetails": False,
13 "scrapeReviews": False,
14 "maxReviews": 10,
15 "maxItems": 10,
16 "proxyConfiguration": {
17 "useApifyProxy": True,
18 "apifyProxyGroups": ["RESIDENTIAL"],
19 },
20}
21
22
23run = client.actor("datascrapers/opentable-scraper").call(run_input=run_input)
24
25
26print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30