Total Wine Scraper avatar
Total Wine Scraper
Try for free

2 hours trial then $20.00/month - No credit card required now

View all Actors
Total Wine Scraper

Total Wine Scraper

oyildirim/totalwine-actor
Try for free

2 hours trial then $20.00/month - No credit card required now

Scrape data from Total Wine. Extract descriptions, images, reviews, stock info, and all other product details. The actor supports category URLs and/or searching across the website by any search term.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "shippingInfo": "ispStore~1408:ifcStore~1401@ifcStoreState~US-WA@method~INSTORE_PICKUP",
11    "maxItems": 10,
12    "endPage": 5,
13    "startUrls": [
14        "https://www.totalwine.com/spirits/c/c0030?&pageSize=24&aty=1,1,0,1"
15    ],
16    "extendOutputFunction": ($) => { return {} },
17    "customMapFunction": (object) => { return {...object} },
18    "proxy": {
19        "useApifyProxy": true,
20        "apifyProxyCountry": "US",
21        "apifyProxyGroups": [
22            "RESIDENTIAL"
23        ]
24    }
25};
26
27(async () => {
28    // Run the Actor and wait for it to finish
29    const run = await client.actor("oyildirim/totalwine-actor").call(input);
30
31    // Fetch and print Actor results from the run's dataset (if any)
32    console.log('Results from dataset');
33    console.log(`๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34    const { items } = await client.dataset(run.defaultDatasetId).listItems();
35    items.forEach((item) => {
36        console.dir(item);
37    });
38})();
39
40// ๐Ÿ“š Want to learn more ๐Ÿ“–? Go to โ†’ https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 3 monthly users
  • 1 star
  • 100.0% runs succeeded
  • Created in Jun 2022
  • Modified 1 day ago