Nefarious Pomegranate Magnate
Wondering what’s next for npm?Check out our public roadmap! »

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

0.0.2 • Public • Published

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

Install

npm i surugaya

DownloadsWeekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

7.91 kB

Total Files

8

Last publish

Collaborators

  • avatar