Skip to content

talhakf/perfumeScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parfumo Scraper

This script scrapes perfume data from Parfumo.com, specifically the main accords and their relative prominence for each perfume.

Setup

  1. Make sure you have Node.js installed
  2. Install dependencies:
npm install

Usage

  1. Place your fragrances.csv file in the root directory
  2. Run the script:
node scraper.js

Output Files

The script will generate three files:

  • results.json: Contains successfully scraped data with main accords and their sizes
  • failed.txt: List of perfumes that failed to scrape with error messages
  • no_accords.txt: List of perfumes where no main accords were found

Data Format

The results.json file will contain an array of objects with this structure:

[
  {
    "brand": "Brand Name",
    "model": "Model Name",
    "mainAccords": [
      {
        "name": "Accord Name",
        "size": "large|medium|small"
      }
    ]
  }
]

Notes

  • The script includes a 1-second delay between requests to avoid overwhelming the server
  • Some URLs may fail due to different formatting on Parfumo.com
  • Not all perfumes have main accords listed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors