1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "maxResults": 50,
12 "game": "440",
13 "minPrice": 0,
14 "maxPrice": 0,
15 "sortBy": "price|DESC",
16 "stock": "0",
17 "tf2Spell": "",
18 "tf2Quality": "",
19 "tf2Warpaint": "",
20 "tf2Part": "",
21 "tf2Effect": "",
22 "tf2Type": "",
23 "tf2Class": "",
24 "tf2Killstreak": "",
25 "tf2Festivized": "",
26 "tf2Paint": "",
27 "tf2Wear": "",
28 "cs2Weapon": "",
29 "cs2Type": "",
30 "cs2Rarity": "",
31 "cs2StatTrak": "",
32 "cs2Wear": "",
33 "rustSlot": "",
34 "dotaHero": "",
35 "dotaSlot": "",
36 "dotaType": "",
37 "dotaQuality": "",
38 "dotaRarity": "",
39 "pgcType": "",
40 "pgcSize": ""
41};
42
43
44const run = await client.actor("coding-doctor-omar/mannco-scraper").call(input);
45
46
47console.log('Results from dataset');
48console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
49const { items } = await client.dataset(run.defaultDatasetId).listItems();
50items.forEach((item) => {
51 console.dir(item);
52});
53
54