1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "SEARCH",
10 "searchQuery": "hair",
11 "searchLocation": "Sydney",
12 "listingUrls": [
13 { "url": "https://www.fresha.com/a/rachel-french-hairdresser-sydney-24-30-springfield-avenue-u0by2m6f" },
14 { "url": "https://www.fresha.com/p/suha-alsayah-5784524" },
15 { "url": "https://www.fresha.com/lp/en/bt/spas/in/au-sydney" },
16 { "url": "https://www.fresha.com/de/a/rachel-french-hairdresser-sydney-24-30-springfield-avenue-u0by2m6f" },
17 ],
18 "fetchDetails": True,
19 "fetchReviews": True,
20 "maxReviewsPerListing": 20,
21 "maxItems": 20,
22 "proxy": { "useApifyProxy": True },
23}
24
25
26run = client.actor("abotapi/fresha-salon-spa-scraper").call(run_input=run_input)
27
28
29print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33