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": "nivea duschgel",
13 "brands": [],
14 "urls": [
15 "https://www.rossmann.de/de/search?text=nivea%20duschgel",
16 "https://www.rossmann.de/de/search?text=nivea%20duschgel&pageIndex=1",
17 "https://www.rossmann.de/de/search?text=nivea&sort=sale_price%20asc",
18 "https://www.rossmann.de/de/search?text=4006000317779",
19 "https://www.rossmann.de/de/pflege-und-duft/c/olcat1_2325036",
20 "https://www.rossmann.de/de/pflege-und-duft/c/olcat1_2325036?pageIndex=1",
21 "https://www.rossmann.de/de/angebote/m/angebote",
22 "https://www.rossmann.de/de/angebote/m/angebote?pageIndex=1",
23 "https://www.rossmann.de/de/angebote/m/neu-im-sortiment",
24 "https://www.rossmann.de/de/angebote",
25 "https://www.rossmann.de/de/pflege-und-duft-nivea-duschgel-vanilla-pecan-praline/p/4006000317779"
26 ],
27 "proxy": {
28 "useApifyProxy": true
29 },
30 "incrementalMode": false,
31 "emitUnchanged": false,
32 "emitExpired": false,
33 "compactUpdates": false
34};
35
36
37const run = await client.actor("abotapi/rossmann-de-scraper").call(input);
38
39
40console.log('Results from dataset');
41console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47