0.0.2 • Published 4 years ago
surugaya v0.0.2
Surugaya API (scraper)
Examples
.then:
const surugaya = require("surugaya")
surugaya.search("東方 ふもふも").then(results => console.log(results))
/* returns an array of objects like
productURL: string
imageURL: string
productName: string
price: number
productCode: string
availability: string
*/
async/await:
const surugaya = require("surugaya")
async function getStuff() {
const results = surugaya.search("東方 ふもふも")
console.log(results)
/* returns an array of objects like
productURL: string
imageURL: string
productName: string
price: number
productCode: string
availability: string
*/
}