0.0.2 • Published 4 years ago
mercari v0.0.2
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
*/
}