1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerms": ["telefon"],
11 "urls": [
12 "https://www.emag.ro/search/telefon",
13 "https://www.emag.ro/telefon-mobil-apple-iphone-17-pro-256gb-5g-silver-mg8g4zd-a/pd/DN99FV3BM/",
14 "https://www.emag.ro/search/telefon/sort-priceasc/p2",
15 "https://www.emag.hu/search/telefon",
16 ],
17 "store": "ro",
18 "fetchDetails": False,
19 "maxItems": 20,
20 "maxReviews": 20,
21 "proxy": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 },
25 "incrementalMode": False,
26 "emitUnchanged": False,
27 "emitExpired": False,
28 "ignoreFieldsForChanges": [],
29}
30
31
32run = client.actor("abotapi/emag-com-scraper").call(run_input=run_input)
33
34
35print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39