1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerm": "television",
11 "urls": [
12 "https://www.darty.com/nav/recherche?text=television",
13 "https://www.darty.com/nav/recherche?text=television&o=30",
14 "https://www.darty.com/nav/recherche?s=prix_asc&text=television",
15 "https://www.darty.com/nav/recherche?text=television&avis=400&free_darty_delivery=true",
16 "https://www.darty.com/nav/achat/hifi_video/televiseurs-led/grand_ecran_led/index.html",
17 "https://www.darty.com/nav/achat/hifi_video/televiseurs-led/grand_ecran_led/index.html?o=30",
18 "https://www.darty.com/nav/achat/hifi_video/televiseurs-led/grand_ecran_led/lg_43qned81b_2026.html",
19 ],
20 "brands": [],
21 "proxy": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 "apifyProxyCountry": "FR",
25 },
26 "incrementalMode": False,
27 "emitUnchanged": False,
28 "emitExpired": False,
29}
30
31
32run = client.actor("abotapi/darty-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