Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

surugaya

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