1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://www.debragga.com/gift-sets.html"
14 },
15 {
16 "url": "https://www.debragga.com/specials.html"
17 },
18 {
19 "url": "https://www.debragga.com/beef.html"
20 },
21 {
22 "url": "https://www.debragga.com/grass-fed-beef.html"
23 },
24 {
25 "url": "https://www.debragga.com/naturally-raised-beef.html"
26 },
27 {
28 "url": "https://www.debragga.com/wagyu-beef.html"
29 },
30 {
31 "url": "https://www.debragga.com/pork.html"
32 },
33 {
34 "url": "https://www.debragga.com/lamb.html"
35 },
36 {
37 "url": "https://www.debragga.com/poultry.html"
38 },
39 {
40 "url": "https://www.debragga.com/veal.html"
41 },
42 {
43 "url": "https://www.debragga.com/ham-sausages.html"
44 },
45 {
46 "url": "https://www.debragga.com/salumi-smoked-meats.html"
47 },
48 {
49 "url": "https://www.debragga.com/pantry.html"
50 },
51 {
52 "url": "https://www.debragga.com/new-items.html"
53 },
54 {
55 "url": "https://www.debragga.com/grill-kits.html"
56 }
57 ],
58 "proxyConfiguration": {
59 "useApifyProxy": true
60 }
61};
62
63
64const run = await client.actor("scraping_crew/debragga-scraper").call(input);
65
66
67console.log('Results from dataset');
68console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
69const { items } = await client.dataset(run.defaultDatasetId).listItems();
70items.forEach((item) => {
71 console.dir(item);
72});
73
74