drawrowfly / amazon-product-api

Amazon Scraper. Scrape products from the amazon search result or reviews from the specific product
624 stars 178 forks source link

Is it possible to run this on client side? #121

Closed yussufbiyik closed 10 months ago

yussufbiyik commented 10 months ago

I tried bundling all the js using Browserify to use this on a custom chrome extension but I got the following error

Uncaught TypeError: Cannot read properties of undefined (reading 'on')
    at Stream.pipe (amazon-buddy.js:37689:8)
    at MuteStream.pipe (amazon-buddy.js:107323:32)
    at new StdinDiscarder (amazon-buddy.js:107868:20)
    at new Ora (amazon-buddy.js:107946:21)
    at oraFactory (amazon-buddy.js:108181:9)
    at 311../constant (amazon-buddy.js:46861:17)
    at o (amazon-buddy.js:1:265)
    at amazon-buddy.js:1:316
    at 313../Amazon (amazon-buddy.js:49621:23)
    at o (amazon-buddy.js:1:265)
    at amazon-buddy.js:1:316
    at Object.<anonymous> (amazon-buddy.js:40928:23)
    at Object.<anonymous> (amazon-buddy.js:40931:4)
    at 265.amazon-buddy (amazon-buddy.js:40931:17)
    at o (amazon-buddy.js:1:265)
    at r (amazon-buddy.js:1:431)
    at amazon-buddy.js:1:460

I tried looking into it but I can't seem to find any solutions, is there a way to run this without node?