Sephora Advanced Scraper

  • buseta/sephora-scraper
  • Modified
  • Users 11
  • Runs 110
  • Created by Author's avatarBurak

The Sephora Reviews & Questions scraper is designed to extract detailed product information, including reviews and questions/answers, from either individual product or category URLs on Sephora's website.

Free trial for 1 day

Then $20.00/month

No credit card required now

Sephora Advanced Scraper

Free trial for 1 day

Then $20.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url_list": [
        "https://www.sephora.com/product/sol-de-janeiro-mini-beija-flor-body-hair-mist-P482745"
    ],
    "proxy_config": {
        "useApifyProxy": true
    }
};

(async () => {
    // Run the Actor and wait for it to finish
    const run = await client.actor("buseta/sephora-scraper").call(input);

    // Fetch and print Actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();