Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 508 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 508 Bytes

ebay-parser

This library provides an easy way to parse an ebay HTML page with items.

Quick start

Add it to your project:

npm install --save ebay-parser

Import as a CommonJS module:

const parser = require('ebay-parser')

Use:

const items = parser.parse_items(html); // Array<Item>

Data format:

type Item {
  soldDate: string;
  link: string;
  title: string;
  condition: string;
  price: number;
  shippingPrice: number;
  externalId: string;
}