1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "urls": [
11 "https://search.rakuten.co.jp/search/mall/coffee/?s=2",
12 "https://search.rakuten.co.jp/search/mall/coffee/100316/",
13 "https://search.rakuten.co.jp/search/mall/-/100316/?p=2",
14 "https://www.rakuten.co.jp/category/100316/",
15 "https://search.rakuten.co.jp/search/mall/%E3%82%B3%E3%83%BC%E3%83%92%E3%83%BC/-/tg1011693/",
16 "https://search.rakuten.co.jp/search/mall/coffee/?p=3",
17 "https://search.rakuten.co.jp/search/mall/coffee/?sid=193811",
18 "https://search.rakuten.co.jp/search/mall/coffee/?min=500&max=2000&review=4&used=0&s=5",
19 "https://search.rakuten.co.jp/search/inshop/ajinomoto/",
20 "https://www.rakuten.co.jp/ajinomoto/",
21 "https://item.rakuten.co.jp/ajinomoto/nb38/",
22 "https://review.rakuten.co.jp/item/1/193811_10001806/2.1/",
23 ],
24 "queries": ["コーヒー"],
25 "genreIds": [],
26 "tagIds": [],
27 "shopUrlCodes": [],
28 "maxItems": 50,
29 "maxPages": 0,
30 "maxReviewsPerItem": 20,
31 "proxy": { "useApifyProxy": True },
32 "incrementalMode": False,
33 "emitUnchanged": False,
34 "emitExpired": False,
35 "ignoreFieldsForChanges": [],
36}
37
38
39run = client.actor("abotapi/rakuten-ichiba-scraper").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46