Package Exports
- flipkart-scraper
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flipkart-scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Flipkart Scraper 
This package will help us to scrape all Flipkart products through Flipkart affiliate API
Installation
npm install flipkart-scraper
or
yarn add flipkart-scraper
Usage
import flipkartScraper from 'flipkart-scraper';
const scraper = new flipkartScraper(
"<Affiliate-Id-Here>",
"<Affiliate-Token-Here>"
);
// 'response' event handler
scraper.on('response', (response) => {
console.log(products);
});
// 'products' event handler
scraper.on('products', (products) => {
console.log(products.products.length);
});
// Error handler
scraper.on('error', (error) => {
console.error(error);
});
// Start the scraper
scraper.start();