mercari
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Mercari API (scraper)

Examples

.then:

const mercari = require("mercari")
mercari.search("東方 ふもふも").then(results => console.log(results))
/* returns an array of objects like
  productURL: string
  imageURL: string
  productName: string
  price: number
  productCode: string
  */

async/await:

const mercari = require("mercari")
async function getStuff() {
  const results = mercari.search("東方 ふもふも")
  console.log(results)
  /* returns an array of objects like
  productURL: string
  imageURL: string
  productName: string
  price: number
  productCode: string
  */
}

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mercari

    Weekly Downloads

    4

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    9.89 kB

    Total Files

    9

    Last publish

    Collaborators

    • marvinody