1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "category": "bakery",
10 "keyword": "",
11 "country": "US",
12 "state": "All",
13 "city": "",
14 "include_name": True,
15 "include_street": True,
16 "include_city": True,
17 "include_state": False,
18 "include_phone": True,
19 "include_url": True,
20 "include_google_maps_url": False,
21 "include_lat": False,
22 "include_lon": False,
23 "include_review_score": False,
24 "include_reviews_number": False,
25 "include_google_business_categories": False,
26 "max_results": 100,
27 "start_from_row": 1,
28}
29
30
31run = client.actor("xmiso_scrapers/google-maps-dataset").call(run_input=run_input)
32
33
34print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38