1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "areas": ["新宿"],
11 "urls": [
12 "https://beauty.hotpepper.jp/svcSA/macAA/salon/",
13 "https://beauty.hotpepper.jp/svcSA/macAA/",
14 "https://beauty.hotpepper.jp/svcSA/macAA/salon/sacX001/",
15 "https://beauty.hotpepper.jp/svcSA/macAA/salon/PN2.html?searchGender=ALL&sortType=popular",
16 "https://beauty.hotpepper.jp/nail/svcSA/macAA/salon/",
17 "https://beauty.hotpepper.jp/slnH000145984/",
18 "https://beauty.hotpepper.jp/slnH000145984/coupon/",
19 "https://beauty.hotpepper.jp/CSP/bt/salonSearch/search/?freeword=%E6%B8%8B%E8%B0%B7&searchGender=ALL&sortType=popular",
20 ],
21 "includeReviews": False,
22 "maxReviewsPerSalon": 30,
23 "maxItems": 20,
24 "proxy": { "useApifyProxy": True },
25 "incrementalMode": False,
26 "emitUnchanged": False,
27 "emitExpired": False,
28}
29
30
31run = client.actor("abotapi/beauty-hotpepper-jp-scraper").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