Socket
Book a DemoInstallSign in
Socket

shopify-product-scraper

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shopify-product-scraper

A lightweight JavaScript library for scraping products from Shopify stores. This package provides a simple and efficient way to extract product data from Shopify websites.

1.8.0
latest
Source
npmnpm
Version published
Weekly downloads
15
114.29%
Maintainers
1
Weekly downloads
 
Created
Source

Shopify Product Scraper

A lightweight JavaScript library for scraping products from Shopify stores. This package provides a simple and efficient way to extract product data from Shopify websites.

Key Features:

  • Product Scraping: Extracts product data including title, handle, description, images, variants, and more.
  • Shopify Indicators: Automatically detects Shopify stores using a set of predefined indicators.
  • Progress Tracking: Provides a callback function to track the progress of the scraping process.
  • Limit Control: Allows you to limit the number of products to scrape.
  • Error Handling: Handles errors gracefully and returns false if the URL is invalid or the scraping process fails.

Installation:

You can install the package using npm:

npm install shopify-product-scraper

Usage:

Here's a basic example of how to use the package:

import { scrape } from 'shopify-product-scraper';

const options = {
  limit: 10, // Limit the number of products to scrape
  onProgress: (progress) => {
    console.log(`Progress: ${progress.progress * 100}%`);
  },
};

scrape('https://example.myshopify.com', options)
  .then(products => {
    console.log(products);
  })
  .catch(error => {
    console.error(error);
  });

License:

This package is licensed under the MIT License.

Keywords

Shopify

FAQs

Package last updated on 21 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.