1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "searchTerm": "television",
13 "urls": [
14 "https://www.darty.com/nav/recherche?text=television",
15 "https://www.darty.com/nav/recherche?text=television&o=30",
16 "https://www.darty.com/nav/recherche?s=prix_asc&text=television",
17 "https://www.darty.com/nav/recherche?text=television&avis=400&free_darty_delivery=true",
18 "https://www.darty.com/nav/achat/hifi_video/televiseurs-led/grand_ecran_led/index.html",
19 "https://www.darty.com/nav/achat/hifi_video/televiseurs-led/grand_ecran_led/index.html?o=30",
20 "https://www.darty.com/nav/achat/hifi_video/televiseurs-led/grand_ecran_led/lg_43qned81b_2026.html"
21 ],
22 "brands": [],
23 "proxy": {
24 "useApifyProxy": true,
25 "apifyProxyGroups": [
26 "RESIDENTIAL"
27 ],
28 "apifyProxyCountry": "FR"
29 },
30 "incrementalMode": false,
31 "emitUnchanged": false,
32 "emitExpired": false
33};
34
35
36const run = await client.actor("abotapi/darty-com-scraper").call(input);
37
38
39console.log('Results from dataset');
40console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46