1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerms": ["dress"],
11 "categories": ["130000036"],
12 "urls": [
13 "https://www.fordeal.com/en-SA/",
14 "https://www.fordeal.com/en-SA/category/130000036",
15 "https://www.fordeal.com/en-SA/detail/40513375",
16 "https://www.fordeal.com/SA/detail/40513375",
17 "https://www.fordeal.com/detail/40513375",
18 "https://www.fordeal.com/ar-SA/detail/40513375",
19 "https://www.fordeal.com/en-SA/search?keyword=dress",
20 "https://www.fordeal.com/en-SA/s/women%20loose%20dresses",
21 "https://m.fordeal.com/detail/40513375?f=utm_x",
22 "https://m.fordeal.com/showsize/40513375",
23 "https://www.fordeal.com/sitemap.xml",
24 ],
25 "region": "SA",
26 "fetchDetails": True,
27 "fetchReviews": True,
28 "maxReviews": 20,
29 "maxItems": 20,
30 "proxy": { "useApifyProxy": True },
31 "incrementalMode": False,
32 "compactUpdates": False,
33 "emitUnchanged": False,
34 "emitExpired": False,
35 "ignoreFieldsForChanges": [
36 "displayTags",
37 "tagIds",
38 ],
39}
40
41
42run = client.actor("abotapi/fordeal-scraper").call(run_input=run_input)
43
44
45print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49