1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "productUrls": [
12 "https://www.walmart.com/ip/The-Get-Women-s-Plus-Size-Ruffle-Trim-T-Shirt/1009843134",
13 "https://www.walmart.com/ip/Fantaslook-Womens-Tank-Tops-Summer-V-Neck-T-Shirts-Sleeveless-Tops-Side-Split-Tanks/2028341337"
14 ],
15 "listingUrls": [
16 "https://www.walmart.com/browse/clothing/womens-tops/5438_133162_2290732",
17 "https://www.walmart.com/search?q=sony"
18 ],
19 "keywords": [
20 "sony headphones"
21 ],
22 "startPageNumber": 1,
23 "finalPageNumber": 1,
24 "minPrice": 0,
25 "maxPrice": 0
26};
27
28
29const run = await client.actor("eneiromatos/ultimate-walmart-scraper").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39