mercari

Scraper for JP site 'mercari' to check for stuff

Usage no npm install needed!

<script type="module">
  import mercari from 'https://cdn.skypack.dev/mercari';
</script>

README

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
  */
}