Skip to content

iyarsius/stockx-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stockx-scraper v2

Scrape sneakers data using dynamic parameters like proxy (rotating support), cookie, country and currency.

It also support typescript and full sizes conversions (EU, UK, JP...)

Install

npm i stockx-scraper

Usage

const { StockxClient } = require("stockx-scraper");

const client = new StockxClient({
    currencyCode: "EUR" // default USD
    countryCode: "FR" // default US
    languageCode: "FR" // default EN
    proxys: [
        "http://username:pass@ip:port",
        "http://username:pass@ip:port"
        ...
    ],
    cookie: "Your cookie here" // by default module create it's own
})

Methods

const products = await client.search({
    query: "yeezy"
});

const firstResult = products[0];

// fetch variants and some data
await firstResult.fetch();

// get related products
const related = await firstResult.getRelatedProducts();

// related works like normal products
await related[0].fetch();

Even without calling .fetch(), a product will always contains

  • name
  • sku
  • description
  • image (url)
  • url
  • uuid
  • seller (nike, adidas...)
  • colorway

About

Scrape sneakers datas from stockx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published