GithubHelp home page GithubHelp logo

albertogferrario / javascript-stockx-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iyarsius/stockx-scraper

0.0 0.0 0.0 240 KB

Javascript StockX API

JavaScript 51.87% TypeScript 48.13%

javascript-stockx-api's Introduction

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

javascript-stockx-api's People

Contributors

albertogferrario avatar iyarsius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.