1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "businesses": [{
10 "name": "Barbería La Estación",
11 "category": "Barbería",
12 "address": "Av. Triunvirato 4500, Villa Urquiza, CABA",
13 "city": "Buenos Aires",
14 "country": "AR",
15 "phone": "011 4521-0000",
16 "rating": 4.9,
17 "reviewsCount": 151,
18 "reviews": [
19 {
20 "author": "Martín G.",
21 "text": "Excelente atención, siempre salgo conforme.",
22 "stars": 5,
23 },
24 {
25 "author": "Lucas P.",
26 "text": "Puntuales y prolijos. El mejor fade del barrio.",
27 "stars": 5,
28 },
29 ],
30 "photos": [],
31 "hours": [
32 {
33 "day": "Tuesday",
34 "hours": "10:00 to 20:00",
35 },
36 {
37 "day": "Saturday",
38 "hours": "10:00 to 18:00",
39 },
40 ],
41 }],
42 "agencyName": "Your Agency",
43}
44
45
46run = client.actor("sebastian_elustondo/local-business-demo-site-generator").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53